ASP.NET Class Library not hitting break points

I have an ASP.NET web aplication using vs2008. It used to let me hit my break points but for some unknown reason in this site it won’t let me hit them any more.
I have set everything to debug and re built about a million times and everything else but can’t seem to hit that damn break point!!! Break points work for the site but not the class libraries I add in, but they used to!!

I can’t see anything in the web config or the configurations to change anything. I’ve added the class library to a test solution, works fine.

Does anyone have any ideas?

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

Just to confirm, breakpoints work for the site but not for the class library. That means VS is attaching to the right instance. Put a break point right before the class library is invoked and see if it will drill in. If visual studio can’t generate the metadata for debugging, it does a jump over. Confirm you also have the PDB file from the class library present.
Also, if you’ve recently updated the class library, be sure to stop Cassini and restart.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x