Skip to content

Command (and other callback) exceptions should be reported to the debug console #86109

Closed

Description

When exception happens during command execution, nothing is printed anywhere, and it's pretty hard to understand what's going on.

What do you think about catching exceptions on the extension/vscode boundary, and reporting them into the console? If you are ok, then would you be open to accepting PRs adding such reporting?

Activity

  1. jrieken commented on Dec 4, 2019

    @jrieken
    Contributor

    It depends ;-) The extHostCommands logic doesn't catch/handle error but relies on the caller to handle them correctly. I think that's a good approach because error handling often differs from caller to caller. So, it depends what are trying and where are seeing error going unnoticed?

  2. added
    info-needed
    on Dec 4, 2019
  3. solomatov commented on Dec 4, 2019

    @solomatov
    ContributorAuthor

    Johannes Rieken (@jrieken) Commands is likely a bad example. I want to make exceptions in callback code more visible, i.e. if some exception happens, I want to see it in the vscode debug console, and be able to navigate to the source files there.

  4. bpasero commented on Dec 10, 2019

    @bpasero
    Contributor

    Konstantin Solomatov (@solomatov) does this work now given #86617 is merged?

  5. solomatov commented on Dec 10, 2019

    @solomatov
    ContributorAuthor

    Benjamin Pasero (@bpasero) I just tried, it worked perfectly. Many thanks for your help!

  6. added
    debt
    and removed
    info-needed
    on Dec 10, 2019
  7. locked and limited conversation to collaborators on Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debt

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions