Link to home
Start Free TrialLog in
Avatar of Sindibad_123
Sindibad_123

asked on

Breakpoints not being hit

Hi, Writing a site in C#, sometimes I set a breakpoint, begin debugging, and my breakpoint is never hit (when it clearly should be).
I also tried toAttach to "aspnet_wp" process but that makes no difference.
I believe its something wrong with my PC (or visual studio configurations) because the debugging works on another pc.

Any help?
ASKER CERTIFIED SOLUTION
Avatar of brutaldev
brutaldev
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AndyAinscow
>>and my breakpoint is never hit (when it clearly should be).

Have you tried to set a breakpoint on the very first line of code in your app.  One does sometimes see statements like yours and it turns out not to be true
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sindibad_123
Sindibad_123

ASKER

>Debug -> Windows -> Modules

There is no Modules option! I'm using VS 2005
Have you tried my suggestion - then you know if breakpoints are working at all (eg. debugging not enabled) or if it is something to do with your code.
>Have you tried my suggestion

I set the breakpoint on the first row of the pageload function and it does not hit!
Sounds like your app being debugged is optimised and debugging disabled.
Is it a debug build ?