Connecting Tech Pros Worldwide Help | Site Map

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

  #1  
Old March 10th, 2008, 10:35 PM
timothytoe
Guest
 
Posts: n/a
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.
  #2  
Old March 11th, 2008, 06:55 AM
Fritz Schenk
Guest
 
Posts: n/a

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 Threads
Thread Thread Starter Forum Replies Last Post
Object persistence in C jacob navia answers 11 November 15th, 2005 12:16 AM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 0 November 13th, 2005 11:37 PM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 0 November 13th, 2005 09:56 PM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 0 November 13th, 2005 03:15 AM