Difference between revisions of "User:Wirser:wcudir"

From VsWiki
Jump to: navigation, search
(Compile the Vega Strike sourcecode)
Line 7: Line 7:
 
* [[HowTo:vsFedora Compiling|Compiling from SVN under Fedora Core]]
 
* [[HowTo:vsFedora Compiling|Compiling from SVN under Fedora Core]]
 
* Debug a Vega Strike Compilation  
 
* Debug a Vega Strike Compilation  
** [[HowTo:Use GDB|Debugging on Linux using GDB]]
+
** [[HowTo:vsUse GDB|Debugging on Linux using GDB]]
** [[HowTo:Use Dr Watson|Debugging on Windows using Dr Watson]]
+
** [[HowTo:vsUse Dr Watson|Debugging on Windows using Dr Watson]]
 +
 
 
=Using GDB with Vegastrike=
 
=Using GDB with Vegastrike=
 
This page provides information on how to use GDB to help debug Vegastrike.
 
This page provides information on how to use GDB to help debug Vegastrike.

Revision as of 01:07, 2 September 2006

Game HowTos

Compile the Vega Strike sourcecode

Using GDB with Vegastrike

This page provides information on how to use GDB to help debug Vegastrike.

Debugging process

Game compilation

  • First you have to configure Vegastrike with the --enable-debug option in addition to your others:
    ./configure <your other parameters> --enable-debug
  • Then make your Vegastrike binary:
    make

Please make sure you have enough disk space available before doing this. Compiling Vegastrike with --enable-debug eats up a huge amount of disk space.

Run GDB

  • Start gdb (GNU Debugger):
    gdb /path/to/vegastrike
  • Start the game by typing this into the gdb-console:
    run
  • When the error occurs or it dies type
print *this
backtrace full
up
print *this
up
print *this