News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Passing arguments in DEBUG mode

Started by ssudhaka, July 28, 2010, 09:48:57 AM

Previous topic - Next topic

ssudhaka

I have CB 10.05 rev 6283 still it does not allow me to pass arguments via command line in DEBUG mode. When running the application normally the arguments can be passed without any issues.
I have set the arguments using set program argument's dialog and also ticked the "this target is the main executable checkbox", is this a bug

Jenna

Works for me (debian unstable 64-bit, g++ 4.4.4).
Please give a short example where it fails.

Are you sure the commandline arguments are set correctly for Release and Debug target ?

ssudhaka

I am using the windows version 10.05

I have set the program arguments and when the run my program it shows the debug arguments in the build log console :
Executing: "C:\CodeBlocks/cb_console_runner.exe" "C:\CodeBlockProjects\output\server\my_server.exe"  "C:\Program Files\step012.xml"

However, when I run the same program in debug mode it shows the following in the debug console :
Executing: "C:\CodeBlocks/cb_console_runner.exe" "C:\CodeBlockProjects\output\server\my_server.exe"

In debug mode the program complains that arguments to the program have not been provided.
I am able to debug to the point where it throws the error message.


MortenMacFly

Quote from: ssudhaka on July 30, 2010, 12:14:37 PM
Executing: "C:\CodeBlocks/cb_console_runner.exe" "C:\CodeBlockProjects\output\server\my_server.exe"  "C:\Program Files\step012.xml"

Executing: "C:\CodeBlocks/cb_console_runner.exe" "C:\CodeBlockProjects\output\server\my_server.exe"
Quote from: jens on July 28, 2010, 10:02:03 AM
Are you sure the commandline arguments are set correctly for Release and Debug target ?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]