[英]Visual Studio: run in debug mode from different folder
Good morning. 早上好。
I wrote a command line *.exe app (call it myapp.exe
) that accept some arguments and make his work basically using input and output files. 我编写了一个命令行* .exe应用程序(称为
myapp.exe
),该应用程序接受一些参数并基本上使用输入和输出文件进行工作。 This app is called by a 3rd party application, pretending that myapp.exe
is in his \\root\\bin
folder. 该应用程序被第三方应用程序调用,并假装
myapp.exe
在他的\\root\\bin
文件夹中。 Input and output files are difficult to replicate for tests, so I would find much easier do something like this: 输入和输出文件很难复制以进行测试,因此我会发现执行以下操作变得容易得多:
PostBuildEvents
, deploy assemblies in calling app's \\root\\bin
folder on my disk PostBuildEvents
,将程序集部署到磁盘上调用应用程序的\\root\\bin
文件夹中 *.pdb
deployed in \\root\\bin
folder \\root\\bin
文件夹中的*.pdb
Is that a thing I can do? 那是我能做的吗?
I know Visual Studio Remote Debugging function, but myapp.exe
is not a process I can attach to. 我知道Visual Studio远程调试功能,但是
myapp.exe
不是我可以附加的进程。
Some ideas? 有什么想法吗? :)
:)
If I understood your question correctly, it should be as easy as right-clicking the project in question on go to the debug tab, you should see "Start External Program" option. 如果我正确理解了您的问题,那么就像在调试选项卡上右键单击有问题的项目一样简单,您应该看到“启动外部程序”选项。 Browse to your \\root\\bin folder and select myapp.exe and you should have the version of myapp that you deployed in the post build event run.
浏览到\\ root \\ bin文件夹,然后选择myapp.exe,您应该具有在构建后事件中运行的myapp版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.