-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Description
Basic Infos
- This issue complies with the issue POLICY doc.
- I have read the documentation at readthedocs and the issue is not addressed there.
- I have tested that the issue is present in current master branch (aka latest git).
- I have searched the issue tracker for a similar issue.
- [N/A] If there is a stack dump, I have decoded it.
- I have filled out all fields below.
To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Platform
- Hardware: ESP8266
- Core Version: 3.1.2 (latest)
- Development Env: VS Code + Microsoft Arduino Extension
- Operating System: Windows
Settings in IDE
- Module: Generic ESP8266 Module
Problem Description
Hi there, I'm trying to change the behavior of the postmortem_report()
call not to print anything to the Serial upon a crash. The serial port in question is connected to a peripherical and is not used for debugging purposes.
So far, my efforts in #9193 have been unsuccessful. I am unable to override the postmortem_report()
call via my code.
This got me thinking, can you possibly please introduce a new flag that would prevent the default function from being defined, or avoid printing to the serial? Currently the custom_crash_callback()
callback is called after the postmortem_report()
has finished printing to the Serial port.
The addition of this would be awesome.
Thank you for the project!
Metadata
Metadata
Assignees
Labels
No labels
Activity
DRSDavidSoft commentedon Aug 29, 2024
It would be awesome if we could somehow override
postmortem_report()
completely.DRSDavidSoft commentedon Aug 17, 2025
@mcspr, I would like to discuss implementing a way for the user to override
postmortem_report()
, which would make certain parts of #9196 unnecessary.Could you please share your opinion on this?
Postmortem - export user reset reason & extra callbacks
mcspr commentedon Aug 27, 2025
See #9271
If you had a different idea for implementation, please share :) No need to ask me first