This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
Running truffle debug with appropriate flag (--vscode) - Enhancements & Fixes #254
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR description
This PR contains some improvements to the routine responsible for handling the calls addressed to vscode protocol. It also fixes some bugs and implements a new parameter to the debuger configuration. Below is the list of changes:
- Bug fix
I've made a simple modification to support windows command prompt calls. Command prompt does not support sending Json Objects on URL so I had to change the arguments from object to querystring params. Unfortunately, the Windows command prompt does not support sending an URL with Json Objects.
Before:
{"txHash":"0x97a81dbca1ea95263bb75b0147c99f263fe21cf702abe8974c310c9fa834d9b9","workingDirectory":"/Users/xhulz/Documents/xpto","providerUrl":"[http://127.0.0.1:8545"}](http://127.0.0.1:8545%22%7D/)
Now:
"txHash=0x4d1f42a6096f82e01a680a7364e958f9214447473e025f8f00fe05314a4f6fb5&workingDirectory=%2FUsers%2Fxhulz%2FDocuments%2FCode%2Fboxes&providerUrl=http%3A%2F%2F127.0.0.1%3A8545"
Refactor
@acuarica I took the opportunity to fix those issues that you've pointed on the last PR #231
New parameter on debug configuration
@acuarica I've implemented a new parameter on querystring called
fetchExternal
. I built the changes and left a comment onDebuggerCommand.ts
to handle this parameter, because it was hard coded tofalse
// TODO: Add a way to select if the user wants to fetch external contracts
const fetchExternal = false;
Documentation
doc-change-required
label to this PR if documentation updates are required.