自动将子进程附加到调试器
如果当前正在 Visual Studio 中调试主进程,我怎样才能让它生成的任何新进程也附加到与主进程相同的 Visual Studio 实例?
目前,新流程仅通过 CreateProcess 调用创建,但是如果需要,我可以添加额外的代码或完全使用不同的 API,以及对项目或解决方案配置进行更改(每个流程在单个解决方案中都有自己的项目) 。
If the main process is currently being debugged in Visual Studio, how can I have it so any new processes it spawns are also attached to the same instance of Visual Studio as the main process is?
Currently the new processes are created just with a CreateProcess call, however I can add extra code or use a different API altogether if needed, as well as making changes to the project or solution configurations (each process has its own project in a single solution).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我知道我晚了几年,但 Visual Studio 2013 在安装扩展后应该支持这一点:
https://visualstudiogallery.msdn.microsoft.com/a1141bff-463f-465f-9b6d-d29b7b503d7a< /a>
I know I am few years late here but Visual Studio 2013 should support this after installing an extension:
https://visualstudiogallery.msdn.microsoft.com/a1141bff-463f-465f-9b6d-d29b7b503d7a