共用方式為


Debugger Cannot Display Source Code or Disassembly

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This error reads:

The debugger cannot display source code or disassembly for the current location where execution has stopped.

This error message can occur for a number of reasons:

  • You may have hit a breakpoint in a location for which there is no source code, while debugging a language that doesn't support disassembly. Open the Breakpoints window, locate the breakpoint, and delete it.

  • If you are debugging script, you may have hit a breakpoint while there were no threads in your program. Choose Step or Continue from the Debug menu to resume debugging.

  • Security considerations may have prevented the debugger from reading stack, thread, register, and other context information from the program you are debugging. This is most likely to happen if you are debugging a Web application and don't have the right permission to access the virtual directory. Set security for the virtual directory to Anonymous and try again.

See Also

Debugger Basics
Debugging in Visual Studio
Viewing Data in the Debugger