Connecting Tech Pros Worldwide Help | Site Map

Seeing a function's code in a debugger (dynamic functions)

timothytoe
Guest
 
Posts: n/a
#1: Mar 10 '08
Is there a way in Firebug to see what code is in a function? All I can
coax out of Firefox is "function()". Same with using Firebug's
console.out.

IE's debugger just tells me it's an Object {...}.

Does anyone know of a way to see the function's code? Getting it into
a string and printing that out would be just dandy.

I'm not looking for a way to see the source (I know how to do that).
I'm changing a function during execution and trying to find a good way
to debug the result. I have my code working now, but it would have
been a lot easier with a way to see what code the function currently
has in it ready to execute.
Fritz Schenk
Guest
 
Posts: n/a
#2: Mar 11 '08

re: Seeing a function's code in a debugger (dynamic functions)


timothytoe wrote:
Quote:
Is there a way in Firebug to see what code is in a function? All I can
coax out of Firefox is "function()". Same with using Firebug's
console.out.
>
IE's debugger just tells me it's an Object {...}.
>
Does anyone know of a way to see the function's code? Getting it into
a string and printing that out would be just dandy.
>
I'm not looking for a way to see the source (I know how to do that).
I'm changing a function during execution and trying to find a good way
to debug the result. I have my code working now, but it would have
been a lot easier with a way to see what code the function currently
has in it ready to execute.
you may try the toString()
Closed Thread


Similar JavaScript / Ajax / DHTML bytes