Connecting Tech Pros Worldwide Help | Site Map

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

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 10th, 2008, 09:35 PM
timothytoe
Guest
 
Posts: n/a
Default 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.

  #2  
Old March 11th, 2008, 05:55 AM
Fritz Schenk
Guest
 
Posts: n/a
Default 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()
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.