News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

How to use command debug in CodeBlocks???

Started by p30-port, November 19, 2013, 12:57:48 PM

Previous topic - Next topic

p30-port

Hi

I want to use command debugging in CodeBlocks, but I don't know how???  :-[
In Visual Studio I do this like this ScreenShot:


Can anyone help me?  :P
Thanks

BlueHazzard


p30-port

Save Inputs in a file and debug the code with those inputs :D

Biplab

Click on Project > Set programs' arguments... menu option. Select Debug target in the next window and add your input to Program arguments: text box.
Be a part of the solution, not a part of the problem.

scarphin

I think op means logging the input from say 'cin' in the first run and then using that logged data on the second run to debug. Some kind of scripted debugging I think. If I got this right, it seems like a cool feature.

p30-port

#5
Can you explain this with an example???? (With ScreenShot plz :P)

For example: Suppose I want to get two Integers and print a%b.