Search

Thursday, March 11, 2010

breakpoints not working in visual studio ? solution and quick fix

Are you getting the warning "The break point will not currently be hit. No symbols have been loaded for this document." recently all of a sudden breakpoints stopped working in my project on vs IDE the breakpoints became hollow circle with a warning message inside though i had this problem previously on both VS 2008 and Vs 2005 i always forgot the solution on how i fixed it so this time i thought of logging it in my blog for future reference ;) below are few points that comes handy when you break points stop working on vs


--> First of all check whether you are running on debug or release mode if you are running on release mode change it to debug, if it is in debug try next step.

--> Go to Debug-->Windows-->Modules check whether all the project dll's have symbol status if it says cannot find or open pdb file right click on module select load symbols and browse to the path of your application PDB,if it says says symbol Loaded then try next point.

--> Exit your IDE and delete bin and obj folder go to visual studio command line and run "devenv /resetsettings" NOTE: running this command will reset all your visual studio settings to default so think before running it and use at your own risk.

--> If you are using web development then Clear temproary output folders the path looks something like below

C:\WINDOWS\Microsoft.NET\Framework\{framework version}\Temporary ASP.NET Files\{some name}\{some numbers}\{some numbers}

--> if your are Windows developer like me and all the above tips fails try deleting the emulator images actually this worked for me go to below path and delete the emulator images as shown in below pic

C:\Documents and Settings\yourname\Application Data\Microsoft\Device Emulator


though just deleting the image emulator worked for me there are wide array of reasons why the break points never hits and depends on type or projects and applications being developed if your problem was different and you fixed it and if it is not in the above points do share with us by leaving a comment here.

6 comments:

Deepa Gopal said...

Hey Ceveni

There's something awaiting you in my blog. Pls do share my happiness and festive spirit...

Regds
Deepa

Deepa Gopal said...

Whats Ceveni, BTW??? Ur name is Manjunath:)

Manju said...

ceveni is surname ;)

Anonymous said...

Thanks for this post, it helped me fixing the break point issue.

- SDS

Mr. Admin said...

Try to delete the content of the obj file which should have a "debug" and/or a "Release" folder. Delete them and build the solution then run it.

Anonymous said...

I had this problem and looked under project properties. Somehow the target got changed to x86. When I changed it back to "Any CPU" it worked fine.

Post a Comment

Other Interesting Articles



Related Article Widget by Yogith

Search Powered by Google