176 lines
6.5 KiB
JSON
176 lines
6.5 KiB
JSON
// A launch configuration that compiles the extension and then opens it inside a new window
|
|
// 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": "Run Extension",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"--extensionDevelopmentPath=${env:TEMP}/nx-post-support-vscode-debug",
|
|
"${env:TEMP}/nx-post-support-vscode-debug",
|
|
"${env:TEMP}/nx-post-support-vscode-debug/test/postprocessor"
|
|
],
|
|
"cwd": "${env:TEMP}/nx-post-support-vscode-debug",
|
|
"outFiles": ["${env:TEMP}/nx-post-support-vscode-debug/dist/**/*.js"],
|
|
"linux": {
|
|
"args": [
|
|
"--extensionDevelopmentPath=${workspaceFolder}",
|
|
"${workspaceFolder}",
|
|
"${workspaceFolder}/test/postprocessor"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
|
|
"resolveSourceMapLocations": [
|
|
"${workspaceFolder}/dist/**/*.js",
|
|
"!**/node_modules/**"
|
|
]
|
|
},
|
|
"sourceMaps": true,
|
|
"resolveSourceMapLocations": [
|
|
"${env:TEMP}/nx-post-support-vscode-debug/dist/**/*.js",
|
|
"!**/node_modules/**"
|
|
],
|
|
"skipFiles": ["<node_internals>/**"],
|
|
"autoAttachChildProcesses": true,
|
|
"preLaunchTask": "NX Post Support: Compile Debug"
|
|
},
|
|
{
|
|
// Linux workaround: js-debug's extensionHost attach probes localhost and [::1]
|
|
// in parallel and aborts when [::1] is refused. Start the dev host ourselves
|
|
// with a fixed inspector port and attach directly to 127.0.0.1.
|
|
"name": "Run Extension (Linux)",
|
|
"type": "node",
|
|
"request": "attach",
|
|
"address": "127.0.0.1",
|
|
"port": 9333,
|
|
"timeout": 30000,
|
|
"continueOnAttach": true,
|
|
"sourceMaps": true,
|
|
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
|
|
"resolveSourceMapLocations": [
|
|
"${workspaceFolder}/dist/**/*.js",
|
|
"!**/node_modules/**"
|
|
],
|
|
"skipFiles": ["<node_internals>/**"],
|
|
"preLaunchTask": "NX Post Support: Start Dev Host (Linux)"
|
|
},
|
|
{
|
|
"name": "Debug Extension (Linux, hidden)",
|
|
"type": "node",
|
|
"request": "attach",
|
|
"address": "127.0.0.1",
|
|
"port": 9333,
|
|
"timeout": 30000,
|
|
"continueOnAttach": true,
|
|
"sourceMaps": true,
|
|
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
|
|
"resolveSourceMapLocations": [
|
|
"${workspaceFolder}/dist/**/*.js",
|
|
"!**/node_modules/**"
|
|
],
|
|
"skipFiles": ["<node_internals>/**"],
|
|
"preLaunchTask": "NX Post Support: Start Dev Host with debugpy (Linux)",
|
|
"presentation": {
|
|
"hidden": true,
|
|
"group": "",
|
|
"order": 4
|
|
}
|
|
},
|
|
{
|
|
"name": "Python Attach",
|
|
"type": "debugpy",
|
|
"request": "attach",
|
|
"processId": "${command:pickProcess}",
|
|
"justMyCode": false,
|
|
"presentation": {
|
|
"hidden": false,
|
|
"group": "",
|
|
"order": 3
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Extension (hidden)",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"--extensionDevelopmentPath=${env:TEMP}/nx-post-support-vscode-debug",
|
|
"${env:TEMP}/nx-post-support-vscode-debug",
|
|
"${env:TEMP}/nx-post-support-vscode-debug/test/postprocessor"
|
|
],
|
|
"cwd": "${env:TEMP}/nx-post-support-vscode-debug",
|
|
"outFiles": ["${env:TEMP}/nx-post-support-vscode-debug/dist/**/*.js"],
|
|
"linux": {
|
|
"args": [
|
|
"--extensionDevelopmentPath=${workspaceFolder}",
|
|
"${workspaceFolder}",
|
|
"${workspaceFolder}/test/postprocessor"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
|
|
"resolveSourceMapLocations": [
|
|
"${workspaceFolder}/dist/**/*.js",
|
|
"!**/node_modules/**"
|
|
]
|
|
},
|
|
"sourceMaps": true,
|
|
"resolveSourceMapLocations": [
|
|
"${env:TEMP}/nx-post-support-vscode-debug/dist/**/*.js",
|
|
"!**/node_modules/**"
|
|
],
|
|
"skipFiles": ["<node_internals>/**"],
|
|
"env": {
|
|
"USE_DEBUGPY": "True",
|
|
"NXPS_DEBUG_HOST": "127.0.0.1",
|
|
"NXPS_DEBUG_PORT": "5678"
|
|
},
|
|
"presentation": {
|
|
"hidden": true,
|
|
"group": "",
|
|
"order": 4
|
|
}
|
|
},
|
|
{
|
|
"name": "Python debug server (hidden)",
|
|
"type": "debugpy",
|
|
"request": "attach",
|
|
"listen": { "host": "127.0.0.1", "port": 5678 },
|
|
"justMyCode": false,
|
|
"logToFile": true,
|
|
"presentation": {
|
|
"hidden": true,
|
|
"group": "",
|
|
"order": 4
|
|
}
|
|
}
|
|
],
|
|
"compounds": [
|
|
{
|
|
"name": "Debug Extension and Python",
|
|
"configurations": ["Python debug server (hidden)", "Debug Extension (hidden)"],
|
|
"stopAll": true,
|
|
"preLaunchTask": "NX Post Support: Compile Debug",
|
|
"presentation": {
|
|
"hidden": false,
|
|
"group": "",
|
|
"order": 1
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug Extension and Python (Linux)",
|
|
"configurations": ["Python debug server (hidden)", "Debug Extension (Linux, hidden)"],
|
|
"stopAll": true,
|
|
"presentation": {
|
|
"hidden": false,
|
|
"group": "",
|
|
"order": 2
|
|
}
|
|
}
|
|
]
|
|
}
|