Introducing sCrypt Debugger

sCrypt
2 min readMay 5, 2020

--

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.

launch.json

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!

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

sCrypt
sCrypt

Written by sCrypt

sCrypt (https://scrypt.io) is a web3 development platform specialized in UTXO-blockchains like Bitcoin

No responses yet

Write a response