How to use 'Reattach To Process' in 'Post-build event command line' Visual Studio 2017?

73 Views Asked by At

How to use 'Reattach To Process' in 'Post-build event command line' VS2017?

I'm working on 'visual studio 2017' 'solution', I want to 'Reattach To Process' immediately after build.

I want to know how to use the command line for 'Reattach To Process'.

1

There are 1 best solutions below

1
Minxin Yu - MSFT On

a third option is to attach to the process by running from the Windows command line.

Try to use vsjitdebugger.exe -p <ProcessId> .

Document: Attach to running processes with the Visual Studio debugger