简体   繁体   English

调试Process.Start()的ed应用程序

[英]Debugging a Process.Start()'ed application

I have a C# class library (which is an AutoCAD .net application) and a console application. 我有一个C#类库(它是一个AutoCAD .net应用程序)和一个控制台应用程序。

Somewhere in the class library, it starts the console application using Process.Start() 在类库的某个地方,它使用Process.Start()启动控制台应用程序

I have both of these projects with the same solution, I have set the class library as the startup project (to launch AutoCAD). 我有两个这些项目都使用相同的解决方案,我已将类库设置为启动项目(以启动AutoCAD)。 I can debug the class library, but not the console application. 我可以调试类库,但不能调试控制台应用程序。

How can I debug the console application given this configuration? 如何在此配置下调试控制台应用程序?

您需要在Visual Studio中使用Debug-> Attach To Process选项。

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

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