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

Missing suggestions in debug console for err object #11193

Closed
stevencl opened this issue Aug 30, 2016 · 3 comments
Closed

Missing suggestions in debug console for err object #11193

stevencl opened this issue Aug 30, 2016 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Milestone

Comments

@stevencl
Copy link
Member

  • VSCode Version: 1.5.0-insider
  • OS Version: Windows 10

Steps to Reproduce:

  1. Create a simple node app that uses lodash but do not install lodash
  2. Run the app in the debugger
  3. Get an error as the lodash module cannot be found.
  4. Inspect the err object in the console. Expect to see intellisense for every member of err but only see one suggestion:

image

Note in the image above how I have previously typed err.message in the window but message is not offered as one of the suggestions when I type err.

@stevencl stevencl added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues labels Aug 30, 2016
@stevencl stevencl removed bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues labels Aug 30, 2016
@stevencl
Copy link
Member Author

Found while testing #10997

@isidorn
Copy link
Contributor

isidorn commented Aug 30, 2016

The list of suggestions is coming from the node debug backend, thus forwarding to @weinand

@isidorn isidorn assigned weinand and unassigned isidorn Aug 30, 2016
@isidorn isidorn added the debug Debug viewlet, configurations, breakpoints, adapter issues label Aug 30, 2016
@weinand weinand added this to the August 2016 milestone Aug 30, 2016
@weinand weinand added the bug Issue identified by VS Code Team member as probable bug label Aug 30, 2016
@weinand
Copy link
Contributor

weinand commented Aug 31, 2016

Properties of error objects are not enumerable. Using Object.getOwnPropertyNames(o) instead of Object.keys(o) fixes that.

@weinand weinand added the verification-needed Verification of issue is requested label Aug 31, 2016
@roblourens roblourens added the verified Verification succeeded label Aug 31, 2016
@weinand weinand removed the verification-needed Verification of issue is requested label Sep 2, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants