We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Original bug ID: 4265 Reporter: sds Assigned to: @xavierleroy Status: closed (set by @xavierleroy on 2010-04-29T12:25:57Z) Resolution: fixed Priority: normal Severity: feature Version: 3.10+dev Category: ~DO NOT USE (was: OCaml general) Monitored by: @dbuenzli ertai berke
I want to be able to output stack trace to a channel:
try Result (foo ()) with e -> fprintf logstream "error: %s" (error_to_string e); stack_trace logstream; Error e
so that I can log both errors and their stack traces in a file for later examination, but still continue running.
The text was updated successfully, but these errors were encountered:
Comment author: @xavierleroy
Tentative implementation in CVS trunk, scheduled for inclusion in 3.11. See the functions print_backtrace and get_backtrace in stdlib module Printexc.
Sorry, something went wrong.
xavierleroy
No branches or pull requests
Original bug ID: 4265
Reporter: sds
Assigned to: @xavierleroy
Status: closed (set by @xavierleroy on 2010-04-29T12:25:57Z)
Resolution: fixed
Priority: normal
Severity: feature
Version: 3.10+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @dbuenzli ertai berke
Bug description
I want to be able to output stack trace to a channel:
try Result (foo ())
with e ->
fprintf logstream "error: %s" (error_to_string e);
stack_trace logstream;
Error e
so that I can log both errors and their stack traces in a file for later examination, but still continue running.
The text was updated successfully, but these errors were encountered: