Debugger Cannot Display Source Code or Disassembly

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

Concepts

Viewing Data in the Debugger

Other Resources

Debugger Roadmap

Debugging in Visual Studio