Difference between revisions of "Debug"
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | <!-- GIDEROSOBJ:debug --> | ||
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]]<br/> | '''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]]<br/> | ||
'''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
Line 7: | Line 8: | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Methods</translate> === | === <translate>Methods</translate> === | ||
− | [[Special:MyLanguage/debug.debug|debug.debug]] ''<translate>enters interactive debug mode, line with only "cont" terminates</translate>''<br/> | + | [[Special:MyLanguage/debug.debug|debug.debug]] ''<translate>enters interactive debug mode, line with only "cont" terminates</translate>''<br/><!-- GIDEROSMTD:debug.debug --> |
− | [[Special:MyLanguage/debug.gethook|debug.gethook]] ''<translate>returns current hook function, hook mask, hook count</translate>''<br/> | + | [[Special:MyLanguage/debug.gethook|debug.gethook]] ''<translate>returns current hook function, hook mask, hook count</translate>''<br/><!-- GIDEROSMTD:debug.gethook --> |
− | [[Special:MyLanguage/debug.getinfo|debug.getinfo]] ''<translate>returns table with information about a function</translate>''<br/> | + | [[Special:MyLanguage/debug.getinfo|debug.getinfo]] ''<translate>returns table with information about a function</translate>''<br/><!-- GIDEROSMTD:debug.getinfo --> |
− | [[Special:MyLanguage/debug.getlocal|debug.getlocal]] ''<translate>returns name and value of local variable with index local at stack level</translate>''<br/> | + | [[Special:MyLanguage/debug.getlocal|debug.getlocal]] ''<translate>returns name and value of local variable with index local at stack level</translate>''<br/><!-- GIDEROSMTD:debug.getlocal --> |
− | [[Special:MyLanguage/debug.getupvalue|debug.getupvalue]] ''<translate>returns name and value of upvalue with index up of function func</translate>''<br/> | + | [[Special:MyLanguage/debug.getupvalue|debug.getupvalue]] ''<translate>returns name and value of upvalue with index up of function func</translate>''<br/><!-- GIDEROSMTD:debug.getupvalue --> |
− | [[Special:MyLanguage/debug.sethook|debug.sethook]] ''<translate>sets given function as a hook, mask="[crl]"</translate>''<br/> | + | [[Special:MyLanguage/debug.sethook|debug.sethook]] ''<translate>sets given function as a hook, mask="[crl]"</translate>''<br/><!-- GIDEROSMTD:debug.sethook --> |
− | [[Special:MyLanguage/debug.setlocal|debug.setlocal]] ''<translate>sets local variable with index local at stack level with value</translate>''<br/> | + | [[Special:MyLanguage/debug.setlocal|debug.setlocal]] ''<translate>sets local variable with index local at stack level with value</translate>''<br/><!-- GIDEROSMTD:debug.setlocal --> |
− | [[Special:MyLanguage/debug.settypemt|debug.settypemt]] ''<translate>Set meta table type</translate>''<br/> | + | [[Special:MyLanguage/debug.settypemt|debug.settypemt]] ''<translate>Set meta table type</translate>''<br/><!-- GIDEROSMTD:debug.settypemt --> |
− | [[Special:MyLanguage/debug.setupvalue|debug.setupvalue]] ''<translate>sets upvalue with index up of function func with value</translate>''<br/> | + | [[Special:MyLanguage/debug.setupvalue|debug.setupvalue]] ''<translate>sets upvalue with index up of function func with value</translate>''<br/><!-- GIDEROSMTD:debug.setupvalue --> |
− | [[Special:MyLanguage/debug.traceback|debug.traceback]] ''<translate>returns a string with a traceback of the call stack</translate>''<br/> | + | [[Special:MyLanguage/debug.traceback|debug.traceback]] ''<translate>returns a string with a traceback of the call stack</translate>''<br/><!-- GIDEROSMTD:debug.traceback --> |
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Events</translate> === | === <translate>Events</translate> === | ||
=== <translate>Constants</translate> === | === <translate>Constants</translate> === | ||
|} | |} |
Revision as of 14:56, 31 August 2018
Supported platforms:
Available since: Gideros 2011.6
Description
The debug library does not give you a debugger for Lua, but it offers all the primitives that you need for writing a debugger for Lua. For performance reasons, the official interface to these primitives is through the C API. The debug library in Lua is a way to access these functions directly within Lua code. This library declares all its functions inside the debug table.
Methodsdebug.debug enters interactive debug mode, line with only "cont" terminates |
EventsConstants |