Skip to content

Improve exception experience #16860

Closed

Description

@weinand

For details see dotnet/vscode-csharp#1007

We could consider to revive the Peek UI.

Activity

  1. added
    debug
    on Dec 7, 2016
  2. added
    feature-request
    on Jan 4, 2017
  3. isidorn commented on Jan 19, 2017

    @isidorn

    Not a fan of using peek UI since showing errors in the peek is the ugliest part of vscode that we have now imho. Another reason that peek UI is not the best for this is because peek has a lot of horizontal space and not a lot of vertical, which is not correct for exceptions which usually want to show a stack trace, e.g

    Error
        at Object.<anonymous> (/Users/isidor/Development/w/standup/fib.js:20:8)
        at Module._compile (module.js:556:32)
        at Object.Module._extensions..js (module.js:565:10)
        at Module.load (module.js:473:32)
        at tryModuleLoad (module.js:432:12)
        at Function.Module._load (module.js:424:3)
        at Timeout.Module.runMain [as _onTimeout] (module.js:590:10)
        at tryOnTimeout (timers.js:232:11)
        at Timer.listOnTimeout (timers.js:202:5)"
    

    As for the motivation of this I only see the request from the C# exception. Do all the other languages also expect an experience which is similar to Visual Studio?
    Yes I see that the exception is not that discoverable when it is not in the users face but it is a tradeoff in the end.

    In any case I do not see a rush for doing this in January -> I propose we push it to February and then design this nicely if we decide we want to change something here.

  4. weinand commented on Jan 23, 2017

    @weinand
    ContributorAuthor

    Showing the stacktrace in the peek UI is not necessary because we already have the CALLSTACK view.
    What we should show more prominently:

    • the Exception type,
    • if this is an unhandled exception,
    • and the exception message.

    Currently:

    • the exception message can only be found by finding $exception in the locals window, which can be confusing to find if one is in a big function
    • the exception type and unhandled/handled status can be found by hovering over the 'PAUSED ON EXCEPTION' text, which is nice, but not all that discoverable.

    We'll defer the implementation to February.

  5. weinand commented on Feb 2, 2017

    @weinand
    ContributorAuthor

    VS for Mac:

    2017-02-02_17-48-49

  6. weinand commented on Feb 6, 2017

    @weinand
    ContributorAuthor

    see microsoft/vscode-debugadapter-node#97 for the corresponding protocol change

  7. isidorn commented on Feb 15, 2017

    @isidorn
  8. added a commit that references this issue on Feb 21, 2017
    8cc2b9a
  9. isidorn commented on Feb 21, 2017

    @isidorn

    Closing this since we have an initial exception widget (still needs a bit of ux polish) thanks to Michel Kaporin (@michelkaporin) #20807
    I suggest to create a new item for March where we can capture on how to make the widget more feature rich.

  10. weinand commented on Feb 21, 2017

    @weinand
    ContributorAuthor

    Isidor Nikolic (@isidorn) Michel Kaporin (@michelkaporin) make sure that the hover information available on the CALL STACK view is shown in the peek UI. I'm referring to the bullet item

    The exception type and unhandled/handled status can be found by hovering over the 'PAUSED ON EXCEPTION' text, which is nice, but not all that discoverable

    from dotnet/vscode-csharp#1007

  11. locked and limited conversation to collaborators on Nov 18, 2017
  12. added a commit that references this issue on Sep 6, 2026
    52a107c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debugfeature-request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions