Skip to content

Full path in debug callstack #30686

Closed
Closed

Description

From Yuval Greenfield (@ubershmekel) on June 5, 2017 21:18

I have an app with index.js that's calling my library that has an entry point of index.js which relies on node_modules/express/lib/router/index.js so my stack trace is entirely index.js with no way of telling which part of it is actually in my code.

Is there a way to give a user-configurable option or perhaps expand the path when there's room for it?

index.js

Related to:

Copied from original issue: microsoft/vscode-node-debug#146

Activity

  1. weinand commented on Jul 14, 2017

    @weinand
    ContributorAuthor

    You can hover over the name to see the full path of the name.

  2. added
    debug
    on Jul 14, 2017
  3. added
    feature-request
    on Jul 14, 2017
  4. ubershmekel commented on Jul 14, 2017

    @ubershmekel
  5. auchenberg commented on Jul 14, 2017

    @auchenberg
    Contributor

    Could we render the full path and simple use right-aligned text ellipsis to mask the overflow?

  6. isidorn commented on Jul 18, 2017

    @isidorn

    Thanks for the suggestions however rendering the full path would give more details to an already clutterd UI imho.
    Though these sketches are a good first start for a PR.

  7. weinand commented on Nov 14, 2017

    @weinand
    ContributorAuthor

    To avoid the clutter when always showing the full path we could only show those segments from the end of the path that allow to distinguish files with the same name, e.g. something like this:

    foo.js
    src/index.js
    router/index.js
    main.js
    

    With this approach most callstacks will continue to look compact and only those with duplicate file names will need more space.

  8. isidorn commented on Nov 14, 2017

    @isidorn

    I like this idea, it goes well with some other places in the workbench where in tabs we show path of a file only if the file name is duplicated.

  9. weinand commented on Nov 14, 2017

    @weinand
    ContributorAuthor

    Oh, I didn't know that. So even better!

  10. isidorn commented on May 11, 2018

    @isidorn

    We now show the path segments which distinguish the sources. You can try it in tomorrow's insiders

    screen shot 2018-05-11 at 15 16 42

  11. added
    verification-needed
    on May 11, 2018
  12. added
    verified
    on May 30, 2018
  13. locked and limited conversation to collaborators on Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debugfeature-requestrelease-notesverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions