Author Topic: Debugging a graphical game on Lubuntu  (Read 3189 times)

fprince

  • Guest
Debugging a graphical game on Lubuntu
« on: April 17, 2014, 01:58:23 am »
Hi all. I am using Code::Blocks to debug the open source game Astromenace.

I am able to set a breakpoint and step through code in main() while the app is still in terminal mode, but once it goes into graphics mode, I am unable to get back to the IDE. I set a breakpoint to step through one of the submenu routines and am never able to do anything else once the breakpoint is hit besides shut the power to the computer down and reboot. I tried to use ALT-TAB to bring the IDE back up but it does not respond.

Sorry about the newb question. I am an experienced developer, but new to Code::Blocks and fairly new to Linux.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Debugging a graphical game on Lubuntu
« Reply #1 on: April 17, 2014, 07:59:33 am »
If the app grabs the mouse you'll be unable to debug it.
Either you'll have to modify its code to not grab the mouse or use a nested x server where to run it (search for xnest).
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]