User forums > Using Code::Blocks
How to open a console window in debug mode.
ollydbg:
OK, Thanks , the same to you!
The most important thing I think is the beginner's question should be answered(even if you're a advanced user, you think their question is easy and naive), or they will quickly lose their interests in code::blocks.
So, If you have time, you can also help others in this forums.
ukh:
Hi to josue, jens and ollydbg,
I have the also problems like josue, but no solution. :(
On my linux-system the xterm is installed and the
Properties... -> Build targets settings are set to console application.
in release and debug mode
If I run the hello world program in release mode everything is
fine. In debug mode everything is fine, using gdb in debug mode no xterm is visible. Is there any other setting
that is missing?
It seams, that the Debugger gdb is not able to start or attach to a xterm
CB version 8.02, build mar 13 2009
Thanks for any help
littlegene:
I work on Windows. And I debug a static library with host application. The host console application is mine as well.
Everything is ok except for I do not see a console output, really. May I arrange settings so that to see the output of the console applicatio? Or it is impossible.
Thanks.
oBFusCATed:
Please try to explain you problem a bit more thoroughly, because I don't understand what exactly is the problem.
littlegene:
Ok.
1. I have a workspace with 2 projects - a simple console mode application and a static library that is used (being linked) by this particular app.
2. I've succesfully compiled and build all the stuff and I see, that the appication links the library archive (libxxx.a) as required.
3. I run the app (after setting the app project active) and I see that it works. I see the console window and output messages on it.
4. Now I should fix some bugs in a static archive (not in app)
5. So I turn 'active project' to the static archive (library) and set breakpoints all other the code (inside library body and inside app body)
6. Because launching the library is not possible with no host application, I do it (my host application is still this particular application)
7. So, If I just press Ctrl-F10 when library is active project, everything is ok - I see the console window.
8. But if I am in debug mode - (F8) I do not see the console window. It is not appear all the time even after I remove all existing breakpoints and continue execution.
9. Debugging process itself is fine. But I must see the console window as well.
p.s.
I use cygwin compiler and debugger on Windows.
Maybe this is the trouble.
I just wanted to learn, if this is the correct behaviour or not.
update:
It seems I have a solution. ) If I debug starting when app is active porject - I see console window and I step into the body of static library as well. ))
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version