View Issue Details

IDProjectCategoryView StatusLast Update
0000767XdebugUsage problems (Wrong Results)public2014-02-27 19:19
ReporterVTXnsp0q0fEwAssigned Toderick 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionunable to reproduce 
PlatformPCOSWindowsOS Version7
Product Version2.1.0 
Target VersionFixed in Version 
Summary0000767: xdebug remote doesn't work with Windows 7 Swedish lang pack?
DescriptionClient: Netbeans 7.1.

php.ini conf:
zend_extension="C:\Program Files (x86)\PHP\ext\php_xdebug-2.1.2-5.3-vc9.dll"

xdebug.remote_autostart=off
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_connect_back=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_log=xdebug.log

I try to start a remote dbg session but complains and says it's waiting for a connection. However, I open up wireshark and I can see communication on the wire.

This is the TCP communication between my client and the debugger:
491.<?xml version="1.0" encoding="iso-8859-1"?>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///C:/inetpub/wwwroot/project/webroot/william/index.php" language="PHP" protocol_version="1.0" appid="5780" idekey="netbeans-xdebug"><engine version="2.1.2"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2011 by Derick Rethans]]></copyright></init>..NET...................1...System.Runtime.Remoting.RemotingException: ..vertr..delse f..r TCP-kanalsprotokoll: inledning (preamble) f..rv..ntas.

   vid System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadAndMatchPreamble()

   vid System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadVersionAndOperation(UInt16& operation)

   vid System.Runtime.Remoting.Channels.Tcp.TcpServerSocketHandler.ReadHeaders()

   vid System.Runtime.Remoting.Channels.Tcp.TcpServerTransportSink.ServiceRequest(Object state)

   vid System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow().....240.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command=".NET."><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.236.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="."><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.224.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.224.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.224.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.224.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.224.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.224.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.236.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="."><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.237.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command=".."><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.236.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="."><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.239.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="..1."><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.224.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.277.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="System.Runtime.Remoting.RemotingException:"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.224.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.224.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.224.<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>.

My colleague has the exact same setup as me but with Windows 7 - English lang pack (I have the swedish version). It works for him.
TagsNo tags attached.
Operating SystemWindows Server 2008 R2
PHP Version5.3.6

Activities

derick

2012-01-16 15:50

administrator   ~0001894

Could you attach the whole wireshark log as binary? And what appears in the log file crated when you use xdebug.remote_log=c:....?

VTXnsp0q0fEw

2012-01-17 10:08

reporter  

xdebug log.txt (4,921 bytes)
Log opened at 2012-01-17 10:04:16
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///C:/inetpub/wwwroot/IGS_82/webroot/william/index.php" language="PHP" protocol_version="1.0" appid="3600" idekey="netbeans-xdebug"><engine version="2.1.2"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2011 by Derick Rethans]]></copyright></init>

<- .NET
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command=".NET"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command=""><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command=""><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command=""><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command=""><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="1"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- System.Runtime.Remoting.RemotingException: �vertr�delse f�r TCP-kanalsprotokoll: inledning (preamble) f�rv�ntas.
   vid System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadAndMatchPreamble()
   vid System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadVersionAndOperation(UInt16& operation)
   vid System.Runtime.Remoting.Channels.Tcp.TcpServerSocketHandler.ReadHeaders()
   vid System.Runtime.Remoting.Channels.Tcp.TcpServerTransportSink.ServiceRequest(Object state)
   vid System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow()
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="System.Runtime.Remoting.RemotingException:"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

<- property_get -i 1173 -n handleEvent
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="property_get" transaction_id="1173" status="break" reason="ok"><error code="300"><message><![CDATA[can not get property]]></message></error></response>

-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>

Log closed at 2012-01-17 10:04:16
xdebug log.txt (4,921 bytes)

VTXnsp0q0fEw

2012-01-17 10:08

reporter  

xdebug.pcap (10,199 bytes)

VTXnsp0q0fEw

2012-01-17 10:14

reporter   ~0001895

I've attached the log and the pcap dump.

The log seems to be quite clear. xdebug sends .NETSOH to the client and that's where the problem starts.

<- .NET
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command=".NET"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

I've installed an english version of Windows 7 Professional and Netbeans 7.1 in a virtual environment and the debugger works like a charm.

derick

2012-03-07 19:46

administrator   ~0001954

Actually, it's not Xdebug that sends the .NET things, but your IDE/client. Perhaps something else wants to connect to port 9000? Try switching the port both in your IDE and php.ini's xdebug.remote_port to f.e. 9077.

derick

2014-02-27 19:19

administrator   ~0002694

I am closing this out, as no feedback was provided.

Issue History

Date Modified Username Field Change
2012-01-16 08:24 VTXnsp0q0fEw New Issue
2012-01-16 15:50 derick Note Added: 0001894
2012-01-16 15:50 derick Assigned To => derick
2012-01-16 15:50 derick Status new => feedback
2012-01-17 10:08 VTXnsp0q0fEw File Added: xdebug log.txt
2012-01-17 10:08 VTXnsp0q0fEw File Added: xdebug.pcap
2012-01-17 10:14 VTXnsp0q0fEw Note Added: 0001895
2012-01-17 10:14 VTXnsp0q0fEw Status feedback => assigned
2012-03-07 19:46 derick Note Added: 0001954
2012-03-07 19:46 derick Status assigned => feedback
2014-02-27 19:19 derick Note Added: 0002694
2014-02-27 19:19 derick Status feedback => resolved
2014-02-27 19:19 derick Resolution open => unable to reproduce
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)