caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Ocamlbuild + Ocamldebug + Windows = ?
@ 2013-02-04  5:34 William Smith
  0 siblings, 0 replies; only message in thread
From: William Smith @ 2013-02-04  5:34 UTC (permalink / raw)
  To: OCAML

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-04  5:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-04  5:34 [Caml-list] Ocamlbuild + Ocamldebug + Windows = ? William Smith

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).