简体   繁体   English

如何将Visual Studio附加到远程计算机上进程的子进程?

[英]how can i attach visual studio to child process of a process on remote machine?

When I run a process on remote machine, say A.exe, it spawns child processes, lets say, childA.exe. 当我在远程计算机上运行某个进程(例如A.exe)时,它会生成子进程,比如childA.exe。

What I'd like to do is, I want visual studio to kick in (hit a breakpoint) as soon as childA.exe is spawned ? 我想做的是,我希望在生成childA.exe后立即启动Visual Studio(打断点)吗?

I looked around and figured out, one cannot debug, child processes of a parent process in visual studio. 我环顾四周,发现在Visual Studio中无法调试父进程的子进程。 That is, if I put a breakpoint in code and launch A.exe; 也就是说,如果我在代码中放置一个断点并启动A.exe; when childA.exe starts executing, it won't hit that breakpoint. 当childA.exe开始执行时,它将不会达到该断点。

PS: I'm using visual studio 2008. If it helps, I can also use vs 2010. PS:我正在使用Visual Studio2008。如果有帮助,我也可以使用vs 2010。

You need to setup visual studio remote debugger in the remote machine. 您需要在远程计算机上设置Visual Studio远程调试器 And do remote debugging. 并做远程调试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM