This fork is modified to use absolute paths from LRDB debugger instead of relative.
It also defines new launch.json
property - sourceFileMap for translating
remote paths to local and vice-versa.
This fork works only with similarly modified LRDB - kapecp/LRDB.
This extension is debug Lua programs with Visual Studio Code.
- Supports Windows,macOS,Linux
- Add/remove break points
- Conditional break points
- Continue,Pause,Step over, Step in, Step out
- Local,Global,_ENV,Upvalue variables and arguments
- Watch window
- Evaluate Expressions
- Debug with embedded Lua interpreter(Lua 5.3.3 on Javascript by Emscripten)
- Debug with Your host program(require embed debug server)
- Remote debugging over TCP
launch.json example:
{
"version": "0.2.0",
"configurations": [
{
"type": "lrdb",
"request": "launch",
"name": "Lua Launch",
"program": "${file}",
"cwd": "${workspaceFolder}",
"stopOnEntry": true
},
{
"type": "lrdb",
"request": "attach",
"host": "192.168.1.28",
"port": 21110,
"name": "attach to remote debugger",
"sourceRoot": "${workspaceFolder}",
"sourceFileMap": {
"${workspaceFolder}": "/mnt/luadb_b/"
}
}
]
}