How to print stack trace and register dumps on arduino serial monitor? I want to debug my ESP32 module which is giving an exception using ESP32 exception decoder, but for that, I would need to have access to my stack trace to paste it. But currently, my arduino serial monitor does not print the stack trace. (as shown below)


But I would need stack trace to be printed, like in the below image to debug my exception. How can I print it on the serial monitor?
Got the required trace logs at the output. All I had to do was enable PSRAM in tools.