Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding in configuration snippets #1366

Merged
merged 2 commits into from
Apr 7, 2017
Merged
Changes from 1 commit
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
98 changes: 98 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,104 @@
}
}
},
"configurationSnippets": [
{
"label": ".NET: Launch .NET Core App",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we put 'Console' in the title?

"description": "Launch a .NET Core App with a debugger.",
"body": {
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "^\"\\${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll>\"",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use their syntax to have the user fill in this path?

Copy link
Contributor

@gregg-miskelly gregg-miskelly Apr 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ex:

"program": "^\"\\${workspaceRoot}/bin/Debug/${1:<target-framework>/<project-name.dll>}\"", 

"args": [],
"cwd": "^\"\\${workspaceRoot}\"",
"stopAtEntry": false,
"console": "internalConsole"
}
},
{
"label": ".NET: Attach to local .NET Core App",
"description": "Attach a debugger to a .NET Core App.",
"body": {
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "^\"\\${command:pickProcess}\""
}
},
{
"label": ".NET: Launch a local .NET Core Web App",
"description": "Launch a .NET Core Web App with both a browser and a debugger.",
"body": {
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "^\"\\${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll>\"",
"args": [],
"cwd": "^\"\\${workspaceRoot}\"",
"stopAtEntry": false,
"launchBrowser": {
"enabled": true,
"args": "^\"\\${auto-detect-url}\"",
"windows": {
"command": "cmd.exe",
"args": "^\"/C start \\${auto-detect-url}\""
},
"osx": {
"command": "open"
},
"linux": {
"command": "xdg-open"
}
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "^\"\\${workspaceRoot}/Views\""
}
}
},
{
"label": ".NET: Launch a remote .NET Core App",
"description": "Launch a .NET Core App on a remote machine.",
"body": {
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "^\"\\${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll>\"",
"args": [],
"cwd": "^\"\\${workspaceRoot}\"",
"stopAtEntry": false,
"console": "internalConsole",
"pipeTransport": {
"pipeCwd": "^\"\\${workspaceRoot}\"",
"pipeProgram": "enter the fully qualified path for the pipe program name, for example '/usr/bin/ssh'",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'pipeProgram' also?

"pipeArgs": [],
"debuggerPath": "enter the path for the debugger on the target machine, for example ~/vsdbg/vsdbg"
}
}
},
{
"label": ".NET: Attach to remote .NET Core App",
"description": "Attach a debugger to a .NET Core App on a remote machine.",
"body": {
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "^\"\\${command:pickRemoteProcess}\"",
"pipeTransport": {
"pipeCwd": "^\"\\${workspaceRoot}\"",
"pipeProgram": "enter the fully qualified path for the pipe program name, for example '/usr/bin/ssh'",
"pipeArgs": [],
"debuggerPath": "enter the path for the debugger on the target machine, for example ~/vsdbg/vsdbg"
}
}
}
],
"initialConfigurations": [
{
"name": ".NET Core Launch (console)",
Expand Down