LIGO Debugger (Early Alpha Preview)
A Visual Studio Code extension that provides LIGO debugging capability.
Note: This package is in a very early alpha version, released as a preview. Bugs are to be expected!
In the future, this package will be deprecated and joined with the LIGO Language Server (
To use this package, you need to have LIGO version 0.47.0 or greater available in your PATH.
Currently, simple contracts are supported, with support for more complex contracts on the way.
Running the debugger
You can press F5 to start debugging a LIGO contract. Upon the launch of the debugger, you will be asked for a value for the parameter, and a value for the storage. For now, you can provide a LIGO entrypoint in your
Use F11 (or press "Step Into") to step through LIGO code in details.
Passing parameter and storage
It is possible to hardcode a concrete value.
However, usually you might prefer using the auto-generated values like
In both cases you can use complex expressions, e.g.
It is possible to refer to constants declared in the contract and even call functions.
In case you need to supply a value in the lower-level Michelson format, prefix it with
Specifying a Michelson entrypoint
When the parameter of your contract has multiple constructors, normally you can just pass something like
In case of nested constructors, it might be simpler to specify the bottom-most constructor name (which generally must be unique across the contract) and its argument. The underlying Michelson engine allows for this.
To make it work, set
With such a contract, you can specify in