[xdebug-general] Re: Beginner issues with remote debug

From: Derick Rethans <derick[@]xdebug.org>
Date: Mon, 14 Jan 2008 10:57:50 +0100 (CET)

On Fri, 11 Jan 2008, Anil T Samuel wrote:

> Thanks for that; Now I am using Xdebug Simple DBGp client (0.10.0)
>
> I am using the following java code to act as a debug server to connect to
> debugclient; I don't see any activity at debugclient on reception of <init>; i
> expected some error reg the fileuri.

I don't read Java, but this:

> //write the <init> packet to the debugclient
> s.getOutputStream().write(init.getBytes());
> s.getOutputStream().flush();

looks wrong. For the debug client to understand Xdebug responses, it
wants:

length \0 data \0

like described in
http://xdebug.org/docs-dbgp.php#debugger-engine-to-ide-communications

regards,
Derick

-- 
Like Xdebug? Send a postcard: http://derickrethans.nl/xdebug_2_released.php
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
Received on Mon Jan 14 2008 - 10:57:49 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST