Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Provide program arguments when debugging with Code::Blocks

Tags:

c++

codeblocks

I cant seem to work out how to add program arguments to the launch command for the codeblocks debugger. Any one know how to do this?

like image 474
Lodle Avatar asked Aug 02 '09 02:08

Lodle


People also ask

How do you set program arguments in code blocks?

With code::blocks you can set your command line arguments like this in the menu: Project > Set programs' arguments... This opens a window where you can insert your parameters. Just notice that codeblocks is more bug than my application :) .

How do you debug a command line argument?

To set command-line arguments in Visual Studio, right click on the project name, then go to Properties. In the Properties Pane, go to "Debugging", and in this pane is a line for "Command-line arguments." Add the values you would like to use on this line. They will be passed to the program via the argv array.

How do you debug line by code in line blocks?

Again click on (Debug-> start/continue) It will show a console window. Put input on it. Now press Enter button. Click on (Debug-> Next line) or press F7 for line by line debugging.

What is debug and release in code blocks?

Debug builds usually have a lot of program information in them and not very much optimizations. This makes them easier to work with when debugging. Release builds usually have optimizations which can change the assembly away from what you expect making them harder to debug.


1 Answers

I found it. Project --> Set programs arguments (i was looking all over project settings like visual studio has it)

like image 113
Lodle Avatar answered Oct 12 '22 21:10

Lodle