-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fbd6e1
commit 938fb26
Showing
4 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
load_printer main.cmo | ||
install_printer Main.Submodule.pp | ||
goto 0 | ||
break @ Main 26 | ||
run | ||
print value | ||
quit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
(* TEST | ||
flags += " -g " | ||
ocamldebug_script = "${test_source_directory}/input_script" | ||
* debugger | ||
** shared-libraries | ||
*** setup-ocamlc.byte-build-env | ||
**** ocamlc.byte | ||
***** check-ocamlc.byte-output | ||
****** ocamldebug | ||
******* check-program-output | ||
*) | ||
|
||
module Submodule = struct | ||
|
||
type t = unit | ||
|
||
let value = () | ||
|
||
let pp (fmt : Format.formatter) (_ : t) : unit = | ||
Format.fprintf fmt "DEBUG: Aux.Submodule.pp" | ||
|
||
end | ||
|
||
let debug () = | ||
let value = Submodule.value in | ||
ignore value | ||
|
||
;; | ||
|
||
debug (); |
6 changes: 6 additions & 0 deletions
6
testsuite/tests/tool-debugger/module_named_main/main.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
File main.cmo loaded | ||
Loading program... done. | ||
Beginning of program. | ||
Breakpoint: 1 | ||
26 <|b|>ignore value | ||
value: unit = DEBUG: Aux.Submodule.pp |