evaljs icon indicating copy to clipboard operation
evaljs copied to clipboard

debugger for evaljs

Open warjiang opened this issue 6 years ago • 1 comments

Wonderful job. The job is very useful when i want to execute js while eval is disabled. Any ideas for implementing a debugger for evaljs. I think it's will be similar to the sourcemap feature of modern browser, which will make a map between the source code with the uglified code, and provide a great convenience for debugger js.

warjiang avatar Dec 08 '18 13:12 warjiang

While you could no doubt use the information in the AST to build more informative error messages which include the source code lines, that would likely incur a performance cost. Also, messing with stacktraces will make the project much more complex. At least it always does, in my experience.

So it's not on my roadmap. But if anyone wants to try it, feel free to @mention me if there's anything I can do to help (questions, merging PRs, etc.).

marten-de-vries avatar Jan 07 '19 12:01 marten-de-vries