Changes between Version 8 and Version 9 of code/tools/Debugging
- Timestamp:
- May 21, 2013, 2:34:12 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/tools/Debugging
v8 v9 15 15 * 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''' 16 16 * 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 === 19 One problem with the method outlined above is that the game grabs the mouse 20 when in-game, and does not release it when a breakpoint is reached, trapping you 21 in the locked game. One solution to this is to disable mouse grabbing in the 22 code: 23 24 17 25 === Setting Breakpoints === 18 26 You can set breakpoints for