Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 8 and Version 9 of code/tools/Debugging


Ignore:
Timestamp:
May 21, 2013, 2:34:12 PM (11 years ago)
Author:
smerkli
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/tools/Debugging

    v8 v9  
    1515 * If you want to display the value of a variable make sure you are in the right context (by using up and down) and type '''print varname'''
    1616 * If you have an object pointer and you don't know the exact type of the class (e.g. pointer to WorldEntity which is actually a !SpaceShip) you can type '''x/wa addressOfObject''' and gdb will tell you what class type the object located in ''addressOfObject'' has by considering the vtables
     17
     18=== Disabling mouse grabbing for in-game breakpoints ===
     19One problem with the method outlined above is that the game grabs the mouse
     20when in-game, and does not release it when a breakpoint is reached, trapping you
     21in the locked game. One solution to this is to disable mouse grabbing in the
     22code:
     23
     24
    1725=== Setting Breakpoints ===
    1826You can set breakpoints for