coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Arnaud Spiwack <aspiwack AT lix.polytechnique.fr>
- To: Kirill Taran <kirill.t256 AT gmail.com>
- Cc: Coq Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] How to debug Coq?
- Date: Mon, 9 Dec 2013 10:04:11 +0100
I believe your problem is an issue with dynamically loaded code not showing up in the debugger. I heard of a patch of the Ocaml compiler meant to fix this, but I have no idea on its status. I'm not sure if it will work with bytecode compilation (though the Makefile suggests it will), but you may try to compile Coq with the "-natdynlink no" passed to "./configure" to avoid dynamic linking.
Another debugging tool you can use is tracing: open a coqtop.byte session. Type the "Drop." command to reveal an ocaml toplevel. Type the pragma "#use "include";;" to load the printers. Use the pragma "#trace Extract_env.separate_extraction;;" to trace "separate_extraction". Use the procedure "go ();;" to revert to the coq toplevel. When you do your extraction command you will now be able to see the arguments and returned value of each Extract_env.separate_extraction.
Another debugging tool you can use is tracing: open a coqtop.byte session. Type the "Drop." command to reveal an ocaml toplevel. Type the pragma "#use "include";;" to load the printers. Use the pragma "#trace Extract_env.separate_extraction;;" to trace "separate_extraction". Use the procedure "go ();;" to revert to the coq toplevel. When you do your extraction command you will now be able to see the arguments and returned value of each Extract_env.separate_extraction.
On 7 December 2013 17:33, Kirill Taran <kirill.t256 AT gmail.com> wrote:
Hi Hugo,
Ok, ocamldebugger-coq was a typo and -debug is configured.
Anyway, I have some supposition about the source of problems, will write about it now in other topic.Sincerely,
Kirill TaranOn Sat, Dec 7, 2013 at 1:20 PM, Hugo Herbelin <Hugo.Herbelin AT inria.fr> wrote:Hi,
I don't know how to have the debugger running with CLI. If you
> I am trying to explore behaviour and fix a patch, so I am using debugger.
> I have read dev/doc/debugging.txt and as it says I use "ocamldebugger-coq"
> wrapper, but CLI version (not with emacs). Coq is configured with "-local
> -debug".
eventually find some, you might create a page on cocorico (e.g. in
section Miscellaneous at
http://coq.inria.fr/cocorico/CoqDevelopment/Public).
At least, the correct name of the wrapper is "ocamldebug-coq" in "dev'.
Also, be sure that all .ml files have been recompiled after you added
"-debug" to the configure script.
Best regards,
Hugo Herbelin
- [Coq-Club] How to debug Coq?, Kirill Taran, 12/06/2013
- Re: [Coq-Club] How to debug Coq?, Hugo Herbelin, 12/07/2013
- Re: [Coq-Club] How to debug Coq?, Kirill Taran, 12/07/2013
- Re: [Coq-Club] How to debug Coq?, Arnaud Spiwack, 12/09/2013
- Re: [Coq-Club] How to debug Coq?, Kirill Taran, 12/07/2013
- Re: [Coq-Club] How to debug Coq?, Hugo Herbelin, 12/07/2013
Archive powered by MHonArc 2.6.18.