Skip to content

Instantly share code, notes, and snippets.

@0xGabi
Created October 23, 2021 21:45
Show Gist options
  • Save 0xGabi/2cc5eac8539e64b68016ced49c1b4950 to your computer and use it in GitHub Desktop.
Save 0xGabi/2cc5eac8539e64b68016ced49c1b4950 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