-->
Page 1 of 1

Better debug support - catch PANIC and provide stackstrace

PostPosted: Sun Mar 29, 2015 2:47 pm
by cal
Hi,

thank you for that hard work you put into nodemcu!
Would it be possible to
1. add a switch so that unneeded PANICs are caught on main loop level (like accessing nil)
2. Output the stacktrace of the error like http://stm32f4.web.fc2.com/elua.html

> sin(0)
stdin:1: attempt to call global 'sin' (a nil value)
stack traceback:
stdin:1: in main chunk
[C]: ?

This would allow to find errors more easily.

Thanks,
Carsten