mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 14:56:07 +00:00
![nboyd%atg.com](/assets/img/avatar_default.png)
Hi Norris, Would you mind checking in the attached changes to the debugger. The attached files include the following changes: 1) Use ScriptableObject.getAllIds to obtain an object's properties (if the object extends ScriptableObject). This makes non-enumerable properties visible in the debugger for ScriptableObject's. 2) Made the coding style more consistent with the rest of Rhino. 3) Better support for displaying and stepping through eval-ed code. As Igor suggested to me once, it might be a good idea to define a new interface to similarly support debugging host objects that don't extend ScriptableObject, something like the following: public interface Debuggable extends Scriptable { public Object[] getAllIds(); } The debugger could check for this interface and if a host object chose to implement it, the debugger would be able to display its non-enumerable properties. Chris