How do I set a breakpoint in an attached process in visual studio

How do I set a breakpoint in an attached process in visual studio

I have started a local host application and I attached a project in visual studio to this iexplorer process what was running the app.  But I am unable to set break points in the code. I have tried to set break points but the errors says:

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

Please advise.

Comments

  • Hi ,,

    To set a breakpoint in source code, click in the far left margin next to a line of code. You can also select the line and press F9, select Debug > Toggle Breakpoint, or right-click and select Breakpoint > Insert breakpoint.

    In visual studio if process is running then we can't set breakpoint. so if u wish to add break point then first add breakpoint then run the program. then attach process using Ctrl+p . 
Sign In or Register to comment.