[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ocaml debug problem

On 19 Nov 2012, at 19:23, Yiming Zhang <sdiris@xxxxxxxxx> wrote:

> Hi all
> I am debugging a server using ocamldebug. When the server is waiting for 
> clients to connect, can I stop the waiting process and check some variant ? 
> (e.g., I can use ctrl+C to achieve this when debugging C programs using GDB)

I don't actually use ocamldebug much, but I probably should :-)

There's a "goto <time>" option that runs the program and breaks after a certain 
stage, so you could set this up to fire when the process is waiting. 
Alternatively, you could set a breakpoint on the select function to explicitly 
break just before it waits.




Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.