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

Debugger will crash when the show method throw an exception. #293

Closed
HaoxuanGuo opened this issue Jul 8, 2021 · 3 comments
Closed

Debugger will crash when the show method throw an exception. #293

HaoxuanGuo opened this issue Jul 8, 2021 · 3 comments

Comments

@HaoxuanGuo
Copy link

Debugger will crash when the show method throw an exception.

For example, the following code will make a crash on debugger.

struct Test end
Base.show(io::IO, self::Test) = print(io, wrong_code())  # note: `wrong_code` is not defined
a = Test()
@KristofferC
Copy link
Member

julia> @enter Test();
In Test() at REPL[5]:1
 1  1 ─ %1 = $(QuoteNode(Test))
 2  │   %2 = %new(%1)
>3  └──      return %2

About to run: <printing error...>
1|debug> n

julia> 

where is the crash?

@HaoxuanGuo
Copy link
Author

Sorry, my mistake.

@KristofferC
Copy link
Member

No problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants