Difference between revisions of "Debug.debug"
From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | <languages /> | ||
'''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
'''<translate>Class</translate>:''' [[Special:MyLanguage/debug|debug]]<br/> | '''<translate>Class</translate>:''' [[Special:MyLanguage/debug|debug]]<br/> | ||
Line 6: | Line 7: | ||
Note that commands for debug.debug are not lexically nested within any function, and so have no direct access to local variables.</translate> | Note that commands for debug.debug are not lexically nested within any function, and so have no direct access to local variables.</translate> | ||
− | < | + | <syntaxhighlight lang="lua"> |
− | + | debug.debug() | |
− | </ | + | </syntaxhighlight> |
+ | |||
+ | {{Debug}} |
Latest revision as of 14:27, 13 July 2023
Available since: Gideros 2011.6
Class: debug
Description
Enters an interactive mode with the user, running each string that the user enters. Using simple commands and other debug facilities, the user can inspect global and local variables, change their values, evaluate expressions, and so on. A line containing only the word cont finishes this function, so that the caller continues its execution.
Note that commands for debug.debug are not lexically nested within any function, and so have no direct access to local variables.
debug.debug()