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?
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.
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.
Hover over the breakpoint symbol, choose the Settings icon, and then select Remove breakpoint once hit in the Breakpoint Settings window.
You may be running your project in Release mode. If so, then switch to Debug mode
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With