-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from isaacabraham/code-debugging
VS Code Launchers & Tasks.
- Loading branch information
Showing
4 changed files
with
160 additions
and
57 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
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,51 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Debug Server", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "Build Server", | ||
"program": "${workspaceFolder}/src/Server/bin/Debug/netcoreapp2.1/Server.dll", | ||
"args": [], | ||
"logging": { | ||
"moduleLoad": false | ||
}, | ||
"stopAtEntry": false, | ||
"console": "internalConsole", | ||
}, | ||
{ | ||
"name": "Debug Client", | ||
"type": "chrome", | ||
"request": "launch", | ||
"preLaunchTask": "Watch Client", | ||
"url": "http://localhost:8080", | ||
"webRoot": "${workspaceFolder}/src/Client", | ||
"sourceMaps": true, | ||
"sourceMapPathOverrides": { | ||
"webpack:///*": "${workspaceFolder}/*", | ||
} | ||
}, | ||
{ | ||
"name": "Watch SAFE App", | ||
"type": "chrome", | ||
"request": "launch", | ||
"preLaunchTask": "Watch Client and Server", | ||
"url": "http://localhost:8080", | ||
"env": { | ||
"vsCodeSession":"true" | ||
}, | ||
"webRoot": "${workspaceFolder}/src/Client", | ||
"sourceMaps": true, | ||
"sourceMapPathOverrides": { | ||
"webpack:///*": "${workspaceFolder}/*", | ||
} | ||
} | ||
], | ||
"compounds": [ | ||
{ | ||
"name": "Debug SAFE App", | ||
"configurations": [ "Debug Server", "Debug Client" ], | ||
} | ||
] | ||
} |
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,81 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Build Server", | ||
"command": "dotnet", | ||
"args": [ "build" ], | ||
"type": "shell", | ||
"options": { "cwd": "${workspaceFolder}/src/Server" }, | ||
"group": "build", | ||
"problemMatcher": [ "$msCompile" ] | ||
}, | ||
{ | ||
"label": "Watch Client and Server", | ||
"command": "fake", | ||
"args": [ "build", "-t", "Run" ], | ||
"type": "shell", | ||
"options": { | ||
"cwd": "${workspaceFolder}", | ||
"env": { | ||
"vsCodeSession": "true" | ||
} | ||
}, | ||
"group": "build", | ||
"isBackground": true, | ||
"problemMatcher": { | ||
"fileLocation": "absolute", | ||
"background": { | ||
"beginsPattern": { "regexp": "run Run" }, | ||
"endsPattern": { "regexp": "i 「wdm」: Compiled|The terminal process terminated" }, | ||
"activeOnStart": true | ||
}, | ||
"pattern": { | ||
"regexp": "^(.*)\\((\\d+),(\\d+)\\): \\((\\d+),(\\d+)\\) (warning|error) FABLE: (.*)$", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"endLine": 4, | ||
"endColumn": 5, | ||
"severity": 6, | ||
"message": 7 | ||
} | ||
} | ||
}, | ||
{ | ||
"label": "Watch Client", | ||
"command": "fake", | ||
"args": [ "build", "-t", "Run" ], | ||
"type": "shell", | ||
"options": { | ||
"cwd": "${workspaceFolder}", | ||
"env": { | ||
"vsCodeSession": "true", | ||
"safeClientOnly": "true" | ||
} | ||
}, | ||
"group": "build", | ||
"isBackground": true, | ||
"problemMatcher": { | ||
"fileLocation": "absolute", | ||
"background": { | ||
"beginsPattern": { "regexp": "run Run" }, | ||
"endsPattern": { "regexp": "i 「wdm」: Compiled|The terminal process terminated" }, | ||
"activeOnStart": true | ||
}, | ||
"pattern": { | ||
"regexp": "^(.*)\\((\\d+),(\\d+)\\): \\((\\d+),(\\d+)\\) (warning|error) FABLE: (.*)$", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"endLine": 4, | ||
"endColumn": 5, | ||
"severity": 6, | ||
"message": 7 | ||
} | ||
} | ||
} | ||
] | ||
} |
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