-
Notifications
You must be signed in to change notification settings - Fork 44
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
Can't determine where tests panicked on iOS. #72
Comments
It seems that even a very simple panicking test like this doesn't show backtrace:
I thought that to show the backtrace from the device I can run:
but it seems that the "--env" parameter is ignored for iOS. Could you please implement that or at least allow users to pass RUST_BACKTRACE=1 env var to the device? |
Hey @mfronczyk, thank for your interest :) Unfortunately, I'm afraid what you're asking might not possible. The very fragile and convoluted way we have to go to launch the app on the iPhone (through the lldb debugger) prevent us to do many things (like changing cwd) and as far as i remember environment is part of it. |
Thanks for a quick response. This page says that it should be possible to change env vars using lldb - https://lldb.llvm.org/lldb-gdb.html Are you say saying that it wouldn’t work on iPhone? |
Yeah... the remote launch process through LLDB is very convoluted and not greatly documented. As soon as you venture in something that is not a strict requirement from XCode, it breaks. As far as I can remember, env is like that. |
I have tests that access file system and network interfaces, and the code tested panics when runs on my iPhone. Here's the output:
The error message points to the core lib, which is not very helpful, and the backtrace doesn't seem to show where the panic was.
How can I see more detailed error logs?
The text was updated successfully, but these errors were encountered: