Update README.md

This commit is contained in:
Scott Lembcke 2024-07-30 11:53:45 -05:00 committed by GitHub
parent 521d233e5d
commit 574c9ccf8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ There are several overloadable functions you can use to customize debugger.lua.
* `dbg.write(str)` - Write a string to the output. (Defaults to write to stdout)
* `dbg.shorten_path(path)` - Return a shortened version of a path. (Defaults to simply return `path`)
* `dbg.exit(err)` - Stop debugging. (Defaults to `os.exit(err)`)
* `dbg.pretty(obj)' - Output a pretty print string for an object. (Defaults to a reasonable version using __tostring metamethods and such)
* `dbg.pretty(obj)` - Output a pretty print string for an object. (Defaults to a reasonable version using __tostring metamethods and such)
Using these you can customize the debugger to work in your environment. For instance, you can divert the I/O over a network socket or to a GUI window.