English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2009-06-09 (11:14)
From: Dmitry Bely <dmitry.bely@g...>
Subject: Re: [Caml-list] Is it possible to debug (multithreaded) lablgtk2 apps?
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

> 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