Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Packed modules: miscommunication emacs/ocamldebug #7540
Original bug ID: 7540
[ Original summary was: Packed modules: setting "break" broken in ocamldebug + miscommunication emacs/ocamldebug. First issue is solved. ]
There seems to be a bug with ocamldebug on packed modules. In the reproducible script below, the first "break" works but the second gives "Can't find any event there". Note however that executing step by step works well.
This seems related to the call to "Hashtbl.add all_events_by_module md sorted_evl" in Symbols.read_symbols which binds all modules of a pack to the name of the first module.
There is also a communication bug when calling ocamldebug from emacs (at least using tuareg). Commands of the form
Steps to reproduce
echo "let f x = x" > a.ml
Since I already tried a fix for testing, I shall try to submit it to the PR system in case it can ever save time.
Comment author: herbelin
I had another issue with tuareg which does not support sending breakpoints to ocamldebug when modules are in a pack. I reported this at ocaml/tuareg#136 but I have no clue how to fix that, since either tuareg should get a way to know that some files are in a pack, or ocamldebug being able to recover the fully qualified module name from the base name, but this would somehow defeat the purpose of packing.
Actually, the issue seems to exist also for the version of camldebug.el shipped with ocaml (
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.