Introducing sCrypt Debugger
Today we are extremely excited to announce the biggest improvement since we first released our IDE, a source-level sCrypt debugger. It supports breakpoints, stepping, stack trace, and variable inspection, all of which are tremendously helpful for developers to find and fix bugs.

How to Use the Debugger

Simply create a launch.json file located in your workspace's .vscode folder and hit F5 to start debugging.

Debug Session With Launch Configuration

As in other VSCode debuggers, the launch.json file stores debugging configurations. Below is a reference on launch.json attributes specific to the sCrypt debugger.

launch.json

type and request attributes are fixed. Other attributes are:

name : name of the debugging session

: name of the debugging session program : an absolute path to the sCrypt program to debug. ${workspaceFolder} is a predefined variable referring to the path of the folder opened

: an absolute path to the sCrypt program to debug. is a predefined variable referring to the path of the folder opened constructorParams : constructor arguments in sCrypt literal format, separated by commas

: constructor arguments in sCrypt literal format, separated by commas entryMethod : public function name

: public function name entryMethodParams: function arguments in sCrypt literal format, separated by commas

Alternative to Launch Debugger

You can also launch the debugger without a launch.json file. Simply open the .scrypt source file you want to debug and hit F5.

Debug Session Without Launch Configuration

For more general information on debugging in VSCode, you can visit this and this.

Happy debugging!
[]
['Smart Contracts', 'Bitcoin', 'Scrypt', 'Debugger', 'Bitcoin Sv']