Impossible to debug SDL applications on X11

Is it possible to debug an SDL fullscreen application that runs on X11 ?
I’ve readed that is possible passing SDL_INIT_NOPARACHUTE to SDL_Init but I
didn’t get any results: when a breakpoint is hit, graph freezes and the only
way to return to X is to reset it via Ctrl+Alt+BrkSpace; the same happens if
application crashes. I’m using KDevelop on Ubuntu, can be a development
environment problem ? Can I hope to resolve the problem passing to Anjuta or
any other IDE or using different distributions ?

Thank you.
Simone Navari.

Hi Simone,

Without thinking too hard I see two ways to get around that issue:

  1. Run your app in windowed mode while debugging
  2. Use remote debugging (gdbserver, e.g. from within Eclipse CDT)

Cheers,
Oliver

Simone Navari wrote:> Is it possible to debug an SDL fullscreen application that runs on X11 ?

I’ve readed that is possible passing SDL_INIT_NOPARACHUTE to SDL_Init
but I didn’t get any results: when a breakpoint is hit, graph freezes
and the only way to return to X is to reset it via Ctrl+Alt+BrkSpace;
the same happens if application crashes. I’m using KDevelop on Ubuntu,
can be a development environment problem ? Can I hope to resolve the
problem passing to Anjuta or any other IDE or using different
distributions ?

Thank you.
Simone Navari.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Or, you can run multiple X servers. If you have a multiheaded video
card, multiple displays, and multiple keyboards/mice, you can run two
separate servers on the same systemOn Thu, Dec 4, 2008 at 4:10 AM, Oliver Bock <oliver.bock at aei.mpg.de> wrote:

Hi Simone,

Without thinking too hard I see two ways to get around that issue:

  1. Run your app in windowed mode while debugging
  2. Use remote debugging (gdbserver, e.g. from within Eclipse CDT)

Cheers,
Oliver

Simone Navari wrote:

Is it possible to debug an SDL fullscreen application that runs on X11 ?
I’ve readed that is possible passing SDL_INIT_NOPARACHUTE to SDL_Init but I
didn’t get any results: when a breakpoint is hit, graph freezes and the only
way to return to X is to reset it via Ctrl+Alt+BrkSpace; the same happens if
application crashes. I’m using KDevelop on Ubuntu, can be a development
environment problem ? Can I hope to resolve the problem passing to Anjuta or
any other IDE or using different distributions ?

Thank you.
Simone Navari.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


http://codebad.com/

Or just run them on different virtual consoles. (e.g., Ctrl+Alt+F7 for
one, and Ctrl+Alt+F8 for the other)

On modern desktops (e.g., KDE 3.5 and 4), there is usally some kind of
"Start new session" option that lets you do this quite easily…
typically alongside “Logout”, “Restart” and “Shutdown”, and also seen on
"This screen was locked by Foo" password prompts.

-bill!On Thu, Dec 04, 2008 at 08:17:47PM -0500, Donny Viszneki wrote:

Or, you can run multiple X servers. If you have a multiheaded video
card, multiple displays, and multiple keyboards/mice, you can run two
separate servers on the same system