-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VSCode debugging support for the web server (#3991)
* Add VSCode debugging support for the web server * Address review feedback
- Loading branch information
Showing
7 changed files
with
151 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Web server", | ||
"type": "go", | ||
"request": "attach", | ||
"port": 12345, | ||
"host": "localhost", | ||
"mode": "remote", | ||
"debugAdapter": "dlv-dap", | ||
"dlvFlags": ["--check-go-version=false"], | ||
"substitutePath": [ | ||
{ | ||
"from": "${workspaceFolder}", "to": "/home/user/wpt.fyi" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Build", | ||
"type": "shell", | ||
"command": "make build", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [ | ||
"$go" | ||
] | ||
}, | ||
{ | ||
"label": "Install WebDriver Deps", | ||
"type": "shell", | ||
"command": "make chrome && make chromedriver", | ||
}, | ||
{ | ||
"label": "Webdriver Single Chrome Test", | ||
"type": "shell", | ||
"command": "go test -v -timeout=15m -tags=large ./webdriver -run ${input:testName} -args -chrome_path=/usr/bin/google-chrome -chromedriver_path=/usr/bin/chromedriver -frame_buffer=false -staging=false -browser=chrome", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true | ||
}, | ||
"dependsOn": [ | ||
"Install WebDriver Deps" | ||
], | ||
"problemMatcher": [ | ||
"$go" | ||
] | ||
}, | ||
{ | ||
"label": "Webdriver Chrome Tests", | ||
"type": "shell", | ||
"command": "go test -v -timeout=15m -tags=large ./webdriver -args -chrome_path=/usr/bin/google-chrome -chromedriver_path=/usr/bin/chromedriver -frame_buffer=false -staging=false -browser=chrome", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true | ||
}, | ||
"dependsOn": [ | ||
"Install WebDriver Deps" | ||
], | ||
"problemMatcher": [ | ||
"$go" | ||
] | ||
} | ||
], | ||
"inputs": [ | ||
{ | ||
"id": "testName", | ||
"type": "promptString", | ||
"description": "Enter the test function name" | ||
} | ||
] | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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