Skip to content

Add debug feature to decode backtrace. #35

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

Merged
merged 1 commit into from
Jul 4, 2023

Conversation

dhebbeker
Copy link
Member

For debugging runtime exceptions reading the backtrace can be helpful. In order to understand the backtrace which is written by the framework to the serial port, a backtrace decoder can be used. I added a filter to the ESP32 environment which handles this.

For this to work, do not forget to build in debug-mode. For example in PlatformIO IDE, select as project task 'Advanced' → 'Pre-Debug'. See also here. Also this only works as long as the serial output is read by PlatformIO.

To decode backtraces from the Wokwi serial monitor, one can use this python script.

See [comment][1].

Do not forget to build in debug-mode. For example in PlatformIO IDE, select as project task 'Advanced' → 'Pre-Debug'. See also [here][2].

To decode backtraces from the Wokwi serial monitor, one can use [this python script][3].

[1]: platformio/platform-espressif32#105 (comment)
[2]: https://docs.platformio.org/en/latest/projectconf/build_configurations.html#build-configurations
[3]: https://github.com/me21/EspArduinoExceptionDecoder
@dhebbeker dhebbeker requested a review from FiveTeethless May 27, 2023 20:47
@dhebbeker dhebbeker added the enhancement New feature or request label May 27, 2023
@dhebbeker dhebbeker enabled auto-merge June 30, 2023 20:39
@dhebbeker dhebbeker merged commit c1ed721 into develop Jul 4, 2023
@dhebbeker dhebbeker deleted the feature/add_monitor_filter branch July 4, 2023 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants