Title: Theory / Unimportant / CS / Programming / oCaml / Manual{ / 17 Debugger
Tags: récupéré computer_to_instruction fromCommandLine mid1516974248815
On every note of this deck, unless a note says otherwise:
Page: https://caml.inria.fr/pub/docs/manual-ocaml/debugger.html
Page: https://caml.inria.fr/pub/docs/manual-ocaml/debugger.html

Question: Requirement for debugging
Answer: everything was compiled using -g
Page: https://caml.inria.fr/pub/docs/manual-ocaml/debugger.html
Chapter: 17
Section: 1
Context: ocaml

Instruction: ocamldebug foo bars
Effect: debug ocaml bytecode program foo with arguments bars
Language: ocaml
Chapter: 17
Section: 2.1

Effect: Set the maximum number of simultaneously live checkpoint to foo
Language: ocamldebug
Chapter: 17
Section: 2.1
Abbreviation: -c foo

Fla: -cd foo
Effect: Run the debugger program from the working directory foo, instead of the current directory
Prefix: ocamldebug
Chapter: 17
Section: 2.1

Fla: -emacs foo
Effect: ll the debugger it is executed under Emacs
Prefix: ocamldebug
Chapter: 17
Section: 2.1

Effect: Add foo to the list of directories searched for source files and compiled files
Language: ocamldebug
Chapter: 17
Section: 2.1
Abbreviation: -I foo

Effect: Use socket foo for communicating with the debugged program.
Language: ocamldebug
Chapter: 17
Section: 2.1
Abbreviation: -s foo

Fla: -version
Effect: Print version string and exit.
Prefix: ocamldebug
Chapter: 17
Section: 2.1

Fla: -vnum
Effect: Print short version number and exit.
Prefix: ocamldebug
Chapter: 17
Section: 2.1

Fla: -help
Effect: Display a short usage summary and exit.
Prefix: ocamldebug
Chapter: 17
Section: 2.1

Variable: ./.ocamldebug or ~/.ocamldebug
Meaning: File read by the debugger before giving the control to the user
Page: https://caml.inria.fr/pub/docs/manual-ocaml/debugger.html
Language: ocamldebug
Section: 2.1
Chapter: 17
Kind: file

Instruction: quit
Effect: Quit the debugger
Language: ocamldebug
Chapter: 17
Section: 2.1
Abbreviation: C-d

Effect: terminate the action of any debugger command that is in progress and return to the debugger command level.
Language: ocamldebug
Chapter: 17
Section: 2.1
Abbreviation: C-c

Instruction: help
Effect: Print the list of commands.
Language: ocamldebug
Chapter: 17
Section: 3.1

Instruction: help foo
Effect: Give help about the command foo
Language: ocamldebug
Chapter: 17
Section: 3.1

Instruction: help set foo
Effect: Give help about the variable foo.
Language: ocamldebug
Chapter: 17
Section: 3.1

Instruction: help show foo
Effect: Give help about the variable foo.
Language: ocamldebug
Chapter: 17
Section: 3.1

Instruction: help set
Effect: The list of all debugger variables
Language: ocamldebug
Chapter: 17
Section: 3.1

Instruction: help info foo
Effect: Give help about foo
Language: ocamldebug
Chapter: 17
Section: 3.1

Instruction: help info
Effect: Use help info to get a list of known topics.
Language: ocamldebug
Chapter: 17
Section: 3.1

Instruction: set foo var
Effect: Set the debugger variable foo to bar
Language: ocamldebug
Chapter: 17
Section: 3.2

Instruction: show bar
Effect: Print the value of the variable bar
Language: ocamldebug
Chapter: 17
Section: 3.2

Instruction: info foo
Effect: Give information about the subject foo
Language: ocamldebug
Chapter: 17
Section: 3.2
Returns: info breakpoints