Skip to content

Call Stack View: Include this.toString() next to method name #1770

Closed

Description

For a lot of debugging situations, the method name alone is not very helpful in the call stack, especially when you have many instances of a class that interact with each other (the EventEmitter or Observable would be an example).

It would be very helpful if the call stack view would include this.toString() (or something similar) for each call frame where the this object implements toString (similar to the hover label logic).

I hacked together a quick and dirty proof of concept that gives event emitters names (which they return in their toString implementation).
With this feature, the call stack would look like this (notice _onDidChangeModelContent.fire and all the different beginUpdate call frames):

Code_-_Insiders_yU1KaweQL1

Compare this with how it is without this feature request:

oHohxBgi6E

Activity

  1. added
    feature-request
    on Aug 2, 2023
  2. added a commit that references this issue on Sep 13, 2023
    85489a8
  3. added a commit that references this issue on Sep 13, 2023
    65f087c
  4. hediet commented on Sep 18, 2023

    @hediet
    MemberAuthor

    Very nice:

    Code_-_Insiders_UD1L0In2he

    I think this is a significant improvement of the call stack view!

    I don't know if there are some toString implementation (e.g. URI.toString) that would be annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestverified

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions