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

Node debugger does not expand obj/array correctly in debug console #35180

Closed
octref opened this issue Sep 26, 2017 · 1 comment
Closed

Node debugger does not expand obj/array correctly in debug console #35180

octref opened this issue Sep 26, 2017 · 1 comment
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues

Comments

@octref
Copy link
Contributor

octref commented Sep 26, 2017

  • VSCode Version: Code - Insiders 1.17.0-insider (a5210bc, 2017-09-26T05:11:30.780Z)
  • OS Version: Darwin x64 16.7.0
  • Extensions:
Extension Author (truncated) Version
material-icon-theme PKi 2.2.1
vscode-eslint dba 1.3.2
tslint eg2 1.0.9
prettier-vscode esb 0.23.1
vetur oct 0.9.10
vim vsc 0.10.1

(1 theme extensions excluded)


While testing #34756.

image

launch.json

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

test.js

console.log([1, 2, 3, 4, 5])
console.log('t1', { foo: 5 })
console.warn('t2', { foo: 5 })
console.error('t3', { foo: 5, bar: 10 })

const t = {};
for (let i = 0; i < 100; i++) {
  t['attr' + i] = i;
}

console.log(t);

When using extensionHost and putting the code inside activate, they all expand correctly.

image

@isidorn
Copy link
Contributor

isidorn commented Sep 27, 2017

@octref there was an issue that upon expansion of objects in repl we would throw exception and I have pushed a fix for that.
However not being able to expand while the session is terminated is expected, you can only do that while you are in a stopped state and the frontend is able to get children from teh backend debug adapter

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label May 17, 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
Projects
None yet
Development

No branches or pull requests

3 participants