-
Notifications
You must be signed in to change notification settings - Fork 18k
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
fmt: run doesn't panic, but debug panics when using embed object #65299
Comments
Change https://go.dev/cl/558697 mentions this issue: |
what's debug mode? |
Could you explain what are "Running mode" and "debug mode"? The Go toolchain and standard library don't have those mode. If you're running in an IDE, it could be that the code panics and recovers, but the IDE's debugger captures the first panic and pauses the execution. If that is the case, you should be able to continue the execution and let it recover. |
As it turns out (go-delve/delve#3651) this is caused by a limitation of old versions of debugserver (go-delve/delve#852) |
debug with delve.
it's the
yes. that's correct. will update the xcode and have a try. thank you all for the review. |
Go version
all go versions up to 1.21.6
Output of
go env
in your module/workspace:What did you do?
i run the following test case, and everything runs well. but when i debug, it panics.
What did you see happen?
the UT can execute in Running mode, but panics in debug mode.
the if check on
nil
doesn't return true as it is a typed interface nil rather than the raw nil.What did you expect to see?
debug should run well and also print as running:
The text was updated successfully, but these errors were encountered: