hackwaly / ocamlearlybird

OCaml debug adapter
MIT License
208 stars 23 forks source link

Does Earlybird support breaking in dynamically loaded code? #64

Closed jacj-simcorp closed 2 months ago

jacj-simcorp commented 2 months ago

Hi, I have issues getting my breakpoints to be hit in code loaded via Dynlink at runtime.

Before I investigate this further I would like to ask if this is even supported?

Thanks.

hackwaly commented 2 months ago

Yes, it supposed to be supported. There's related code https://github.com/hackwaly/ocamlearlybird/blob/0a7bee00ee73683493934771ab38200d13fa0e7f/src/debugger/core/wire_protocol.ml#L62.

jacj-simcorp commented 2 months ago

Thanks, then I will pursue this further.

hackwaly commented 2 months ago

Thanks, then I will pursue this further.

I didn't tested this. So it may not function at all.