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

stdout/stderr not working in debug console #34558

Closed
tonila opened this issue Sep 18, 2017 · 1 comment
Closed

stdout/stderr not working in debug console #34558

tonila opened this issue Sep 18, 2017 · 1 comment
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)

Comments

@tonila
Copy link

tonila commented Sep 18, 2017

launch.json

  {
    "version": "0.2.0",
    "configurations": [
      {
        "type": "node",
        "request": "launch",
        "name": "test",
        "program": "${workspaceRoot}/test.js",
        "console": "internalConsole"
      }
    ]
  }

code

"use strict";
// we are using npm debug module, that uses stdout/stderr to write logs
//process.env.DEBUG = 'server'
//const debug = require('debug')('server');
//debug('debug')
process.stdout.write('stdout\n')
process.stderr.write('error\n')

debug console does not print stdout/stderr
If I change "internalConsole" to "integratedTerminal" or run app from terminal, stdout/stderr works fine

  • VSCode Version: Code 1.16.0 (787b31c, 2017-09-06T16:19:37.192Z)
  • OS Version: Linux x64 4.11.0-041100-generic
  • Extensions: Extensions are disabled
@vscodebot vscodebot bot added the debug Debug viewlet, configurations, breakpoints, adapter issues label Sep 18, 2017
@isidorn
Copy link
Contributor

isidorn commented Sep 18, 2017

Dup of #19750
fyi @roblourens

@isidorn isidorn closed this as completed Sep 18, 2017
@isidorn isidorn added the *duplicate Issue identified as a duplicate of another issue(s) label Sep 18, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants