Why the debugger doesn't work

后端 未结 15 1227
遇见更好的自我
遇见更好的自我 2020-12-17 09:48

My debugger is not working,
I\'m putting a breakpoint, but in run, time visual studio doesn\'t stop on the breakPoint.
How to fix it?
There is n

相关标签:
15条回答
  • 2020-12-17 10:25

    This can occur when Visual Studio is set to debug Managed code but the code is not managed (managed code is running under the control of the common language runtime (CLR)).

    To fix the problem change the debug mode as shown in the right hand side of the figure below to Native only, Mixed, or Auto.

    Side note: I recommend not choosing Mixed unless your system has both managed and native code (code that does not run under the CLR) because Visual Studio can't attach to an already running process in mixed mode. To debug an already running code Visual Studio need to be set to debug in Native only or Managed only.

    0 讨论(0)
  • 2020-12-17 10:25

    In Visual Studio 2010

    1. Select Build > Clean {Project Name}
    2. Rebuild Project

    Now Try to rebuild project and try debug

    All the best

    0 讨论(0)
  • 2020-12-17 10:27

    You need to be running in Debug mode, and not Release mode.

    Here's a detailed article about How to: Enable Debugging for ASP.NET Applications Basically, you can either set debug mode in project properties or in web.config.

    0 讨论(0)
提交回复
热议问题