Game Development Community

Dumping C++ call stack during runtime ?

by Orion Elenzil · in Technical Issues · 04/12/2006 (10:35 am) · 1 replies

Hey All -

is there a way to dump the C++ callstack during runtime ?

in particular we've got a bad event on a linux dedicated server,
and AssertFatal() isn't giving us a core with call stack.

debug build, of course.

tia,
orion

#1
04/12/2006 (1:37 pm)
It's dependent on the OS that you are using, but you can set the properties of the startup of the process to dump a core, or you can simply attach GDB to the running process and glance through the stack as it runs/crashes.

EDIT: "GDB" is the "Generic DeBugger" that comes with just about every linux installation--it's command line and a touch archaic, but does work. Your distro may have a MUCH better graphical IDE...