Foxx debugging

33 views
Skip to first unread message

Emmanuel Salomon

unread,
Nov 28, 2017, 9:23:05 AM11/28/17
to ArangoDB
Hi,

I'm just playing with foxx and I have some questions about debugging.

Is require("console“).log(…) the only way to debug a foxx app ??? 
Do you have to reload http://127.0.0.1:8529/_db/_system/_admin/aardvark/index.html#logs each time to see new logs ?
Logs look ugly, how do you inspect stack trace ?
Could we start a development with --debug and attach a debugger ? And use breakpoints, variable inspection... and other useful tools ? I saw this opened issue https://github.com/arangodb/arangodb/issues/1538 ... from 2015 !?
Is there a way to know foxx app process PID ? I would like to try to attach fox to vs code debugger : https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_attaching-to-nodejs

So, if there is no way to debug foxx app only with console.log, another solutions is to develop in node.js.
Is there a way to wrap a foxx app for node.js ? So when code will be done, simply migrate to a foxx app ?

I'm perplex and very insteresting of your dev workflow with foxx app ?

Thanks for your advices.
Reply all
Reply to author
Forward
0 new messages