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

WISH: uncaught exception trace capture... #8032

vicuna opened this Issue Feb 25, 2003 · 1 comment


None yet
1 participant
Copy link

commented Feb 25, 2003

Original bug ID: 1561
Reporter: administrator
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2011-05-29T10:20:32Z)
Resolution: fixed
Priority: normal
Severity: feature
Fixed in version: 3.11.0
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: chris quinn
Version: 3.06
Submission from: (


it would be very nice if in building a debug application version
an access to the trace (as per ocamlrun -b) for logging purposes and perhaps
allowing continued execution/reset.

stderr and a shell wrapper is awkward and complicates matters, and should
be reserved for really catastrophic events like segfaults.
keeping such error handling within the app is neat and portable.

how about a

val trace: exn -> string

or if above not appropriate,

val capture_trace: (string -> unit) -> ('a -> 'b) -> 'a -> 'b

addition to Printexc?


  • chris

This comment has been minimized.

Copy link
Collaborator Author

commented Aug 20, 2009

Comment author: @xclerc

support for backtrace added to Printexc module.

@vicuna vicuna closed this May 29, 2011

@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.