Version française
Home     About     Download     Resources     Contact us    
Browse thread
Is it possible to debug (multithreaded) lablgtk2 apps?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Matthieu Dubuget <matthieu.dubuget@g...>
Subject: Re: [Caml-list] Is it possible to debug (multithreaded) lablgtk2 apps?
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