Skip to content

BeamNG/vscode-lrdb

Repository files navigation

Lua Remote Debugger for Visual Studio Code

Allows debugging embedded Lua VMs through Visual Studio Code.

Lua debug

Features

  • Supports Windows, macOS and Linux
  • Add/remove breakpoints
  • Conditional breakpoints
  • Continue, pause, step over, step in, step out
  • View and modify Local, global, _ENV, upvalue variables and arguments
  • Watch window
  • Evaluate expressions
  • Remote debugging over TCP
  • Multiple debug sessions possible at the same time
  • New view in debug: Lua Remote Debugger - VMs. This is polling the ports from 21110 to 21120 on localhost to find any actively running session.

Session view

Requirements

One of those lua Remote Debugger:

Usage

Start the debugger server in your embedded Lua, then attach VS Code to it.

How to use:

Development

Please see the developer docs if you want to work on this

Changelog

v0.5.4

  • Fixed tables missing keys due to assuming that a Lua table was an "array" like table when it was really a "dictionary" table
  • Integer, boolean, and table type keys are now able to be viewed in "dictionary" like tables (before it was only string keys)

v0.5.3

  • Initial release!

Credits

Thank you very much to everyone working on this tech in open source team effort! :)

Based on the work from: