Mantis Bugtracker

Einfache Problemansicht anzeigen Zu Notizen wechseln ] erweiterte Anzeige ] Problem-Historie ] Drucken ]
ID Kategorie Auswirkung Reproduzierbar Meldungsdatum Letzte Aktualisierung
0000119 [Bisect] general kleinerer Fehler N/A 2013-06-29 02:34 2013-08-08 12:15
Reporter Marc Weber Anzeigestatus öffentlich  
Bearbeitung durch xclerc
Priorität normal Lösung offen  
Status Rückmeldung   Produktversion
Zusammenfassung 0000119: What about adding a tracing feature?
Beschreibung gasche was so kind telling me about bisect. I was able to adopt the code to make what I need: trace execution points in ocaml code.
So thanks for your nice template.

I'm creating this bug request to tell you that I think this feature could be useful to others. I don't know that much ocaml yet which is why I want to let you decide on whether to integrate it and which is the best way to do so: [^]
(I've inlined some code and used revised syntax to have one simple file)

The important code change is in decorate_this_expr
Zusätzliche Information
Tags Keine Tags zugeordnet.
Angehängte Dateien

- Problem-Beziehungen

-  Notiz
Marc Weber (Reporter)
2013-06-29 02:35

This is the code I talked about. I've stripped off everything I didn't need:

value decorate_this_expr e =
    let buf = Buffer.create 42 in
    let _loc = Ast.loc_of_expr e in
    let () = Format.bprintf buf "%a\n" Loc.dump _loc in
    let s = Buffer.contents buf in
    <:expr< let () = print_string $`str:s$ in $e$ >>;
xclerc (Administrator)
2013-08-08 12:15

This would be a very useful feature.

However, I tend to think that it would probably
belong to Bolt (logging tool).

- Problem-Historie
Änderungsdatum Benutzername Feld Änderung
2013-06-29 02:34 Marc Weber Neues Problem
2013-06-29 02:35 Marc Weber Problemnotiz hinzugefügt: 0000277
2013-08-08 12:15 xclerc Problemnotiz hinzugefügt: 0000279
2013-08-08 12:15 xclerc Bearbeitung durch => xclerc
2013-08-08 12:15 xclerc Status neu => Rückmeldung

Mantis 1.1.7[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker