Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camldebug + install_printer #7962

vicuna opened this Issue Nov 30, 2002 · 0 comments


None yet
2 participants
Copy link

vicuna commented Nov 30, 2002

Original bug ID: 1487
Reporter: administrator
Status: acknowledged
Resolution: open
Priority: normal
Severity: feature
Category: tools (ocaml{lex,yacc,dep,debug,...})

Bug description

avec ocaml 3.06 cygwin+
camldebug sous emacs(21.1.1) +
des printers speciaux pour mes types,
j'ai un probleme.

Je declare des types dans un fichier, je les utilise dans des
fonctions, certaines de, d'autres de Je cree et installe les
printers correspondants dans camldebug. Ils fonctionnent tres bien dans le
fichier ou ne sont pas declares les types, mais ne fonctionnent pas dans

Exemple: ------------------------------

type foo = { foo_content: string; }

let bar foo =
foo.foo_content^foo.foo_content ------------------------------
let gnat foo =
String.uppercase foo.F1.foo_content

let _ =
let foo = {F1.foo_content="foo"} in
print_string (gnat foo);
print_newline ();
print_string ( foo);
print_newline () -------------------------
open Format
let foo fmt foo = print_string ("<<"^foo.F1.foo_content^">>");

$ ocamlc -g -o test
$ ocamlc -c

M-x camldebug test
(ocd) load_printer "printer.cmo"
(ocd) install_printer

si je fais "print foo" dans F2.gnat, j'obtiens bien:
(ocd) print foo
foo : = <>

Par contre, dans, j'obtiens:
(ocd) print foo
foo : foo = {foo_content = "foo"}

@vicuna vicuna added the tools label Mar 14, 2019

@nojb nojb added the ocamldebug label Mar 15, 2019

@vicuna vicuna added the feature-wish label Mar 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.