The breakpoint will not currently be hit. No symbols have been loaded for this document.

this post is a followup to

http://geekswithblogs.net/dbutscher/archive/2007/06/26/113472.aspx.

i had the same problem(the one in the tittle), and i tried all the steps sugguested in the given URL. but i couldn’t get it fixed. and when i viewed symbol info from the module window. i found out that the IDE is tring to load symbol info from a wrong path. note that i copied this solution in action from a another PC accross the local network. so then i tried deleting each and every .user(user extention) file in the soloution directory. volla! it worked then :)

The IDE was now loading the symbols from the correct path. i had to set some settings after deleting the user files though :P

note: you will find a projectA.project file and a projectA.user file when you create a project in VS IDE. same goes to a soloution. and this is the .user file that i am talking about.

9 Responses to “The breakpoint will not currently be hit. No symbols have been loaded for this document.”

  1. Bino Bose Says:

    Perhaps the only thing we can do is like,if we have multiple projects loaded in our solution then hitting the breakpoint on another project in the same solution unless its not set as the startup project will sometimes return this error. so what we need to do is to set our current project as startup application where we want the breakpoint to be hit.thats it.per se .Net 2005 :)

    http://www.codepal.co.in

  2. Jayasimha Says:

    Ahh.. This blog post was very very helpful! I was stuck with a similar problem. I am using W2K8, and MS VS 2005 Professional Edition. There is a service that loads a couple of DLL’s. I needed to debug one of them, and I struggled for close to a week to get this done! I have done these many times successfully but this time, whenever I build my DLL (debug version) and replace the original DLL (release version) and hook the debugger to the service, I always used to get “DLL Loaded: No symbols loaded”. Was very frustrating. Googled a lot around, and tried most of the tricks and tweaks suggested by various blogs, groups etc. Finally after a lot more searching, landed to this site and tip. And with some hesitation tried the solution mentioned above, and boy! It worked :) Thanks a bunch buddy! You helped me :) Posting this, so that others will also be benefited.

  3. silentp33r Says:

    i’m glad it helped you :)

  4. Scaners Says:

    Unfortunately it doesn’t work for me. I created a simple “hello world” cpp in an empty project. Nothing fancy.
    first I couldn’t debug it. I saw the error message:
    “Debugging information for “ConsoleApp6.exe” cannot be found or does not match. Binary was not built with debug information.
    do you want to continue debugging?”
    I was told to go to Project->Properties->linker->debugging and change “Generate debug info” to YES. So I did. Debugger starts, but doesn’t see the breakpoints.
    I added a cycle to the code “while (true) {}” , so I could see what’s going on, before debugger stops. I see error messages “The breakpoint will not currently be hit. No symbols have been loaded for this document.”
    BUT I have a simple project with one solution, so there can be NO references to other projects. How to fix this problem?

  5. JohnnieWalker Says:

    This does not work for me too. I tried copying the .dlls to the specified location too. Still it didnt work for me.

  6. Piyush Says:

    Hey thanks for this post. Was really stuck up with the problem since a month, and was using labels to display the variables i wanted to check.

    Thanks a lot.

  7. Amy Says:

    The website ‘http://geekswithblogs.net/dbutscher/archive/2007/06/26/113472.aspx.’ wasn’t there anymore. Could someone tell me what I need to do in order to get the breakpoints working?

    Thanks!

  8. Anonymous Says:

    Amy – try the URL without the ‘.’ at the end.

  9. Cosmin Says:

    Thanks a lot mate!

Leave a Reply