Plutus Debugger for VSCodeThis is a VSCode extension designed to make life easier when working with Plutus smart contracts on Cardano. It combines a standard GHCi-based Haskell debugger with a custom simulator so you can build and test transactions without leaving your editor. What it actually doesThere are two main parts to this:
It also runs Getting SetupYou'll need a few things installed on your machine for this to work:
How to build itIf you want to run this from source:
To test it out, just hit How to use itDebugging HaskellOpen up your Haskell project (make sure it's a Cabal project). Go to the Run and Debug tab in VSCode and choose "Debug Cabal Project". Hit start, and once it loads (give it a second to spin up GHCi), you should be able to hit your breakpoints. Using the SimulatorYou'll see a little Plutus icon in the Activity Bar. Click that to open the simulator view.
From there you can use the command palette ( Running TestsWe've got a pretty decent test suite set up with Jest.
ContributingIf you find a bug or want to add something, feel free to open a PR. Just fork the repo, create a branch, and send it over. LicenseMIT |