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

时间:2022-09-06 16:37:06

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). I can debug the class library, but not the console application.

我将这两个项目都放在同一个解决方案中,我将类库设置为启动项目(启动AutoCAD)。我可以调试类库,但不能调试控制台应用程序。

How can I debug the console application given this configuration?

如何在此配置下调试控制台应用程序?

1 个解决方案

#1


You need to use the Debug->Attach To Process option in Visual Studio.

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

#1


You need to use the Debug->Attach To Process option in Visual Studio.

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