Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Confused about remote debugging in Visual Studio 2010

I have a console app that I am trying to debug using remote debugger.

Clearly it seems you need to first run the application on the remote server, then attach to process.

My question is, whats the preferred method to catch the code at the start of execution, so it won't run away by the time you've managed to hookup the debugger.

Is there an industry standard best practice way to hook in and pause execution at a certain point till the debugger is attached?

like image 216
JL. Avatar asked Jan 27 '11 16:01

JL.


1 Answers

There is a way to launch the remote app from Visual Studio.

  1. Go to the Debug tab in project properties window.
  2. Select Start external program and specify the exe path. (e.g. C:\MyTestApp\MyTestApp.exe)
  3. Check Use remote machine and enter the name of the remote machine.

Detailed explanation here.

like image 160
Eren Ersönmez Avatar answered Oct 16 '22 01:10

Eren Ersönmez