Pluggable Rhino Debuggers
This is a proposal to add enhanced support for Rhino debuggers, profilers, and tracers to Helma 1.7.
- Allow debuggers to be installed on a per-request basis, from JavaScript
- Allow debuggers to be implemented in JavaScript
The first item may require maintaining a second, non-optimizing RhinoCore instance.
Another idea from Elias Wimmer: Add trace data as JSON encoded HTTP header, so people can write a firefox extension to display the profiler data in the browser.
Comments
Can we put that much JSON data into a HTTP header? I like the idea, if that's possible. I was thinking we would just insert the JSON data into a script tag in html pages, as an object literal for a global var. But if the HTTP header trick is feasible then that would be way more flexible and compatible.
Yes, I think it should be possible. At least it's worth a try. I think I might add this as an experimental feature in Helma 1.6.1 already, as it's pretty easy to implement.