Wednesday, March 28, 2012

suddenly cant use breakpoints

this drives me cuckoo....

i have an application i've been working on for months and for some reason today the development environment completely ignores breakpoints. the app just runs and never breaks on any of my breakpoints. this happened to me once before but i can't recall what caused it.

anyone know what causes that?

Chances are you already checked these, but go to Build | Configuration Manager to make sure you're using the Debug mode. Also, run your app with F5, not Ctrl-F5. Finally, if you're using ASP.NET 2.0, be sure the following is in your Web.config file:

<compilationdebug="true"/>


i am in debug mode...

i use f5

i am not using 2.0 (use 1.1)

and yet it always goes right past any break points


close VS and restart it...

Also, is this ALL breakpoints? If you set one in the first page in the page_load does it stop?


i closed it down...restarted it...

put a break on page_load

it ignores it


Check in the Project Properties, make sure that "Enable ASP.Net Debugging" is checked...
it is checked

Check the web.config then...

<compilation.........debug="true"></compilation>


yes...web.config has debug=true

i just rebooted my machine but it still ignores breakpoints


Here's something you can try (copied from some other site):

Select "Debug" from the "Solution configuration" combobox which is embedded
into VS.NET's toolbar. If the project/solution is compiled using the
"Release" configuration, no debug symbols (PDB files) are created. Use this
configuration when compiling the release version of a product. If this
doesn't fix your problem, delete its "obj" and "bin" directories and
recompile.

0 comments:

Post a Comment