Skip to content

Instantly share code, notes, and snippets.

@yrong
Forked from 0xGabi/launch.json
Created September 15, 2022 10:36
Show Gist options
  • Save yrong/f0bf3101d30d6573a9e87d64862e1f92 to your computer and use it in GitHub Desktop.
Save yrong/f0bf3101d30d6573a9e87d64862e1f92 to your computer and use it in GitHub Desktop.
VSCode configuration to debug using hardhat in a monorepo
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "hardhat test",
"skipFiles": ["<node_internals>/**"],
"runtimeExecutable": "${workspaceFolder}/packages/hardhat/node_modules/.bin/hardhat",
"args": ["test", "--network", "localhost"],
"cwd": "${workspaceFolder}/packages/hardhat"
},
{
"type": "node",
"request": "launch",
"name": "hardhat new byot garden",
"skipFiles": ["<node_internals>/**"],
"runtimeExecutable": "${workspaceFolder}/packages/hardhat/node_modules/.bin/hardhat",
"args": ["run", "./scripts/new-byot-garden.ts", "--network", "rinkeby"],
"cwd": "${workspaceFolder}/packages/hardhat"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment