Search code examples
c#visual-studioremote-debugging

Is it possible to set break points when remote debuging with Visual Studio?


I am able to connect to the remote machine and debug and see the source code, but when I set a break point Visual Studio don't break on it.

So is there something that needs to be done?
Or is it simply not possible to use breakpoints while remote debugging?


Solution

  • Yes it is. You need to make sure that the PDB (debug information with line info) is present and loaded in the debugger when connecting to the remote site, because without it the debugger cannot associate source lines to bytecode offsets, which is required to set a breakpoint.