views:

22

answers:

1

I have a Windows Mobile project that runs some code before displaying the first form. If I put a breakpoint on a method I know is called before the form is displayed I get the hollow breakpoint warning symbol that tells me "the breakpoint will not currently be hit. no symbols loaded for this document".

When I look in Debug -> Windows -> Modules the PDB for the dll that contains the method I want to break on is loaded last. The executable which runs the method is already running at this point, and it seems by the time the PDB is loaded the method has finished executing.

Hopefully that all makes sense.

What I really want to know is, is there any way around this? Can I ensure that the PDB loads before my program starts executing?

A: 

I've had this problem before in completely random situations. IE, it just stopped working.

I've also had it vanish by cleaning, rebuilding, restarting visual studio and at in some instances rebooting sorted it.

Neil Trodden
Unfortunately none of those suggestions have worked. I'm starting to wonder if it's a project setting that has been changed in the repo, as I can't remember this happening in the past.
GaryEmery