knurling-rs / probe-run

Run embedded programs just like native ones
Apache License 2.0
645 stars 75 forks source link

max-backtrace-len = {0,1} prints 2 frames #196

Closed japaric closed 3 years ago

japaric commented 3 years ago

STR

Run this command from an initialized app-template

$ cargo b --bin hello
$ probe-run --chip nrf52840 --force-backtrace --max-backtrace-len=0 target/*/debug/hello
(..)
stack backtrace:
   0: lib::inline::__bkpt
        at ./asm/inline.rs:13
   1: __bkpt
        at ./asm/lib.rs:49
  (HOST) WARN  maximum backtrace length of 0 reached; cutting off the rest
               note: re-run with `--max-backtrace-len=<your maximum>` to extend this limit
  (HOST) INFO  device halted without error

You get the same output (2 frames) if you set max-backtrace-len=1

Meta

$ probe-run -V
0.2.2
supported defmt version: 0.2