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?
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 :) .
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.
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.
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.
I found it. Project --> Set programs arguments (i was looking all over project settings like visual studio has it)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With