LexiFi / gen_js_api

Easy OCaml bindings for Javascript libraries
MIT License
177 stars 31 forks source link

Add visual feedback of executed JavaScript code #151

Open Thibaut-Gudin opened 3 years ago

Thibaut-Gudin commented 3 years ago

When a gen_js_api function is called there is currently no way to know which is the Javascript code executed when the function is used. This renders the definition of the correct function signatures pretty difficult, especially when working on function that don't give immediate feed-back. Would it be possible to print the JavaScript code executed instead of (or on top of) executing it?

mlasson commented 3 years ago

Hello !

I guess we could instrument the generated code; but there is currently no plan to add this feature unless their is a strong demand for it.