Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable msvsmon timeout from the command line

I'm doing remote debugging regularly thanks to Visual Studio 2010's msvsmon tool. I used to set the timeout to zero in the options screen, as I just want the tool to keep running until I'm done with it:

enter image description here

This works fine, but I grew tired of doing this everyday and I'm trying to do it from a script, using the appropriate command line switch:

msvsmon.exe /timeout:0

But no cigar:

enter image description here

I can work around this by setting a ridiculously long timeout, but I'm just checking: is there a proper way to disable this timeout from the command line? Or maybe with a registry key?

like image 347
Laurent Couvidou Avatar asked Sep 12 '12 08:09

Laurent Couvidou


People also ask

How to debug remote process in Visual Studio?

You can attach the Visual Studio debugger to a running process on a local or remote computer. After the process is running, select Debug > Attach to Process or press Ctrl+Alt+p in Visual Studio, and use the Attach to Process dialog to attach the debugger to the process.

How do I stop remote debugging?

05 On the General settings panel, under Debugging, select Off next to Remote debugging setting to disable remote debugging using Microsoft Visual Studio for the selected Azure App Services web application.

How to enable remote debugging in Visual Studio 2019?

Select Configure remote debugging to configure the firewall and start the remote debugger. When configuration is complete, the Remote Debugger window appears. The remote debugger is now waiting for a connection. Use the server name and port number shown to set the remote connection configuration in Visual Studio.


1 Answers

Well if there's no proper way, I guess the best is just to use the maximum allowed, which seems to be the maximum of a signed integer, minus one:

msvsmon.exe /timeout:2147483646

That leaves more than 68 years of remote debugging, should be enough for me!

like image 173
Laurent Couvidou Avatar answered Sep 25 '22 19:09

Laurent Couvidou