From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id CAF6E7F0F9 for ; Wed, 25 Nov 2015 21:23:26 +0100 (CET) IronPort-PHdr: 9a23:GrOhEhRSB8qjhaVOztilgABRPdpsv+yvbD5Q0YIujvd0So/mwa64YBeN2/xhgRfzUJnB7Loc0qyN4/2mBjxLuM3d+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5K6zPF5LIiIzvjqbpq8CVPFUD3WHhKZpJbzyI7izp/vEMhoVjLqtjgjDomVBvP9ps+GVzOFiIlAz97MrjtLRq8iBXpu5zv5UYCfayLOwESulTBTEidmQ0/9HDtB/ZTALJ6GFPfH8Rl09kChbE4Cbfc7HNiIqy4uZ41S+GJ8DeSbEyRCTn4b1iThTlziAdOGhqoynslsVsgfcD81qarBtlztuMbQ== Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=dmentre@linux-france.org; spf=None smtp.mailfrom=dmentre@linux-france.org; spf=None smtp.helo=postmaster@tempura.bentobako.org Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of dmentre@linux-france.org) identity=pra; client-ip=94.23.39.64; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dmentre@linux-france.org"; x-sender="dmentre@linux-france.org"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of dmentre@linux-france.org) identity=mailfrom; client-ip=94.23.39.64; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dmentre@linux-france.org"; x-sender="dmentre@linux-france.org"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@tempura.bentobako.org) identity=helo; client-ip=94.23.39.64; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dmentre@linux-france.org"; x-sender="postmaster@tempura.bentobako.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A7BQBPF1ZW/0AnF15egzvBdoM9glICgUQ8EAEBAQEBAQEBgQmCLYIIAQEDATIBSwsLISUPAg44EwgBAYgiDK5BgQWPBy2LUoUnhBIFllcPjwKHRI9Mg3I4K4QFhh0BAQE X-IPAS-Result: A0A7BQBPF1ZW/0AnF15egzvBdoM9glICgUQ8EAEBAQEBAQEBgQmCLYIIAQEDATIBSwsLISUPAg44EwgBAYgiDK5BgQWPBy2LUoUnhBIFllcPjwKHRI9Mg3I4K4QFhh0BAQE X-IronPort-AV: E=Sophos;i="5.20,344,1444687200"; d="scan'208";a="189119309" Received: from tempura.bentobako.org ([94.23.39.64]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-GCM-SHA384; 25 Nov 2015 21:23:26 +0100 Received: from [192.168.0.18] (64.166.8.109.rev.sfr.net [109.8.166.64]) by tempura.bentobako.org (Postfix) with ESMTPSA id D26852F55 for ; Wed, 25 Nov 2015 21:23:25 +0100 (CET) To: caml-list@inria.fr References: <5655AE66.6000307@coherentgraphics.co.uk> From: =?UTF-8?Q?David_MENTR=c3=89?= X-Enigmail-Draft-Status: N1110 Message-ID: <565618BD.50105@linux-france.org> Date: Wed, 25 Nov 2015 21:23:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <5655AE66.6000307@coherentgraphics.co.uk> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [Caml-list] Do you use a debugger with OCaml? If not, why not? Hello, Le 2015-11-25 13:49, John Whitington a écrit : > What do you use for debugging small and large OCaml programs? Mostly Printf and exception backtraces. > If not a debugger, why not? What problems prevent it? Mainly for following reasons: 1. No support for native code; 2. UI was unclear to me: difficult to see where I was and where was set a breakpoint; 3. Going in the past is a nice idea but does not interact well with I/O code like networking; 4. Inability to print immediately your own defined types; 5. Lack of use vicious circle: when you really need a debugger, your are not willing to learn a new tool. When your are willing to learn a new tool, you don't really want to learn a debugger. ;-) It's a long time that I haven't used the debugger so those reasons might be not accurate or outdated. :-) > How does your debugging > process differ when writing OCaml compared with other languages you use? I'm using a lot printfs and backtraces in other languages. Probably to much. :-) I systematically use the debugger for C language for segfault related issues, you can hardly use another tool. Best regards, david