asp.netiisasp.net-core.net-corevisual-studio-debugging

The breakpoint will not currently be hit - No executable code is associated with this line


I have a problem to debug my ASP.NET Core 2 application. Suddenly all breakpoints in application cannot be hit.

The breakpoint will not currently be hit. No executable code of the debugger's target is associated with this line.

The message in tooltip on breakpoint after debugging start is:

The breakpoint will not currently be hit. No executable code is associated with this line. Possible causes include: conditional compilation or complier optimizations, or the target architecture of this line is not supported by the current debugger code type.


Solution

  • The solutions in my case was to change build properties of the project.

    Project properties -> Build -> Advanced (button) - Debugging information (select box) -> FULL.