Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve exception information shown in the debugger. #69

Open
2 of 3 tasks
ElektroKill opened this issue Feb 1, 2022 · 1 comment
Open
2 of 3 tasks

Improve exception information shown in the debugger. #69

ElektroKill opened this issue Feb 1, 2022 · 1 comment
Labels
debugger Relating to the debugger component enhancement New feature or request
Milestone

Comments

@ElektroKill
Copy link
Member

ElektroKill commented Feb 1, 2022

Currently when an unhandled exception occurs in the debugger dnSpy displays both the exception type and message. This is a rather limited set of information that could be extended.

Ideas of information that could be added to the exception error prompt:

  • HResult - Shows the HResult associated with the thrown exception.
  • InnerException - A lot of the exceptions defined by the core library can have an inner exception. This information would be especially useful for identifying the cause of these exceptions.
  • StackTrace - This could be helpful but this is not really necessary as the method in which the exception is thrown is automatically shown by dnSpy and the call stack can be inspected through the respective debugger window.
@ElektroKill ElektroKill added enhancement New feature or request debugger Relating to the debugger component labels Feb 1, 2022
@ElektroKill ElektroKill added this to the 6.2 milestone May 9, 2022
@ElektroKill
Copy link
Member Author

Displaying HResult property of an unhandled exception is now implemented for both debugging engines. Displaying inner exceptions will require some public API changes to be implemented so it will not make it into 6.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugger Relating to the debugger component enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant