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, thelaunch.jsonfile stores debugging configurations. Below is a reference on launch.json attributes specific to the sCrypt debugger.


type and request attributes are fixed. Other attributes are:

  • name: 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
  • constructorParams: constructor arguments in sCrypt literal format, separated by commas
  • entryMethod: 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.jsonfile. 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!



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store

sCrypt ( is a company with a mission to provide integrated on-chain smart contracting solutions on Bitcoin SV