Skip to content

v2.0.0.0-tts.8

Latest
Compare
Choose a tag to compare
@Benjamin-Dobell Benjamin-Dobell released this 06 Jul 10:25
· 1 commit to master since this release
  • Added support for conditional breakpoints.
  • Added support for delayed stack trace loading.
  • Fixed issues with Unity's ToString() throwing an exception that broke the debugger's ability to fetch variables.
  • Fixed support for expression evaluation when debugging a coroutine i.e. mouse-over inspections now function much more reliably.
  • Fixed issue with MoonSharp breaking at the same breakpoint after continuing, but not informing VSCode that execution has paused.

Installation

VSCode Extension

Download moonsharp-debug-1.8.2.vsix. Launch VSCode and navigate to Settings -> Extensions.

CleanShot 2024-07-06 at 20 36 41@2x

Don't search; you won't find this extension in the VSCode marketplace. Instead, click the 3 dot menu and install the VSIX file you downloaded.

CleanShot 2024-07-06 at 20 38 00

Warning

As above, don't ever try update the extension from within VSCode. It'll just replace our extension with a very outdated extension that lacks support for debugging multiple scripts.

MoonSharp (Lua Runtime) with Embedded Tabletop Simulator Debugger

Extract MoonsharpDef.dll.zip and overwrite the existing MoonsharpDef.dll inside Tabletop Simulator's directory at the path Resources/Data/Managed. If you're not sure where Tabletop Simulator is installed, in Steam simply right click on Tabletop Simulator and go to Manage -> Browse local files.

Note

In the case of macOS, you'd right click on the Tabletop Simulator app, and select Show package contents, open the Contents directory, then proceed to drill down through the paths described above.