From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 4279ABBAF for ; Sun, 24 Jan 2010 06:00:27 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoUCAGJiW0vRVd7Limdsb2JhbACUD4dJPwEBAQoJDAcRBatGhC+IIgEBAwWENgSLWA X-IronPort-AV: E=Sophos;i="4.49,333,1262559600"; d="scan'208";a="54579444" Received: from mail-pz0-f203.google.com ([209.85.222.203]) by mail4-smtp-sop.national.inria.fr with ESMTP; 24 Jan 2010 06:00:26 +0100 Received: by pzk41 with SMTP id 41so541203pzk.0 for ; Sat, 23 Jan 2010 21:00:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type; bh=5mNX0cfcHy7Hvs3kyfqeKTVoyYyzxbf2M8pw+JWJFT0=; b=HXAseglDtuZySuQqp1T09vRJ0nWV/3QW4Fx3NRB/3W8GayYVTsu1sgdYiYQW0439ur PSSt7gcFtyaDSY3V3TlDCzXyV5uiUX71hxVDpLaTxZ6t+eQ51H9gPdLW/lBedSg85qJ7 CiOnwSkkMbn0oGBHABvuT6KJxBjRz3TI/TE8E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=IlYEb928qLJAll9IVMQq/gS7O9FIhaMN0GxJXFh4qdwPuW79VFd3JsxqRATdhSkNxi 9hrMAjZWI9e33/IdGKppd7r9wG5MzFiSBsWwaz2wwXZp1usjA2xeoq+VyEBqE1Z0Eqym FYEKCdri1vtitLD1vQkLjooc9zBtMBV5Y6+ck= MIME-Version: 1.0 Sender: jake.donham@gmail.com Received: by 10.142.59.9 with SMTP id h9mr1799684wfa.91.1264309224045; Sat, 23 Jan 2010 21:00:24 -0800 (PST) In-Reply-To: <4B5B31E3.5060605@citycable.ch> References: <4B3A7C34.3060606@yziquel.homelinux.org> <4B4F3402.4010307@citycable.ch> <4B5B2F9F.3050302@citycable.ch> <4B5B31E3.5060605@citycable.ch> From: Jake Donham Date: Sat, 23 Jan 2010 21:00:04 -0800 X-Google-Sender-Auth: 931f4625ae23a8fd Message-ID: Subject: Re: [Caml-list] Toplevel debugging. To: guillaume.yziquel@citycable.ch Cc: OCaml List Content-Type: text/plain; charset=ISO-8859-1 X-Spam: no; 0.00; toplevel:01 guillaume:01 guillaume:01 debugger:01 toplevel:01 usr:01 ocaml:01 bytecode:01 ocaml:01 backtrace:01 23,:98 blog:98 wrote:01 exception:01 caml-list:01 On Sat, Jan 23, 2010 at 9:29 AM, Guillaume Yziquel wrote: > I am wondering how to use a debugger with libraries in the toplevel. As > /usr/bin/ocaml is bytecode and that the exception is raised from OCaml and > not from C code, I do not have a backtrace: You may find this patch helpful; it adds backtraces to the toplevel: http://skydeck.com/blog/programming/more-stack-traces-in-ocaml I have been meaning to update it for 3.11.x, but you might get some insight into your problem by running on 3.10.2.