If you edit boards/PUCKJS.py and rip out some of the libraries you don't want like NET and GRAPHICS, you can then build with DEBUG=1 which will help you loads :)
It should work fine - the real gotcha is that the softdevice has a watchdog timer in it, and if you break into something with GDB, the watchdog will fire. The second you then try and continue execution the CPU will restart.
As far as I know there's no real way around that - it's just one of the nightmares of trying to develop embedded stuff.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I use JLinkGDBServer too and my gdbinit is something like this:
If you edit
boards/PUCKJS.py
and rip out some of the libraries you don't want like NET and GRAPHICS, you can then build with DEBUG=1 which will help you loads :)It should work fine - the real gotcha is that the softdevice has a watchdog timer in it, and if you break into something with GDB, the watchdog will fire. The second you then try and continue execution the CPU will restart.
As far as I know there's no real way around that - it's just one of the nightmares of trying to develop embedded stuff.