Replies: 1 comment 1 reply
-
Have you looked at the debugger implementation that is contained within the repo? See https://github.com/mozilla/rhino/tree/master/toolsrc/org/mozilla/javascript/tools/debugger and more specifically the Dim class |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I think it is appropriate for me to start this thread like so: Merry Christmas!
I just wanted to ask a question as I am stuck with something while implementing my very own
DebugFrame
using this framework.My question: I was wondering if I could get the source string of a function inside my class that implements
DebugFrame
?What I have tried so far: I have tried to get the source string of the executing function inside of the
onEnter(Context cx, Scriptable activation, Scriptable thisObj, Object[] args)
function by using the various parameters that are passed down (such asactivation
), but not luck...Things worth mentioning:
DebugFrame
I am keeping a reference to theDebuggableScript
related to the function... maybe I could use this to get the source string of the function?I can imagine what I am asking might be super easy to achieve, however I am quite new to the framework itself, therefore any help is greatly appreciated
Thank you in advance for your help on the matter.
Beta Was this translation helpful? Give feedback.
All reactions