Open fatcerberus opened 7 years ago
While I don't consider this a showstopper, I'd like to get this working for miniSphere 5.0 if at all possible.
I think ChakraCore allows inspecting locals in parent scopes through its debugging API. So this would be possible to implement now; I'm not yet sure how much work it would entail. I'll leave the milestone as 5.0.0 until I've assessed that.
Implementing this is not trivial, and involves implementing an entirely new SSj/Ki command along with the necessary plumbing in JSAL. Reassigning to 5.1.0.
In minisphere 4.3.x and earlier, the SSJ
v
command (and by extension, the variable list in SSJ Blue) displays only direct local variables of a function. It would be nice if it would also list variables pulled in from parent scopes. At present debugging closures is somewhat painful because the closed-over variables aren't listed and must be examined individually usinge
orx
.This will almost certainly require a direct modification of Duktape debugger code, so also look into opening a pull request against @svaarala's repository once this is implemented.