Re: Debug - A whole new way of debugging your game
Posted: Tue Dec 17, 2013 9:45 pm
Now the code'll automaticly update itself if it's changed and if _DebugSettings.LiveAuto is set to true.
Changelog
Version 1.3.1 (Not Official) by Ranguna259
Changelog
Version 1.3.1 (Not Official) by Ranguna259
- By setting _DebugSettings.LiveAuto to true the code will automaticly reload itself when it's modified.
- Converted to LÖVE 0.9.0
- To jump to the bottom of the console you now have to press lCtrl+middle mouse buttons instead of just the middle mouse button.
- You can now do code hotswapping by accessing the console and by pressing the F5 button.
- Added two new variables to _DebugSettings, 'LiveFile' and 'LiveReset', see _DebugSettings.Settings() for more information.
- Some more cleaning up of the code.
- Fixes auto-complete options not being reset in certain conditions.
- Adds a command history, navigatable with up and down arrow keys. This conflicts with selection of auto-complete options, but you can force history navigation by using shift+up and shift+down.
- Reworks error-checking in entered commands. A nice benefit is that the [string "possibly a long command"]:1: part no longer shows up, which just duplicated something that was printed right before.
- Improves _Debug.findLocation (including: no more loadstring, no __index side-effects, finding object:methods).
- Improves _Debug.updateProposals (only valid identifiers are proposed, keywords are proposed if there is no preceding . or :).
- Adds support for the home and end keys.
- Cleans up some dead code.
- Now only allows you to enter characters in ASCII, because the rest of the library handles non-ASCII unicode very poorly.
- Auto-complete now works when inserting text in the middle instead of only at the end.
- Up and down change which auto-complete option you're going to select.
- Much better drawn auto-complete options.
- Suppresses auto-complete when in the middle of an identifier.
- Brings back keyRepeat, in a way that doesn't interfere with the game.
- Fixes printing multiple things in 3 ways (see if you can find them all!).
- Syntax errors in commands now get a sensible error message.
- Tab completion now only done when the overlay is visible.
- Removes a useless loop in _Debug.findLocation.
- Uses multiple argument form of love.keyboard.isDown in _Debug.handleKey.
- Removes keyRepeat, because that shit's evil.
- Fixes "double click" bug.
- Fixes indentation.
- We now have repetitive keyboard behavior, AWESOME
- Added a new functionality that jumps you to the last output in the conole when you provide a command
- Fixed a font related bug
- Added a new functionality that enables you to jump right to the bottom of the console by pressing the middle mouse button.
- Fixed some bugs
- Added a new functionality that autocompletes the variable to the current proposal by pressing tab
- Converted to LÖVE 0.8.0
- Added a new functionality that enables you to change the 'f8' key to what you want by changing the _lovedebugpresskey='the key you want'
- Added Shift + F8 console opening, the old one still remains (Thank you miko)
- Everything except for settings (which has its own global table) is now put into the local table _Debug (Thank you tentus)
- Fixed the console to be hidden at the start
- Added _OverlayColor to global settings (see _Settings() for a list of settings) Changed location as of 1.1.5 to _DebugSettings.Settings()
- Initial version