caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Matthieu Dubuget <matthieu.dubuget@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Is it possible to debug (multithreaded) lablgtk2 apps?
Date: Tue, 09 Jun 2009 15:37:46 +0200	[thread overview]
Message-ID: <4A2E65AA.2050102@gmail.com> (raw)
In-Reply-To: <90823c940906090414m714ab8b5o128c329133516618@mail.gmail.com>

Dmitry Bely a écrit :
> On Tue, Jun 9, 2009 at 11:17 AM, Matthieu
> Dubuget<matthieu.dubuget@gmail.com> 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).

After some more tests, I managed to have some break points working (only
with the simple test program, though).

But once GtkThread.main () is run, I lose control on OCD.

> 
>> 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.

No more time, I'm afraid ;-)

Thanks for your help

Matt


      reply	other threads:[~2009-06-09 13:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-09  7:17 Matthieu Dubuget
2009-06-09 11:14 ` [Caml-list] " Dmitry Bely
2009-06-09 13:37   ` Matthieu Dubuget [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A2E65AA.2050102@gmail.com \
    --to=matthieu.dubuget@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).