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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • timothytoe

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

    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

    #2
    Re: Seeing a function's code in a debugger (dynamic functions)

    timothytoe wrote:
    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()

    Comment

    Working...