-
Notifications
You must be signed in to change notification settings - Fork 36.7k
Closed
Labels
*as-designedDescribed behavior is as designedDescribed behavior is as designeddebugDebug viewlet, configurations, breakpoints, adapter issuesDebug viewlet, configurations, breakpoints, adapter issues
Description
Version info:
- VSCode: 1.19.2
- OS: Windows 10 1709
- Node: 8.9.3
- Debug: 3.1.0 (from
npm install debug)
To reproduce: create a simple node app that generates debug output using the debug package, Then:
- Run the app with launch,json that does not have
"outputCapture": "std". No debug output. - Run the app with launch.json that has
"outputCapture": "std". Debug output visible.
It appears this issue occurs because debug defaults to sending output directly to process.stderr and the vscode debug console doesn't seem to pick it up unless "outputCapture": "std" is present.
Is this expected behavior from vscode?
Or perhaps my launch.json is misconfigured:
{
// 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": [
{
"type": "node",
"request": "attach",
"name": "Attach",
"port": 9229
},
{
"type": "node",
"request": "launch",
"name": "Mocha Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"-u",
"tdd",
"--timeout",
"999999",
"--colors",
"${workspaceFolder}/lib/test"
],
"env": {
"DEBUG": "*,-mocha:*"
},
"outputCapture": "std",
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}\\lib\\server.js"
},
]
}Metadata
Metadata
Assignees
Labels
*as-designedDescribed behavior is as designedDescribed behavior is as designeddebugDebug viewlet, configurations, breakpoints, adapter issuesDebug viewlet, configurations, breakpoints, adapter issues