esp8266 / Arduino

ESP8266 core for Arduino
GNU Lesser General Public License v2.1
16.07k stars 13.33k forks source link

Feature Request: Don't print stack trace to Serial on crash #9194

Open DRSDavidSoft opened 2 months ago

DRSDavidSoft commented 2 months ago

Basic Infos

Platform

Settings in IDE

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!

DRSDavidSoft commented 2 months ago

It would be awesome if we could somehow override postmortem_report() completely.