I suggest you ...

Allow a thrown C++ exception to be inspected.

When the Exception Helper appears for an exception thrown in C++, it would be very useful to be able to inspect that exception object.

This would allow, for example, the what() message in a std::exception to be viewed. Ideally, inspection should respect the natvis rules, so that user defined exceptions can be displayed as intended inside the Exception Helper.

Even just adding the exception object to the Autos window would help immensely.

Currently we need to do this manually by finding the address of the exception object, it's type, and then adding a pointer cast to the Watch window.

13 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Mark Williams shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...
  • Doug commented  ·   ·  Flag as inappropriate

    I agree, this would be very useful even if it would just add what's needed to the Autos window or support the $exception pseudovariable from C#/VB. We use custom exceptions (not derived from std::exception) so if anything additional is done, please support something like natvis to display the message.

Feedback and Knowledge Base