From: William Smith <bills@emu-bark.com>
To: OCAML <caml-list@inria.fr>
Subject: [Caml-list] Ocamlbuild + Ocamldebug + Windows = ?
Date: Mon, 04 Feb 2013 00:34:07 -0500 [thread overview]
Message-ID: <510F484F.3020702@emu-bark.com> (raw)
I am trying to use ocamldebug with my program being compiled with
ocamlbuild on Windows.
I think I have the ocamlbuild command figured out:
ocamlbuild -no-links -cflags -g -lflags -g TestRegex.byte
I use either
ocamldebug _build\TestRegex.byte or
copy _build\TestRegex.byte TestRegex.exe
ocamldebug TestRegex.exe
and get the same results for both.
When I use my MSVC tool chain copy of ocamldebug/ocamlbuild and ocamlc,
I get "Loading program... cannot connect to debugger at 127.0.0.1" when
I enter the first "step" command in ocamldebug. (This is when I am
running inside of a Windows Cmd prompt.)
When I build with the cygwin tool chain ocamldebug appears to be
working. (Also, I've been checking with the "which" command and haven't
found any evidence of me getting the toolchains confounded with each other).
[As I understand it, I'll need to eventually debug the msvc toolchain
version because I'll have a project that is a mixture of C++ and OCaml.]
Is ocamldebug even the right tool for that mixed scenario? I have
been debugging with tracing statements successfully but I wanted to
build up my skills using a debugger.
gdb currently gives "no debugging symbols found" when I launch it on
either of the TestRegex.exe's but I don't know if that's even relevant
in the long run for my plans.
Bill
reply other threads:[~2013-02-04 5:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=510F484F.3020702@emu-bark.com \
--to=bills@emu-bark.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).