Alex Rivera | Logout

breakpoint will not currently be hit, why not?

Asked 2009-09-23T21:54:41.150
25

Sometimes I get the message that the breakpoint will not be hit, and no symbols will be loaded.

The red icon in vs.net changes color, and the debug mode just doesn't work.

what is the reason for this?

Edit
Report

2 Answers

8

From Visual studio debugging issue with files of the same name by Philip Carney

Do each bullet in the link below ONE AT A TIME, but repeat my steps below with each one you try.

  1. Stop debugging (press red square icon) in Visual Studio

  2. Clean Solution

  3. Build Solution

  4. Tools > Attach to Process (or start with debugging)

  5. Start the program that you're attaching to, and run it such that your code will get hit

    • If attaching to nunit.exe, then open NUnit and run a test so your breakpoint will be hit

    • If attaching to w3wp.exe (IIS site), then open your site in the browser and go to the page that will hit your breakpoint

answered 2012-04-10T21:44:58.647
5
  1. for manage code only - theres a good answer for this problem on the following site: Link
  2. for native + managed code - in the startup solution properties-> Debug tab make sure that "enable unmanaged code debugging" check box is checked
answered 2010-07-28T11:15:03.923

Your Answer