mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add 'reason' argument to debug.pause
This commit is contained in:
parent
972181022a
commit
33a5410ca2
4 changed files with 17 additions and 6 deletions
|
|
@ -55,7 +55,7 @@ debug.sethook(function (e, line)
|
|||
end
|
||||
current_func = _debug_getinfo(2).func
|
||||
current_func_stack_size = calc_stack_size()
|
||||
__pause("paused on breakpoint")
|
||||
__pause("breakpoint")
|
||||
debug.pull_events()
|
||||
end, "lr")
|
||||
|
||||
|
|
@ -122,7 +122,7 @@ function debug.remove_breakpoint(source, line)
|
|||
end
|
||||
|
||||
function error(message, level)
|
||||
__pause("paused on exception: " .. message)
|
||||
__pause("exception", message)
|
||||
__error(message, level)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue