1. how can I bring out the output window while debugging? So that I can see the output of cout etc.
2. how to watch all the elements in an array conveniently instead of indexing them one by one in Watch window?
3. is it possible to get the declaration of functions by hovering my mouse over them. Similarly, how can I get the value of a variable by just hovering my mouse over them?
4. I cannot step inside some library functions e.g. GNU C library functions though I think I should be able to. Neither can I get the declaration of the functions. How to deal with it?
Another question is with gdb not Codeblocks at all. In the following code:
for(int i = 0; i < argc; i++)
cout << (i > 0 ? " " : "") << argv << (i < argc - 1 ? " \\" : "")
<< endl;
I try to use next to step over, but always step into some other source file as I get the information:
1. Make sure you have declared your app as "Console application" in the projects "Properties -> Build targets -> Debug -> Type:" (right click your project in the management pane.
2. try to add it to the watches window, right click it, chose "Edit watch" and check "Watch as array". "Start:" is the startindex, you want to see, "Count:" the number of elements to be shown. You might want to change "Settings -> Compiler and debugger -> Debugger settings -> Display array on a single line -> If number ..." to fit your needs.
3. On the same tab (see 3.) you can check "Evaluate expressions under cursor".
4. To step into system libs, you need the debugging versions to be installed and link your app against them.
gdb works fine with your code on my machine (compiled with gcc 4.2 on debian unstable/experimental 64-bit). Do you have debugging versions of the standard C/C++ and or system libs installed ?
To your knowledge, I did not test it with 8.02, but with svn r5422.