Skip to content

A way to inspect "local variables" #291

Closed
@jordwalke

Description

@jordwalke

It's really difficult (even when not inlined/minified) to inspect variables when debugging with source maps. It's almost impossible to tell which variables that are in scope (in JS) correspond to the variables in scope in the original code.

Some way to make this possible (even if not totally elegant) would be a huge help. Perhaps this is a huge undertaking, but I am curious about at least starting a discussion about how difficult it would be.

If this is incredibly difficult, I'm curious if a better/more complete approach to debugging would be to get the standard ocamldebug protocol to work with a system like OBrowser - even if only to debug the programs (while still using js_of_ocaml to run production code).

On the other hand, if reliable step-through and inspection of variables is possible with js_of_ocaml I think it would be much better to stick with the current approach. What's currently implemented is actually not half bad - aside from a couple improvements. I think developers could actually become fairly productive debugging with source maps! :D

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions