Why the debugger doesn't work

后端 未结 15 1204
遇见更好的自我
遇见更好的自我 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:17

    After installing following add-on it started working. After installing, restart visual studio once. Install plug-in as per VS version.

    https://download.qt.io/official_releases/vsaddin/

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

    When everything failed try this: Right mouse button on your project -> Build -> untick 'Optimize code'

    Or

    I had similar problems when I've installed dotPeek and maybe because I don't have Resharper it was loading symbols from dotPeek symbol server but it couldn't hit my breakpoint. In that case Open dotPeek and click on Stop Symbol Server.

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

    Break point was not getting hit, i cleaned and rebuild, but still not hitting,

    I just reopened the page (In my case Controller) and started working fine ..

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

    The symbols probably aren't loaded, that's why the breakpoint won't be hit. Did you set the website as the startup project?

    When debugging, what process it attached? It should be w3wp.exe if you want to debug asp.net code.

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

    You could be like me to have both a production version (installed via a msi file) and a development version (opened in Visual Studio), and that is why I cannot get some of my breakpoints in the VS triggered today.

    If that is the case you need to uninstall the production version as I think some of the dll files are interfering with my debugging session.

    Clean and Rebuild your solution afterwards should fix the issue.

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

    There are a couple of things that could be wrong:

    • Your source code and assembly could be out of sync - rebuild the application and try again.
    • You could be attached to the wrong process - check to see what process you are attached to.
    • There could be a logical error in your code that is causing your breakpoint to not be hit (i.e. the method you are in is not actually called, logical branching is routing control around the breakpoint, etc.)
    0 讨论(0)
提交回复
热议问题