Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Declare network option in launch configuration #267

Merged
merged 3 commits into from
Dec 1, 2022
Merged
Changes from all commits
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
25 changes: 22 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,7 @@
"launch": {
"required": [
"txHash",
"workingDirectory",
"providerUrl"
"workingDirectory"
],
"properties": {
"stopOnEntry": {
Expand Down Expand Up @@ -603,6 +602,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 All @@ -627,7 +631,7 @@
"configurationSnippets": [
{
"label": "Truffle - Debugger Launch",
"description": "Runs the Truffle debugger (truffle) and attaches to a TestRPC instance",
"description": "Runs the Truffle debugger (truffle) and attaches to a Ganache instance",
"body": {
"type": "truffle",
"request": "launch",
Expand All @@ -639,6 +643,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 Ganache instance",
"body": {
"type": "truffle",
"request": "launch",
"name": "Debug Transaction with Truffle",
"stopOnEntry": false,
"txHash": "0x",
"files": [],
"workingDirectory": "^\"\\${workspaceFolder}\"",
"network": "development",
"disableFetchExternal": false
}
}
],
"variables": {}
Expand Down