如何使Visual Studio调试会话启动cmd.exe替换?

编程入门 行业动态 更新时间:2024-10-05 07:26:14
本文介绍了如何使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替换?

本文发布于:2023-11-03 04:11:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1554209.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Studio   Visual   exe   cmd

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!