@user135646, with resources so sparse that even minimal debug info is a resource issue, exact (error) location detection / referencing is a challenge. With JS in browser (nodejs) world we (can) have separate map files that help to figure where things go belly up. Many things in Espruino are the way they are because of intentionally accepted resource constraints.
Last but not least for that reason I use cross build techniques / build my own cross development environment where I have plenty of resources and tool support to 'get my (code) ducks in a row', and then move the pieces into the Espruino context. If I can do that using the modules folder the better and easier is the transition: develop emulating in cross environment, upload from same resources location ont Espruino board without any transmission in between.
© Espruino, powered by microcosm.
Report a problem