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

Last post 05-11-2008 11:11 AM by Thomas Sun – MSFT. 10 replies.

Sort Posts:

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

    05-03-2008, 6:30 AM
    • Loading...
    • bvaland80
    • Joined on 03-04-2008, 3:50 PM
    • Posts 16

    Hi Experts

    I have visual studio 2005 SP1 installed on my laptop windows vista SP1. I have a solution that holds 2 projects and the aspx page on the first project (startup project) calls second project webform.aspx. The problem is that the second project debug does not work because it is not a startup project, when i set it as startup project the debug works fine.

    I need to have first project as startup project i would like to debug pages on both the projects.

    The breakpoint on second project show yellow triangle with below message.

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

    I have tried below options already.

    1. Clean the solution and rebuild again.
    2. delete temporary files of Asp.net Framework.

    Can anyone suggest how to debug on both projects?

    Kind Regard

    Bhavesh

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

    05-03-2008, 7:10 AM
    • Loading...
    • Swati Jain
    • Joined on 05-24-2006, 12:29 PM
    • Pune
    • Posts 687

    this url can help you out http://simeonpilgrim.com/blog/2007/10/05/visual-studio-multiple-startup-projects/

     try this also

    right click solution-->Project dependencies-->here set the project dependencies if any

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

    05-03-2008, 9:15 AM
    • Loading...
    • bvaland80
    • Joined on 03-04-2008, 3:50 PM
    • Posts 16

    Thanks for your quick response.

    I have tried that but no luck.

    Project 2 depends on Project 1

    Under startup projects i have project 1 as my startup project followed by project 2

    Kind Regards

    Bhavesh

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

    05-06-2008, 4:28 AM

    Hi,

    How did you call Project2's Aspx Page from Project1's Aspx Page? Did you just redirect the user from Project1 to Project2? If you want to debug these projects once, you need Visual Studio debugger to attach these Projects's host process.

    I assume that these Projects are File-Based website which has built-in ASP.NET Development Server. In this case, the debugger will attach to Project1's built-in server while pressing F5, and then you need to automatically attach Project2's built-in server to debugger by entering Debug -> Attach to Process.. -> Select Project2's built-in server process-> Click Attach button. If you do so, the Breakpoints inserted in Project2 will be hit.

     

    If this doesn’t help you, please feel free to let me know.


    I hope this helps.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
  • Re: The breakpoint will not currently be hit. No symbols have been loaded for this document.

    05-06-2008, 4:53 AM
    • Loading...
    • bvaland80
    • Joined on 03-04-2008, 3:50 PM
    • Posts 16

    Thanks

    I tried but no luck, my project does not make use of Built-in ASP.NET development server instead i use the IIS Web Server. I use the firefox to run my application and attached the firefox process.

    Kind Regards

    Bhavesh

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

    05-06-2008, 5:35 AM

    Hi,

    If your projects are Http-Based, the Breakpoints will be hit. In your case, please make sure that the symbols are loaded by debugger.

    If the debugger doesn’t load the .pdb file, the Breakpiont cannot be hit and you will get the warning message above. So please make sure that the symbols are loaded by the debugger. We can check if the debugger loads this pdb file by the following steps (Debug->Windows->Modules), and then select your your project's module to see if the pdb file is loaded. If the pdb file is not loaded, we can load it manually (Right clight the dll model->Select Load Symbols).

     

    I hope this helps.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
  • Re: The breakpoint will not currently be hit. No symbols have been loaded for this document.

    05-06-2008, 7:20 AM
    • Loading...
    • bvaland80
    • Joined on 03-04-2008, 3:50 PM
    • Posts 16

    Thanks for your response.

    I have checked the module windows and discovered that the my second project's ddl does not even exist.

    Why my second project dll not loaded?

    Kind Regards

    Bhavesh
     

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

    05-07-2008, 8:21 AM
    • Loading...
    • Swati Jain
    • Joined on 05-24-2006, 12:29 PM
    • Pune
    • Posts 687

    Hi Bhavesh,

    Delete the dlls of both the project

    Build every project indivisualy

    rebuild the solution

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

    05-07-2008, 11:08 PM
    Answer

    bvaland80:

    Thanks

    I tried but no luck, my project does not make use of Built-in ASP.NET development server instead i use the IIS Web Server. I use the firefox to run my application and attached the firefox process.

    Kind Regards

    Bhavesh

    If these two projects are running under IIS and you start it with FireFox without using Visual Studio. You need to use Visual Studio debugger to attach to IIS process instead of FireFox process after you load the first Project from FireFox.

     

    I hope this helps.

     

     

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
  • Re: The breakpoint will not currently be hit. No symbols have been loaded for this document.

    05-10-2008, 9:45 AM
    • Loading...
    • bvaland80
    • Joined on 03-04-2008, 3:50 PM
    • Posts 16

    Thanks for your suggestion.

     
    I tried that but no luck, i delete the following dll files.

    • C:\Inetpub\wwwroot\<project1>\bin\<project1>.dll
    • C:\Inetpub\wwwroot\<project2>\bin\<project2>.dll

    After then i build project 1 followed by project 2 and finally re-build the solution.

    I'm using visual studio 2005, to load the starting project, i use the "Debug" > "Start Debugging", i can only debug the code on the startup project which project 1 and unable to debug on project.

    Any help appreciated?

    Kind Regards

    Bhavesh

     


     

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

    05-11-2008, 11:11 AM

    Hi,

    Thanks for your response.

    As I said, we need to use Visual Stuido debugger to attach to your project2's host (In your case, I guess it is ASP.NET Development Server - Port **** ), after you start debugger from Visual Studio.

     

    I hope this helps.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Page 1 of 1 (11 items)