Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to pass argv to VC6.0 debug mode

Status
Not open for further replies.

davyzhu

Advanced Member level 1
Joined
May 23, 2004
Messages
494
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,298
Location
oriental
Activity points
4,436
hot to use argv in debug mode

Hello all,

I use VC6.0 to debug my c program.
The program's top is like
int main
( int argc,
char **argv
)

And the program is executed like "command argv1 argv2 ..."

I found when I click the vc6.0 debug, the program ended without prompt. How to pass argv to VC6.0 debug?

Thanks!

Davy
 

passing arguments in vc6 debug

Don't fully understand your question but the exe commandline is given in the following settings dialog.

Regards
NTFreak
 

Hi,
You can pass arguments in debug mode in the program arguments edit box as ntfreak indicated, also put a getline() or getchar() at the end of main so that program will not exit with out a prompt
 

I think he means that he wants to use debugger inside VC and for that purpose he needs to run his exe within the console. However as he is providing some arguments while executing his binary, this brings up conflicts running the program internally.

I suggest you to take your command prompt inputs from file while debugging with VC console. Once the program is debugged, you can switch back to your original scheme.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top