NiL.JS icon indicating copy to clipboard operation
NiL.JS copied to clipboard

DevTools Support

Open bilenkonito opened this issue 5 years ago • 7 comments

Any chance support for the devtools protocol can be added? Right now, debugging the JS environment is quite tedious.

bilenkonito avatar Mar 26 '19 08:03 bilenkonito

Would be helpful to know if there are any plans to enhance debugging with NiL. Its working great as the script engine for our system but debugging is a challenge. I haven't quite worked out how to effectively use the inbuilt debugging callback - ideal if we could hook it into a script IDE like codemirror or monaco.

deandob avatar Nov 07 '19 22:11 deandob

It's interesting feature. But at this moment I can not say when this will be implemented.

nilproject avatar Nov 11 '19 09:11 nilproject

We will need to implement this sooner than later - so our team here are starting to build a basic javascript IDE using codemirror and some supporting script. Looks like it should all work, but I need to know the line number the NiL debug callback is on. Everything else we can handle ourselves. Is there any documentation for the debug callback?

deandob avatar Nov 14 '19 03:11 deandob

No, no documentation, sorry. But I made this example

nilproject avatar Nov 15 '19 23:11 nilproject

Thanks! Very useful and has what I need. I'd be happy to share our NiL.JS breakpoint debugger if anyone is interested.

deandob avatar Nov 16 '19 10:11 deandob

@deandob hi, i would be interested in your project, is it available anywhere? Need code editor embedded in a web app and a debugger would be great to have.

lafar6502 avatar Feb 02 '20 08:02 lafar6502

@lafar6502 we have the code editor working (its easy with libraries like codemirror) but the debugger is WIP, unfortunately other features have priority at the moment. Likely mid year at this point.

deandob avatar Mar 14 '20 04:03 deandob