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

Is it possible to display the backtrace when a proc macro panics? #17563

Open
JohnScience opened this issue Jul 8, 2024 · 1 comment
Open
Labels
A-proc-macro proc macro C-support Category: support questions

Comments

@JohnScience
Copy link

JohnScience commented Jul 8, 2024

I use rust-analyzer via an extension for VS Code.

I'd like to be able to see the backtrace for the panic that happened during macro expansion.

Capture

How can I make it happen?

P.S.

I'd like to get the backtrace so that I can see the line where the panic occurred and where in the call stack the problem was introduced.

@JohnScience JohnScience added the C-support Category: support questions label Jul 8, 2024
@Veykril Veykril added the A-proc-macro proc macro label Jul 11, 2024
@Veykril
Copy link
Member

Veykril commented Jul 11, 2024

Not right now. I don't know if we can install a panic handler that captures the backtrace for us to send back to the server in the error message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-proc-macro proc macro C-support Category: support questions
Projects
None yet
Development

No branches or pull requests

2 participants