Loading ...
Sorry, an error occurred while loading the content.

155Re: "ocaml_beginners"::[] ocamldebug?

Expand Messages
  • Matthew O'Connor
    Mar 3, 2002
    • 0 Attachment
      The program is beginning to get large so I won't post it. Although
      I haven't tried with a cut down version yet. I think the first thing I
      need to do is install 3.04.

      Cheers,

      Thanks for the help.

      On Fri, 1 Mar 2002 18:00, you wrote:
      > Another question : how does the program look?
      > Maybe I could try it here for you.
      >
      > Remi VANICAT writes:
      > > "Matthew O'Connor" <matthew.oconnor@...> writes:
      > > > Remi,
      > > >
      > > > I'm am using both ocamlc and the -g option on all compiles and links.
      > > > Also I'm using 3.02 I don't know if that means anything.
      > >
      > > don't know neither, but may be you should try 3.04...
      > >
      > > > Do I need some sort of "main" function for the debugger to begin at?
      > >
      > > nop, theoretically with ocamldebug you do either
      > > moi@debian:~/lang/ocaml/test$ ocamldebug a.out
      > > Objective Caml Debugger version 3.04
      > >
      > > (ocd) run
      > > tititoto
      > > bearTime : 35
      > > Program exit.
      > > (ocd) backstep
      > >
      > > to go backward
      > > (but to quote Xavier Leroy :
      > > I'm afraid reverse execution will never work for programs that do I/O,
      > > especially socket I/O, and especially socket I/O done in an external C
      > > library... )
      > >
      > > or
      > > moi@debian:~/lang/ocaml/test$ ocamldebug a.out
      > > Objective Caml Debugger version 3.04
      > >
      > > (ocd) break @ Test 8
      > > Breakpoint 3 at 5080 : file Test, line 8 column 3
      > > (ocd) run
      > > Time : 12 - pc : 5080 - module Test
      > > Breakpoint : 3
      > > 8 <|b|>print_string "titi";
      > > (ocd) step
      > > Time : 13 - pc : 1528 - module Pervasives
      > > 332 let print_string s = <|b|>output_string stdout s
      > > (ocd)
      > >
      > > ...
      > >
      > > By the way, you should use the M-x ocamldebug function of Emacs, it
      > > far, very far more easy.
      > >
      > >
      > > If this doesn't work you should :
      > > try with ocaml 3.04
      > > submit a bug report if it doesn't work better.
      > > --
      > > RĂ©mi Vanicat
      > > vanicat@labri.u-bordeaux.fr
      > > http://dept-info.labri.u-bordeaux.fr/~vanicat
      > >
      > >
      > > To unsubscribe from this group, send an email to:
      > > ocaml_beginners-unsubscribe@yahoogroups.com
      > >
      > > The archives of the very official ocaml list (the seniors' one) can be
      > > found at http://caml.inria.fr
      > >
      > > Attachments are banned and you're asked to be polite, avoid flames etc.
      > > etc.
      > >
      > > Your use of Yahoo! Groups is subject to
      > > http://docs.yahoo.com/info/terms/
      >
      >
      > To unsubscribe from this group, send an email to:
      > ocaml_beginners-unsubscribe@yahoogroups.com
      >
      > The archives of the very official ocaml list (the seniors' one) can be
      > found at http://caml.inria.fr
      >
      > Attachments are banned and you're asked to be polite, avoid flames etc.
      > etc.
      >
      > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    • Show all 10 messages in this topic