Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

Legend:

Unmodified
Added
Removed
Modified
  • code/tools/Debugging

    v9 v10  
    2020when in-game, and does not release it when a breakpoint is reached, trapping you
    2121in the locked game. One solution to this is to disable mouse grabbing in the
    22 code:
    23 
     22code. In the file src/libraries/core/input/InputManager.c, there is a function
     23LoadDevices. The part shown below grabs the mouse and keyboard:
     24{{{
     25if (CommandLineParser::getValue("keyboard_no_grab").get<bool>())
     26    paramList.insert(StringPair("x11_keyboard_grab", "false"));
     27else
     28    paramList.insert(StringPair("x11_keyboard_grab", "true"));
     29    paramList.insert(StringPair("x11_mouse_grab",  "true"));
     30    paramList.insert(StringPair("x11_mouse_hide", "true"));
     31}}}
     32Change all the 'true' values to 'false' here to disable mouse/keyboard grabbing
     33altogether. This makes the game awkward to play, but when it runs into a breakpoint,
     34you can freely move your mouse focus out of the game and into the GDB window.
    2435
    2536=== Setting Breakpoints ===