evaljs
evaljs copied to clipboard
debugger for evaljs
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.
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.).