From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.9 required=5.0 tests=AWL,DNS_FROM_RFC_POST, SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id EE129BC37 for ; Tue, 9 Jun 2009 13:14:19 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArEEAJvgLUrRVd6xdWdsb2JhbACXbj8BDAoLBxKkNIEVj1IBAwIEhAYF X-IronPort-AV: E=Sophos;i="4.41,331,1241388000"; d="scan'208";a="27660875" Received: from mail-pz0-f177.google.com ([209.85.222.177]) by mail2-smtp-roc.national.inria.fr with ESMTP; 09 Jun 2009 13:14:19 +0200 Received: by pzk7 with SMTP id 7so1366804pzk.1 for ; Tue, 09 Jun 2009 04:14:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=t0zzkSlfAWO2a0PRlTAFeXu8RxhH9XvVmTxiuh372Mc=; b=ZD4MzMNNs7G+O757GiCHPZSLkc6FA+3LObHnntCMO2eK48GTL2m2hb9eYbiA0bx1p1 J9x2Z8ClkG+1rLUGdtfHAMFOZZsswzN4vVgacS0PPkeQmhuAoD7oJs2DH/BsVTLo/2ta z0DX5NPt5OT3cQMOdoN4nX1tCaau25XrWtSEI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=XwAKwv5YvdZ2bGxsFkuILe/3T3xmBCc2tKjjeJq8WRX0XO62tJC4NPEvmOX5wM9LNr 3L8cKN2Dy9d5bt/hwLvlDEfyhmpMThUR+IBe8dRqYHX6WNnRDdNpP5vOWfH3+sZd28r9 UW1tbKIvgxxjOxvwsofLPgRxk58/UZeVbWBEg= MIME-Version: 1.0 Received: by 10.142.237.19 with SMTP id k19mr3477wfh.31.1244546057939; Tue, 09 Jun 2009 04:14:17 -0700 (PDT) In-Reply-To: <4A2E0C91.3010209@gmail.com> References: <4A2E0C91.3010209@gmail.com> Date: Tue, 9 Jun 2009 15:14:17 +0400 Message-ID: <90823c940906090414m714ab8b5o128c329133516618@mail.gmail.com> Subject: Re: [Caml-list] Is it possible to debug (multithreaded) lablgtk2 apps? From: Dmitry Bely To: matthieu.dubuget@gmail.com Cc: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; lablgtk:01 matthieu:01 dubuget:01 matthieu:01 dubuget:01 camldebug:01 mingw:01 lablgtk:01 ocaml:01 camldebug:01 emacs:01 breakpoints:01 emacs:01 incorrectly:01 printf:01 On Tue, Jun 9, 2009 at 11:17 AM, Matthieu Dubuget wrote: > Hello, > > I'm trying to use camldebug. But I'm afraid I'm accumulating difficulties: > > - under mingw > - lablgtk2 + multithreaded app Ocaml Win32/MSVC+camldebug+OcaIDE - works for me (single-threaded lablgtk2 application, but I don't think multiple threads are the real problem). > With a very simple app, the programs run and works once started from > camldebug (from emacs), but my breakpoints are ignored. Can you try to set a breakpoint directly from camldebug? I am afraid emacs could introduce some line ending inconsistency and so incorrectly calculate the place. > With the more complex app I wanted to work on, the IHM is never shown. > > I think that I will revert to the good old Printf method. It's up to you but first I would try to find out why it does not work. - Dmitry Bely