agb/examples/the-dungeon-puzzlers-lament
Gwilym Inzani e8aed8e376
Backtraces (#590)
Implements a very basic backtrace and the ability to format them

If you run the panic example and press A, you get:

```
[ERROR] GBA Debug: [failed]
[ERROR] GBA Debug: debug data: ce3-1ee7-1fb7-24d-1ad
[FATAL] GBA Debug: Error: panicked at src/memory_mapped.rs:101:24:
index out of bounds: the len is 240 but the index is 240
```

which you can then prettify with:

```
> agb-addr2line ../target/thumbv4t-none-eabi/debug/examples/panic 0ce3-1f57-2027-024d-01ad
0:	rust_begin_unwind <agb>/lib.rs:321
1:	core::panicking::panic_nounwind <core>/panicking.rs:151
2:	core::panicking::assert_failed_inner <core>/panicking.rs:321
3:	agb::memory_mapped::MemoryMapped2DArray<T,_,_>::set <agb>/memory_mapped.rs:101
	(inlined by) agb::display::bitmap3::Bitmap3::draw_point <agb>/display/bitmap3.rs:31
4:	main /home/gwilym/Projects/agb/agb/examples/panic.rs:15
```

- [ ] Changelog updated / no changelog update needed
2024-04-09 20:25:15 +01:00
..
.cargo Include the new option in all the config.tomls 2024-04-01 17:02:59 +01:00
fnt fix names 2023-07-25 20:27:03 +01:00
gfx improve snail sprites 2023-09-01 21:42:09 +01:00
maps test all the levels 2023-09-05 22:52:10 +01:00
sfx Delete the theme we're not using 2023-10-26 21:09:42 +01:00
src use clamp 2024-04-06 02:45:54 +01:00
build.rs use static rather than const 2024-03-29 14:41:08 +00:00
Cargo.lock Update lockfiles 2024-04-08 14:53:37 +00:00
Cargo.toml Release v0.19.1 2024-03-06 19:11:47 +00:00
rust-toolchain.toml fix names 2023-07-25 20:27:03 +01:00