Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,11 @@
"description": "Provider's URL of the Ethereum network to connect to.",
"default": "http://127.0.0.1:8545"
},
"network": {
"type": "string",
"description": "Name of the Ethereum network to connect to. The network name should be a key in the `networks` object in your Truffle config file.",
"default": "development"
},
"disableFetchExternal": {
"type": "boolean",
"description": "When set, do not try to fetch external contract sources when debugging a forked network instance. When the network is not being forked, this flag is ignored.",
Expand Down Expand Up @@ -639,6 +644,21 @@
"providerUrl": "http://127.0.0.1:8545",
"disableFetchExternal": false
}
},
{
"label": "Truffle - Debugger Launch using config network",
"description": "Runs the Truffle debugger (truffle) and attaches to a TestRPC instance",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super minor thing but just wondering if we should call it a "Ganache" instance vs "TestRPC" (given the latter is super dated)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kevinbluer for catching this. I've changed it to Ganache. Before I used TestRPC because it was used in a similar snippet, so I changed both.

"body": {
"type": "truffle",
"request": "launch",
"name": "Debug Transaction with Truffle",
"stopOnEntry": false,
"txHash": "0x",
"files": [],
"workingDirectory": "^\"\\${workspaceFolder}\"",
"network": "development",
"disableFetchExternal": false
}
}
],
"variables": {}
Expand Down