Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

Run compiled code with RUST_BACKTRACE=1 #273

Open
jdm opened this issue Jan 8, 2017 · 3 comments
Open

Run compiled code with RUST_BACKTRACE=1 #273

jdm opened this issue Jan 8, 2017 · 3 comments

Comments

@jdm
Copy link

jdm commented Jan 8, 2017

Getting output like

thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', ../src/libcollections/vec.rs:1371
note: Run with `RUST_BACKTRACE=1` for a backtrace.

from the playground is frustrating, because there's no way to make the backtrace show up and many panics can occur in non-playground code.

@TimNN
Copy link
Contributor

TimNN commented Jan 11, 2017

That is already possible today, in the settings (:gear: on the right) you can enable backtraces.

@jdm
Copy link
Author

jdm commented Jan 11, 2017

I feel like we should change the default, in that case.

@ghost
Copy link

ghost commented Apr 27, 2017

Could set it to 'auto' as default, which would only show the backtrace if 'Debug' not when 'Stable'

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

No branches or pull requests

2 participants