Difference between revisions of "Debug"
Line 2: | Line 2: | ||
'''Supported platforms:''' android, ios, mac, pc<br/> | '''Supported platforms:''' android, ios, mac, pc<br/> | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
− | === Description === | + | === <translate>Description</translate> === |
<translate>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.</translate> | <translate>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.</translate> | ||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === Methods === | + | === <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/> | ||
[[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/> | ||
Line 18: | Line 18: | ||
[[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/> | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === Events === | + | === <translate>Events</translate> === |
− | === Constants === | + | === <translate>Constants</translate> === |
|} | |} |
Revision as of 07:27, 24 August 2018
Supported platforms: android, ios, mac, pc
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 |