Eventually the intention is to build a real debugger into phpmole the likely candidate is the dbg extension from http://dd.cron.ru/dbg/ the trick is working out what the protocol does - so far this is the analysis: The startup issues header_structure 4 bytes sync = ( 00 00 59 53 ) ; 4 bytes cmd = (00 00 00 12) = see commands from dbg_net.h ; /* command one of DBGC_xxxx, DBGR_xxxx, DBGA_xxxx */ 4 bytes flags (00 00 00 01) ?? not sure what thats for 4 bytes bodysize (00 00 00 10) = eg. 16 bytes (hex) initiall send 00 00 59 53 00 00 00 12 00 00 00 01 00 00 00 10 00 01 8a 24 00 00 00 08 00 00 00 00 00 00 00 02 translates to command DBGC_SID send session id then of 16 bytes of ???? dont know what this is - session id ? 00 00 59 53 00 00 00 01 00 00 00 05 00 00 02 df translates to command DBGC_STARTUP send startup date flag =5 size =02df It then appears to dump the DBG global vars..!