Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
ENGINES: Standardization of debuggers #2052
Since my previous pull request for autosaves is touching so many engines anyway, I thought it an opportune time to deal with another minor issue I've been seeing for a while, that of debuggers.
The current status quo is that engines would create the debugger themselves, and then be responsible for detecting arbitrary keypresses (normally Ctrl-D), and manually attach to and open the debugger. Plus, they also needed to regularly call the debugger's onFrame. With this, the bulk of that is done away with. Engine's simply instantiate a descendant of GUI::Debugger and call the new Engine method setDebugger. The core engine & graphics managers then take care of detecting Ctrl-D to open the debugger, and regularly call it's onFrame.
So this has two benefits: