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?
Visual C++.NETVisual Basic.NETASP.NET

Avatar of undefined
Last Comment
Nasir Razzaq

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
brutaldev

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
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
Nasir Razzaq

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Sindibad_123

ASKER
>Debug -> Windows -> Modules

There is no Modules option! I'm using VS 2005
AndyAinscow

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.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Sindibad_123

ASKER
>Have you tried my suggestion

I set the breakpoint on the first row of the pageload function and it does not hit!
AndyAinscow

Sounds like your app being debugged is optimised and debugging disabled.
Is it a debug build ?
Nasir Razzaq

Tried http:#36334271  ?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.