Skip to content

Exception experience in VS Code is somwhat confusing #1007

@gregg-miskelly

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

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