views:

15

answers:

1

When we use the console.log(someObject.someFunction) firebug shows function() string only.

Is there a way i can see/log the code for the function in the console window ? Something similar to what we can achieve using alert(someObject.someFunction) shows the function body.

+1  A: 
myFunction.toString()
Matchu
Wow ...... :D i forgot to try toString(). Thanks
Anil Namde
Remember to click the check mark next to an answer if it solved your problem :) Thanks!
Matchu
Yes sure :) there is validation for 6 min for accepting answer which prevented me from doing that yesterday. Thanks dear
Anil Namde