* [Caml-list] ocamldebug and -pack
@ 2014-11-16 13:43 Mads Jensen
0 siblings, 0 replies; only message in thread
From: Mads Jensen @ 2014-11-16 13:43 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/plain, Size: 824 bytes --]
Hi,
I tried out ocamldebug on the hello world example[1] of the ocaml-cohttp
library. I configured the debugger by writing the results of `ocamlfind
query -recursive core async cohttp cohttp.async` into a file and prefixed
each line with `directory`. For more information see this blog post about
my setup[2].
As I stepped through the code I would see errors like this:
(ocd) step
Time: 1084742 - pc: 4416712 - module Cohttp.Request
No source file for Cohttp.Request.
I chatted with whitequark on IRC and he suggests that it might be because
ocamldebug doesn't support compilation units compiled with the -pack flag.
Is that the case? If so, is this a bug?
Cheers,
Mads
[1]
https://github.com/mirage/ocaml-cohttp/blob/master/examples/async/hello_world.ml
[2] http://mads379.github.io/ocaml/2014/11/15/ocamldebug.html
[-- Attachment #2: Type: text/html, Size: 2133 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-11-16 13:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-16 13:43 [Caml-list] ocamldebug and -pack Mads Jensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox