hackwaly / ocamlearlybird

OCaml debug adapter
MIT License
208 stars 23 forks source link

Breakpoints are dislocated. #59

Open Mng12345 opened 6 months ago

Mng12345 commented 6 months ago

image As the screen-shot, the breakpoint i add in the file of _build/default is dislocated, and some are unrerified.

Mng12345 commented 6 months ago

May be the comment causes dislocated? image

sim642 commented 6 months ago

I've seen it in some copied/preprocessed files that try to preserve the original location mapping through pragmas like # 1 "original_module.ml, for example at the top of the module. I think dune's copy_files# and cppo insert those.