[Yhc] ycr2js interactive debugging with firebug?

Thomas Hartman thomas.hartman at db.com
Fri Dec 7 16:50:47 EST 2007


 Is it possible to compile a javascript program such that you can fire one 
of the functions from firebug for interactive javascript debugging? 
(Firebug is a free javascript debugging plugin to firefox).

For instance I would like to be browsing 

http://darcs.haskell.org/yhc/web/jsdemos/HsWTKDemo.html

and in firebug, type some 

somefunction(3)

and have it calculate factorial of 3 in the firebug console. 

First of all, not sure if this question even makes sense given the 
continuation passing model for ycr2js. \

Secondly, if this is theoretically possible, is there a sane way to either 
flag the factorial function so that it is obvious what it is in the 
generated javascript, or to "reverse engineer" the javascript to figure 
out what function is doing the factorial?

thomas.



---

This e-mail may contain confidential and/or privileged information. If you 
are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail. Any 
unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/yhc/attachments/20071207/2b7a7433/attachment-0001.htm


More information about the Yhc mailing list