Navigation Menu

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

Closed
vicuna opened this issue Feb 25, 2003 · 1 comment
Closed

WISH: uncaught exception trace capture... #8032

vicuna opened this issue Feb 25, 2003 · 1 comment

Comments

@vicuna
Copy link

vicuna 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
OS:
Submission from: 212.42.169.63 (212.42.169.63)

hello.

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?

cheers.

  • chris
@vicuna
Copy link
Author

vicuna commented Aug 20, 2009

Comment author: @xclerc

support for backtrace added to Printexc module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant