You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible to attach Olly to an existing OCaml program that is already running.
When enabled (either via setting the OCAML_RUNTIME_EVENTS_START environment
variable or calling Runtime_events.start) a file with the pid of the process
and extension .events will be created. By default this is in the
current directory but can be over-ridden by the OCAML_RUNTIME_EVENTS_DIR
environment variable. Each domain maintains its own ring buffer in a section
of the larger file into which it emits events.
"rather than" or "in addition to"? I would like it to be the latter so that the current interface where you can do olly <command> <executable> continues to work.
tmcgilchrist
changed the title
Attach olly to external process rather than forking
Attach olly to external process
Mar 1, 2024
It should be possible to attach Olly to an existing OCaml program that is already running.
From https://v2.ocaml.org/api/Runtime_events.html
Conceptually it could look like:
The text was updated successfully, but these errors were encountered: