在控制台应用程序中将命令行参数传递给 VB6 IDE [英] Passing command line parameters to VB6 IDE in console app

查看:29
本文介绍了在控制台应用程序中将命令行参数传递给 VB6 IDE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 VB6 控制台应用程序,它使用命令行参数.对于调试,我希望能够从 IDE 启动它,并且理想情况下能够将这些参数传递给它以查看它如何正常运行.我意识到我可以在适当的地方设置一个断点并使用立即窗口在命令行外设置值,并且我过去使用过其他几种解决方法,但是有没有办法做到这一点,就像我有实际上是作为控制台应用程序启动的?

I have a VB6 console app and it uses command line parameters. For debugging, I would like to be able to start it from the IDE and ideally be able to pass it those parameters to see how it normally operates. I realize I could set a breakpoint at the appropraite place and use the Immediate window to set the values outside the command line, and I have used a couple of other workarounds in the past, but is there a way to do this as if I had actually started it as a console app?

推荐答案

选择项目 |Properties,选择 Make 选项卡,在 Command Line Arguments 文本框中输入命令行参数.这些仅在 IDE 中运行时适用.

Select Project | Properties, select the Make tab, enter the command line params in the Command Line Arguments text box. These will only apply when run in the IDE.

这篇关于在控制台应用程序中将命令行参数传递给 VB6 IDE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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