User forums > Using Code::Blocks

Debug in a separate window?

<< < (2/5) > >>

Jenna:
I'm not sure what you mean.
If you are able to debug and set breakpoints the interaction with the main app should work as if you do not run it through the debugger.

If I create a C::B plugin, I can link it again and run it through a stripped version of C::B (no debugging symbols). I can interact with the main app (C::B in this case) as if I debug the plugin with the C::B sources available.

Keeper:
Ok, let me clear it up a bit  :D

Say you open a terminal, and change directories to where the executable is.

I run this executable and it runs in that same terminal window.  It doesn't open a new window, it's a text/console application.

So when you run it via the debugger, it only shows up if I turn on debugging log.  Even then it doesn't show everything.  In order to run debugging from C::B, I would need to somehow tell GDB ( I guess ) to start this up in another window.   Or C::B could open the console and bash all the commands via that and then the program would start in that window instead of "behind the scenes" in C::B.

oBFusCATed:
jens: he wants the host app to be run inside terminal, I think.

C::B should be modified to support this feature. I'll add it in my TODO for the debugger branch.

Keeper:

--- Quote from: oBFusCATed on December 31, 2009, 01:34:02 am ---jens: he wants the host app to be run inside terminal, I think.

--- End quote ---

Why is it I can never seem to express exactly what I want?!??!?!?!   Yes, that is exactly what I was trying to say.  :D

Jenna:

--- Quote from: Keeper on December 31, 2009, 01:45:07 am ---
--- Quote from: oBFusCATed on December 31, 2009, 01:34:02 am ---jens: he wants the host app to be run inside terminal, I think.

--- End quote ---

Why is it I can never seem to express exactly what I want?!??!?!?!   Yes, that is exactly what I was trying to say.  :D

--- End quote ---
I understood after your answer to my previous post.

What you can try, is to start the app in a console, get the pid with ps and attach the debugger via "Debug -> Attach to process".
I never did this, so I don't know how usable it is.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version