Skip to content

Exception experience in VS Code is somwhat confusing #1007

Closed

Description

@gregg-miskelly

Environment data

VS Code version: 1.8.0-insider (Commit be33bcdb2beb2d01c76ec8f830a70feaaa6721f5)

Steps to reproduce

Run the following program under the debugger

        public static void Main(string[] args)
        {
            throw new Exception("Example Exception Message");
        }

Expected behavior

VS Code should somewhat prominently show me the Exception type, if this is an unhandled exception, and the exception message. While in this trivial example these things are obvious from looking at the code, if they exception comes from library code this is often not the case.

Actual behavior

  • 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

vscode-exception

Equivalent scenario with VS:
vs-exception

Activity

  1. gregg-miskelly commented on Dec 1, 2016

    @gregg-miskelly
    ContributorAuthor

    @weinand is providing a basic dialog that comes up to display the text property of the exception something that VS Code might consider adding? Or should we just try and solve this on our side by dumping more information to the console?

  2. DustinCampbell commented on Dec 21, 2016

    @DustinCampbell
    Member

    @weinand: Ping?

  3. gregg-miskelly commented on Dec 21, 2016

    @gregg-miskelly
    ContributorAuthor

    @DustinCampbell Andre and Isidor are planning to look at this in January. microsoft/vscode#16860 tracks that.

  4. DustinCampbell commented on Dec 21, 2016

    @DustinCampbell
    Member

    Awesome! Thanks for the update. Sounds great!

  5. added this to the 1.9 milestone on Mar 8, 2017
  6. gregg-miskelly commented on Mar 8, 2017

    @gregg-miskelly
    ContributorAuthor

    Here is what things look like in VS Code 1.11. Remaining work is to improve our message.

    exception-vscode-1 11

  7. weinand commented on Mar 8, 2017

    @weinand

    @gregg-miskelly this feature is not finished yet. Please see microsoft/vscode#22078

  8. gregg-miskelly commented on Mar 8, 2017

    @gregg-miskelly
    ContributorAuthor

    @weinand ahh. Thanks!

  9. modified the milestones: 1.10, 1.9 on Apr 12, 2017
  10. gregg-miskelly commented on Apr 12, 2017

    @gregg-miskelly
    ContributorAuthor

    This will be improved in 1.9, but there are still some changes I would like to see on the C# extension (ex: func-eval'ing the Message property) that I don't think will make 1.9, so moving out.

  11. modified the milestones: 1.11, 1.10 on May 25, 2017
  12. modified the milestones: 1.11, 1.12 on Jun 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions