Skip to content

Debugging

Rohan Singh edited this page Feb 19, 2021 · 4 revisions

Debugging can be enabled by switching your state to generate full debug information and setting the Debugger property.

state.Options.DebugInfo = MondDebugInfoLevel.Full;
state.Debugger = new MondRemoteDebugger(1597);

Scripts that do not have full debug information will not support debugging with MondRemoteDebugger.

After setting the state's debugger you can run your scripts normally and attach to it from Visual Studio Code using the Mond VSCode extension.

After attaching you should see something like this: VSCode Debugger