Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@cgranade
Copy link
Contributor

@cgranade cgranade commented Mar 3, 2020

This PR separates stack trace handling into a new event, paralleling the design of OnLog. This PR also separates our source file identification logic into a method that can be called separately in anticipation of picking that feature up from IQ# and providing rich stack traces there.

(NB: as I've been making PRs, I try to add #nullable enable. In this case, that has identified some potential issues with qubit managers being null that might be worth addressing in future PRs.)

/// Adds an event to the OnStackTrace event that logs stack traces
/// as plain text via the OnLog event (e.g.: for console output).
/// </summary>
public void EnableDefaultStackTraceHandling()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe name this EnablePrintException is not handling StackTrace but how exceptions are handled...

@cgranade cgranade merged commit c97051a into master Mar 10, 2020
@cgranade cgranade deleted the cgranade/on-exception branch March 10, 2020 17:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants