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

Debug console does not support links to errors #48015

Closed
alejandromagnorsky opened this issue Apr 17, 2018 · 1 comment
Closed

Debug console does not support links to errors #48015

alejandromagnorsky opened this issue Apr 17, 2018 · 1 comment
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality

Comments

@alejandromagnorsky
Copy link

  • VSCode Version: 1.22.2
  • OS Version: Mac OS 10.13.4 (High Sierra)
  • Node Version: 9.11.1

Steps to Reproduce:

  1. Insert the following in launch.json:
{
     "type": "node",
     "request": "launch",
     "name": "Example",
     "outputCapture": "std",
     "program": "${workspaceRoot}/index.js"
}
  1. Create an index.js file with simply a as the content.

  2. Run the Example using the debug tool from VSCode:

/usr/local/bin/node --inspect-brk=3587 index.js 
Debugger listening on ws://127.0.0.1:3587/d0ddfdf1-fa6a-4335-a26d-e71aee45d6e0
Debugger attached.
/Users/xxx/Developer/api/index.js:1
(function (exports, require, module, __filename, __dirname) { a;
                                                              ^
ReferenceError: a is not defined
    at Object.<anonymous> (/Users/xxx/Developer/api/index.js:1:63)
    at Module._compile (internal/modules/cjs/loader.js:651:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
    at Module.load (internal/modules/cjs/loader.js:566:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
    at Function.Module._load (internal/modules/cjs/loader.js:498:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
    at startup (internal/bootstrap/node.js:201:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3)
Waiting for the debugger to disconnect...
ReferenceError: a is not defined
index.js:1
    at Object.<anonymous> (/Users/xxx/Developer/api/index.js:1:63)
    at Module._compile (internal/modules/cjs/loader.js:651:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
    at Module.load (internal/modules/cjs/loader.js:566:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
    at Function.Module._load (internal/modules/cjs/loader.js:498:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
    at startup (internal/bootstrap/node.js:201:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3)

So, not only the error show twice (for some reason) but also the line /Users/xxx/Developer/api/index.js:1:63 is not a link, thus I have to manually go to the file and line to see the error. I believe this was doable before in the Debug Console so I am confused about why it stopped working.

Does this issue occur when all extensions are disabled?: Yes

Thank you.

@weinand weinand added debug Debug viewlet, configurations, breakpoints, adapter issues debug-console labels Apr 26, 2018
@weinand weinand assigned isidorn and unassigned weinand Apr 26, 2018
@weinand weinand added the feature-request Request for new features or functionality label Apr 26, 2018
@isidorn
Copy link
Contributor

isidorn commented Apr 26, 2018

Dup of #34026

@isidorn isidorn closed this as completed Apr 26, 2018
@isidorn isidorn added the *duplicate Issue identified as a duplicate of another issue(s) label Apr 26, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 10, 2018
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) feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants