caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Is it possible to debug (multithreaded) lablgtk2 apps?
@ 2009-06-09  7:17 Matthieu Dubuget
  2009-06-09 11:14 ` [Caml-list] " Dmitry Bely
  0 siblings, 1 reply; 3+ messages in thread
From: Matthieu Dubuget @ 2009-06-09  7:17 UTC (permalink / raw)
  To: caml-list

Hello,

I'm trying to use camldebug. But I'm afraid I'm accumulating difficulties:

- under mingw
- lablgtk2 + multithreaded app

With a very simple app, the programs run and works once started from
camldebug (from emacs), but my breakpoints are ignored.

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.

Salutations


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Is it possible to debug (multithreaded) lablgtk2  apps?
  2009-06-09  7:17 Is it possible to debug (multithreaded) lablgtk2 apps? Matthieu Dubuget
@ 2009-06-09 11:14 ` Dmitry Bely
  2009-06-09 13:37   ` Matthieu Dubuget
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Bely @ 2009-06-09 11:14 UTC (permalink / raw)
  To: matthieu.dubuget; +Cc: caml-list

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

> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Is it possible to debug (multithreaded) lablgtk2 apps?
  2009-06-09 11:14 ` [Caml-list] " Dmitry Bely
@ 2009-06-09 13:37   ` Matthieu Dubuget
  0 siblings, 0 replies; 3+ messages in thread
From: Matthieu Dubuget @ 2009-06-09 13:37 UTC (permalink / raw)
  Cc: caml-list

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-09 13:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-09  7:17 Is it possible to debug (multithreaded) lablgtk2 apps? Matthieu Dubuget
2009-06-09 11:14 ` [Caml-list] " Dmitry Bely
2009-06-09 13:37   ` Matthieu Dubuget

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