This repository was archived by the owner on Mar 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Running truffle debug with appropriate flag (--vscode) - Enhancements & Fixes #254
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
michaeljohnbennett
approved these changes
Nov 9, 2022
acuarica
approved these changes
Nov 9, 2022
Contributor
acuarica
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Contributor
|
Hi @xhulz, thanks for taking care of this. Regarding the |
This was referenced Nov 10, 2022
This was referenced Dec 5, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bug
Something isn't working
enhancement
New feature or request
refactor
Improve code or project quality
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.tsto handle this parameter, because it was hard coded tofalse// TODO: Add a way to select if the user wants to fetch external contractsconst fetchExternal = false;Documentation
doc-change-requiredlabel to this PR if documentation updates are required.