Attach and debug next
|Enabled for||Public preview||General availability|
|Admins, makers, or analysts, automatically||Aug 1, 2019||Oct 1, 2019|
Sometimes you cannot or do not want to publish and invoke functionality to debug it, but instead attach a session to the server and await a process to trigger the breakpoint. With attach and debug next, you can do that.
Set a breakpoint in code and attach to a running server, online or on-premises, and the debugger will break if the breakpoint is hit while it is attached to the server.
Attach and Debug Next (docs)