如何使Visual Studio调试会话启动cmd.exe替换? [英] How to make Visual Studio debug session launch a cmd.exe replacement?

查看:47
本文介绍了如何使Visual Studio调试会话启动cmd.exe替换?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以以某种方式设置Visual Studio来启动cmd.exe替换(在这种情况下 TCC/LE ,从JP Software)控制台中调试控制台应用程序?

Can I somehow setup visual studio to launch a cmd.exe replacement (on this case TCC/LE, from JP Software) console when debugging console applications?

我在工具菜单上将其设置为外部工具,其起始目录指向项目调试bin文件夹.但是我希望有一个更直接的访问权限,只需按F5键(开始调试"),即可通过此cmd.exe替换项启动该应用程序.

I have it setup on the Tools Menu as an External tool with a start directory pointing to the project debug bin folder. But I'd like a more immediate access, just so hitting the F5 key (Start Debugging) would launch the application in this cmd.exe replacement instead.

推荐答案

在控制台项目的项目属性中,选择调试"选项卡.这里有3个单选按钮,它们指定当您按下"F5"时如何启动项目.在您的情况下,默认值为启动项目",我假设您需要选择启动外部程序",并使用任何参数指定您的cmd替换,以从中启动调试应用程序.
对于cmd.exe,从命令外壳启动其他内容将是/c或/k选项.

In the project properties for your console project select the debug tab. There are 3 radiobuttons there that specify how the project is started when you hit 'F5'. The default value is 'start project' in your case I assume you need to select 'start external program' and specify your cmd replacement with any arguments to get the debug app launched from it.
For cmd.exe it would be the /c or /k option to launch something else from the command shell.

这篇关于如何使Visual Studio调试会话启动cmd.exe替换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆