Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

breakpoint will not currently be hit, why not?

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?

like image 660
mrblah Avatar asked Sep 23 '09 21:09

mrblah


People also ask

Why are my breakpoints not being hit?

If a source file has changed and the source no longer matches the code you're debugging, the debugger won't set breakpoints in the code by default. Normally, this problem happens when a source file is changed, but the source code wasn't rebuilt. To fix this issue, rebuild the project.

Why are there Skipped loading symbols?

The option Tools -> Options -> Debugging -> General -> Enable Just My Code (JMC). If this option is enabled the managed debugger will not load symbols for any modules that are optimized. You will see the Skipped loading symbols. If you see the Symbol Load Info for the module it will provide the explanation for it.

How do I fix breakpoint in Visual Studio?

Hover over the breakpoint symbol, choose the Settings icon, and then select Remove breakpoint once hit in the Breakpoint Settings window.


1 Answers

You may be running your project in Release mode. If so, then switch to Debug mode

enter image description here

like image 144
Yigit Pilevne Avatar answered Oct 02 '22 19:10

Yigit Pilevne