[xdebug-general] Re: telnet session to debugclient

From: Anil T Samuel <anil.samuel[@]oracle.com>
Date: Sat, 12 Jan 2008 10:18:45 +1100

Thanks guys, got few steps ahead.

I get the following response at the debugclient and could you confirm
that is expected.

===DEBUGCLIENT===
Waiting for debug server to connect.
Connect
<?xml version="1.0" encoding="iso-8859-1"?><init xmlns="urn:debugger_protocol_v1
" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///home/httpd/www.xdebug.org/html/docs/index.php
" language="PHP" protocol_version="1.0" appid="13202"
idekey="derick"><engine version="2.0.0RC4-dev"><![CDATA[Xdebug]]></
engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org
]]></url><copyright><![CDATA[Copyright (c) 2002-2007 by Derick
Rethans]]></copyright></init>/n
(cmd) proxyinit -a 141.144.152.44:9001 -k derick -m 0
Disconnect

Waiting for debug server to connect.
===DEBUGCLIENT===

My understanding is that debugserver (such as IDE) should listen to
9001 in this case where debugclient will connect to accept commands.
Is that right ?

Regards
Anthos

On 11/01/2008, at 7:30 PM, Damjan Cvetko wrote:

> Hi Anil.
>
> Here's my 0.02.
> In DBGP all XML packets are in form of:
>
> <payload size><NUL><xml payload><NUL>
>
> Telnet isn't the best utility for that.
>
> Perhaps what would be interesting for you is to run this instead of
> debugclient:
> nc -l -p 9000
> Then start a debug session. You'll see here if you get the correct
> init packet. (I think that was the initial problem).
>
> One way to send a packet to the client, would be to create a file
> with the right sytanx (size null etc) and then do
>
> nc localhost 9000 < file
>
> Hope this helps.
>
> RE
> -Zobo
>
> Anil T Samuel wrote:
>> Can I connect a telnet session (using telnet localhost 9000) to a
>> debugclient listening at localhost:9000
>> and send <init> packet using telnet console input ?
>>
>> I am hoping something like
>>
>> [anthos:~]>telnet bortnet.com smtp
>> Trying 209.128.96.105...
>> Connected to bortnet.com.
>> Escape character is '^]'.
>> 220 mail.bortnet.com ESMTP Postfix
>> helo me.com
>> 250 mail.bortnet.com
>> MAIL FROM:anthos[@]hotmail.com
>> 250 Ok
>>
>> Regards
>> Anthos
>>
>
Received on Sat Jan 12 2008 - 00:20:06 GMT

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