View Issue Details

IDProjectCategoryView StatusLast Update
0001164XdebugStep Debuggingpublic2017-01-03 18:56
Reporterbrawol Assigned Toderick  
PriorityhighSeveritycrashReproducibilityhave not tried
Status resolvedResolutionunable to reproduce 
PlatformWindows 8 Pro 64bit 
Product Version2.3.2 
Summary0001164: Socket exception
Description

I work with Windows 8 Pro (64 bit),
XAMPP (xampp-portable-win32-5.6.3-0-VC11) and
Netbeans (8.0.2).

I try to trace "Magento" with the XDebug-Extension.
The PHP.ini - Parameters are:

[XDebug]
zend_extension = "D:\Web\Cms\xampp\php\ext\php_xdebug-2.3.2-5.6-vc11.dll"
xdebug.remote_enable = 1
xdebug.remote_hander = dbgp
xdebug.remote_mode = req
xdebug.remote_host =127.0.0.1:99
xdebug.remote_port = 9000
xdebug.remote_connect_back=1

After a series of steps, i always get a "Socket exception".
(No watches are set, caching is off.)
All that i could find out in the Internet is
that this supposed to be a bug by XDebug
which is resolved with the newest version.
But seems to be still there.

TagsNo tags attached.
Attached Files
xdebug_log_231115.zip (586,893 bytes)
Operating System
PHP Version5.6.0-5.6.4

Activities

derick

2015-06-18 20:57

administrator   ~0003125

xdebug.remote_host =127.0.0.1:99

Is wrong - you can only have an IP address there, and not a port. But as you are using remote_connect_back, these values will not be used.

In order to find out why you get the socket exception, it would be helpful if you can make a remote log. You can do that by setting:

xdebug.remote_log = "D:\xdebug.log"

(Or pick a different path that your web server can write to)

brawol

2015-06-19 16:00

reporter   ~0003126

On Windows 8 Port 80 is blocked by a system service (Kernel NT & System).
I must rename that port, otherwise Apache will not start.

Without "remote_connect_back=1" Netbeans never connects with XDebug.

The xdebug.log as also the IDE.log are to big to get upload.

So, here are the last lines of xdebug.log:

<- context_get -i 746 -c 2
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug&quot; command="context_get"

transaction_id="746" context="2"><property name="MAGENTO_ROOT" fullname="MAGENTO_ROOT" address="143728776"

type="string" size="38" facet="constant" encoding="base64"><![CDATA

[RDpcV2ViXENNU1x4YW1wcFxodGRvY3NcbWFnZW50b19zYW1wbGU=]]></property><property name="DS" fullname="DS"

address="143728216" type="string" size="1" facet="constant" encoding="base64"><![CDATA[XA==]]></property><property

name="PS" fullname="PS" address="143728256" type="string" size="1" facet="constant" encoding="base64"><![CDATA

[Ow==]]></property><property name="BP" fullname="BP" address="143728696" type="string" size="38" facet="constant"

encoding="base64"><![CDATA[RDpcV2ViXENNU1x4YW1wcFxodGRvY3NcbWFnZW50b19zYW1wbGU=]]></property></response>

<- step_over -i 747
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug&quot; command="step_over"

transaction_id="747" status="break" reason="ok"><xdebug:message

filename="file:///D:/Web/CMS/xampp/htdocs/magento_sample/app/code/core/Mage/Core/Model/App.php"

lineno="1221"></xdebug:message></response>

<- stack_get -i 748
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug&quot; command="stack_get"

transaction_id="748"><stack where="Mage_Core_Model_App->getRequest" level="0" type="file"

filename="file:///D:/Web/CMS/xampp/htdocs/magento_sample/app/code/core/Mage/Core/Model/App.php"

lineno="1221"></stack><stack where="Mage_Core_Model_Cookie->_getRequest" level="1" type="file"

filename="file:///D:/Web/CMS/xampp/htdocs/magento_sample/app/code/core/Mage/Core/Model/Cookie.php"

lineno="83"></stack><stack where="Mage_Core_Model_Cookie->get" level="2" type="file"

filename="file:///D:/Web/CMS/xampp/htdocs/magento_sample/app/code/core/Mage/Core/Model/Cookie.php"

lineno="273"></stack><stack where="Mage_Core_Model_App->_checkCookieStore" level="3" type="file"

filename="file:///D:/Web/CMS/xampp/htdocs/magento_sample/app/code/core/Mage/Core/Model/App.php"

lineno="568"></stack><stack where="Mage_Core_Model_App->_initCurrentStore" level="4" type="file"

filename="file:///D:/Web/CMS/xampp/htdocs/magento_sample/app/code/core/Mage/Core/Model/App.php"

lineno="488"></stack><stack where="Mage_Core_Model_App->run" level="5" type="file"

filename="file:///D:/Web/CMS/xampp/htdocs/magento_sample/app/code/core/Mage/Core/Model/App.php"

lineno="349"></stack><stack where="Mage::run" level="6" type="file"

filename="file:///D:/Web/CMS/xampp/htdocs/magento_sample/app/Mage.php" lineno="684"></stack><stack where="{main}" level="7"

type="file" filename="file:///D:/Web/CMS/xampp/htdocs/magento_sample/index.php" lineno="87"></stack></response>

<- context_names -i 749
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug&quot; command="context_names"

transaction_id="749"><context name="Locals" id="0"></context><context name="Superglobals" id="1"></context><context

name="User defined constants" id="2"></context></response>

<- context_get -i 750 -c 0
Log opened at 2015-06-19 13:42:53
I: Checking remote connect back address.
I: Remote address found, connecting to 127.0.0.1:9000.
E: Time-out connecting to client. :-(
Log closed at 2015-06-19 13:42:54

and of IDE.log:

INFO [org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl]: IOException in resolver FileElement(fast-check

(patterns:[<?php, 255, false], [<HTML>, 255, true, [<?php, 4000, false]], [<!DOCTYPE HTML, 255, true, [<?php, 4000, false]], ) null

Result:text/x-php5
java.io.IOException: Der Prozess kann nicht auf die Datei zugreifen, da ein anderer Prozess einen Teil der Datei gesperrt hat
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:234)
at org.openide.filesystems.MIMESupport$CachedInputStream.ensureBufferLength(MIMESupport.java:702)
at org.openide.filesystems.MIMESupport$CachedInputStream.read(MIMESupport.java:751)
at java.io.InputStream.read(InputStream.java:101)
at org.netbeans.modules.openide.filesystems.declmime.FileElement$Type$FilePattern.match(FileElement.java:316)
at org.netbeans.modules.openide.filesystems.declmime.FileElement$Type.accept(FileElement.java:634)
at org.netbeans.modules.openide.filesystems.declmime.FileElement$Type.access$300(FileElement.java:156)
[catch] at org.netbeans.modules.openide.filesystems.declmime.FileElement.resolve(FileElement.java:99)
at org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl$Impl.findMIMEType

(MIMEResolverImpl.java:440)
at org.openide.filesystems.MIMESupport$CachedFileObject.resolveMIME(MIMESupport.java:371)
at org.openide.filesystems.MIMESupport$CachedFileObject.getMIMEType(MIMESupport.java:312)
at org.openide.filesystems.MIMESupport.findMIMEType(MIMESupport.java:136)
at org.openide.filesystems.FileUtil.getMIMEType(FileUtil.java:1332)
at org.netbeans.modules.parsing.impl.indexing.FileObjectIndexable.isTypeOf(FileObjectIndexable.java:141)
at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.isTypeOf(Indexable.java:342)
at org.netbeans.modules.parsing.impl.indexing.ClusteredIndexables.getIndexablesFor(ClusteredIndexables.java:121)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:2752)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.access$1600(RepositoryUpdater.java:2091)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2539)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2537)
at org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.refreshTransaction(TaskCache.java:544)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(RepositoryUpdater.java:2537)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.scanFiles(RepositoryUpdater.java:3148)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$FileListWork.getDone(RepositoryUpdater.java:3614)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3267)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:5810)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.access$5300(RepositoryUpdater.java:5476)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$3$1.run(RepositoryUpdater.java:5735)
at org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.performScan

(RunWhenScanFinishedSupport.java:96)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$3.call(RepositoryUpdater.java:5731)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$3.call(RepositoryUpdater.java:5727)
at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:74)
at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:5727)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task:

org.netbeans.modules.csl.editor.semantic.MarkOccurrencesHighlighter@386e5a9d : class

org.netbeans.modules.csl.editor.semantic.MarkOccurrencesHighlighter ignored cancel for 68 ms.
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: org.netbeans.modules.csl.hints.GsfHintsProvider@92c4a4 : class

org.netbeans.modules.csl.hints.GsfHintsProvider ignored cancel for 115 ms.
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task:

org.netbeans.modules.csl.editor.overridden.ComputeAnnotations@174e9d70 : class

org.netbeans.modules.csl.editor.overridden.ComputeAnnotations ignored cancel for 66 ms.
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: org.netbeans.modules.csl.hints.GsfHintsProvider@92c4a4 : class

org.netbeans.modules.csl.hints.GsfHintsProvider ignored cancel for 178 ms.
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: org.netbeans.modules.csl.hints.GsfHintsProvider@92c4a4 : class

org.netbeans.modules.csl.hints.GsfHintsProvider ignored cancel for 404 ms.
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: org.netbeans.modules.csl.hints.GsfHintsProvider@92c4a4 : class

org.netbeans.modules.csl.hints.GsfHintsProvider ignored cancel for 185 ms.
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: org.netbeans.modules.csl.hints.GsfHintsProvider@92c4a4 : class

org.netbeans.modules.csl.hints.GsfHintsProvider ignored cancel for 276 ms.
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: org.netbeans.modules.csl.hints.GsfHintsProvider@92c4a4 : class

org.netbeans.modules.csl.hints.GsfHintsProvider ignored cancel for 407 ms.
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: org.netbeans.modules.csl.hints.GsfHintsProvider@92c4a4 : class

org.netbeans.modules.csl.hints.GsfHintsProvider ignored cancel for 643 ms.
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: org.netbeans.modules.csl.hints.GsfHintsProvider@92c4a4 : class

org.netbeans.modules.csl.hints.GsfHintsProvider ignored cancel for 371 ms.
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: org.netbeans.modules.csl.hints.GsfHintsProvider@92c4a4 : class

org.netbeans.modules.csl.hints.GsfHintsProvider ignored cancel for 698 ms.
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: org.netbeans.modules.csl.hints.GsfHintsProvider@92c4a4 : class

org.netbeans.modules.csl.hints.GsfHintsProvider ignored cancel for 287 ms.
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task:

org.netbeans.modules.csl.hints.infrastructure.SuggestionsTask@1a4e1f67 : class

org.netbeans.modules.csl.hints.infrastructure.SuggestionsTask ignored cancel for 620 ms.
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task:

org.netbeans.modules.csl.hints.infrastructure.SuggestionsTask@1a4e1f67 : class

org.netbeans.modules.csl.hints.infrastructure.SuggestionsTask ignored cancel for 78 ms.
INFO [org.netbeans.modules.php.dbgp.DebugSession]: COMMAND: context_get -i 1005 -c 0; TRANS_ID: 1005; WANT_ACK: true
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:189)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.net.SocketInputStream.read(SocketInputStream.java:203)
at org.netbeans.modules.php.dbgp.packets.DbgpMessage.getDataSize(DbgpMessage.java:267)
at org.netbeans.modules.php.dbgp.packets.DbgpMessage.create(DbgpMessage.java:112)
at org.netbeans.modules.php.dbgp.DebugSession.receiveData(DebugSession.java:263)
at org.netbeans.modules.php.dbgp.DebugSession.sendCommands(DebugSession.java:210)
[catch] at org.netbeans.modules.php.dbgp.DebugSession.run(DebugSession.java:140)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
INFO [org.netbeans.modules.php.dbgp.DebugSession]
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:189)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.net.SocketInputStream.read(SocketInputStream.java:203)
at org.netbeans.modules.php.dbgp.packets.DbgpMessage.getDataSize(DbgpMessage.java:267)
at org.netbeans.modules.php.dbgp.packets.DbgpMessage.create(DbgpMessage.java:112)
at org.netbeans.modules.php.dbgp.DebugSession.receiveData(DebugSession.java:263)
at org.netbeans.modules.php.dbgp.DebugSession.sendCommands(DebugSession.java:210)
[catch] at org.netbeans.modules.php.dbgp.DebugSession.run(DebugSession.java:140)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

tilmp

2015-11-24 07:55

reporter   ~0003258

Hello,

I also get a socket exception after a while stepping through the code using Netbeans/Xedebug remotely (no problem using it on localhost with XAMPP).
I also uploaded a xdebug.log.

My config is as follows:

Netbeans 8.0.2 / Firefox 42.0
Windows NT HI2VMTEST5 6.1 build 7601 (Windows Server 2008 R2 Enterprise Edition Service Pack 1) i586
IIS Version 7.5.7600.16385
PHP 5.5.28
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
with Xdebug v2.3.3, Copyright (c) 2002-2015, by Derick Rethans
php_xdebug-2.3.3-5.5-vc11-nts.dll

xdebug.auto_trace Off
xdebug.cli_color 0
xdebug.collect_assignments Off
xdebug.collect_includes On
xdebug.collect_params 0
xdebug.collect_return Off
xdebug.collect_vars Off
xdebug.coverage_enable On
xdebug.default_enable On
xdebug.dump.COOKIE no value
xdebug.dump.ENV no value
xdebug.dump.FILES no value
xdebug.dump.GET no value
xdebug.dump.POST no value
xdebug.dump.REQUEST no value
xdebug.dump.SERVER no value
xdebug.dump.SESSION no value
xdebug.dump_globals On
xdebug.dump_once On
xdebug.dump_undefined Off
xdebug.extended_info On
xdebug.file_link_format no value
xdebug.force_display_errors Off
xdebug.force_error_reporting 0
xdebug.halt_level 0
xdebug.idekey no value
xdebug.max_nesting_level 256
xdebug.max_stack_frames -1
xdebug.overload_var_dump On
xdebug.profiler_aggregate Off
xdebug.profiler_append Off
xdebug.profiler_enable Off
xdebug.profiler_enable_trigger Off
xdebug.profiler_enable_trigger_value no value
xdebug.profiler_output_dir \
xdebug.profiler_output_name cachegrind.out.%p
xdebug.remote_autostart Off
xdebug.remote_connect_back Off
xdebug.remote_cookie_expire_time 3600
xdebug.remote_enable On
xdebug.remote_handler dbgp
xdebug.remote_host 10.72.92.170
xdebug.remote_log no value
xdebug.remote_mode req
xdebug.remote_port 9000
xdebug.scream Off
xdebug.show_exception_trace Off
xdebug.show_local_vars Off
xdebug.show_mem_delta Off
xdebug.trace_enable_trigger Off
xdebug.trace_enable_trigger_value no value
xdebug.trace_format 0
xdebug.trace_options 0
xdebug.trace_output_dir \
xdebug.trace_output_name trace.%c
xdebug.var_display_max_children -1
xdebug.var_display_max_data -1
xdebug.var_display_max_depth -1

derick

2016-12-12 00:15

administrator   ~0004029

Can you still reproduce this with the latest PHP 5.6. release, and Xdebug 2.5.0 (or later)?

derick

2017-01-03 18:56

administrator   ~0004140

I could not reproduce this, and no feedback was given. I'm closing this issue, but feel free to reopen if this happens again.

Issue History

Date Modified Username Field Change
2015-06-18 18:34 brawol New Issue
2015-06-18 20:57 derick Note Added: 0003125
2015-06-18 20:57 derick Assigned To => derick
2015-06-18 20:57 derick Status new => feedback
2015-06-19 16:00 brawol Note Added: 0003126
2015-06-19 16:00 brawol Status feedback => assigned
2015-11-24 07:55 tilmp Note Added: 0003258
2015-11-24 07:55 tilmp File Added: xdebug_log_231115.zip
2016-07-31 12:35 derick Category Debug client (console) => debugclient (debugging tool)
2016-07-31 12:35 derick Category debugclient (debugging tool) => (No Category)
2016-12-12 00:15 derick Category (No Category) => Remote Debugging
2016-12-12 00:15 derick Note Added: 0004029
2016-12-12 00:15 derick Status assigned => feedback
2017-01-03 18:56 derick Note Added: 0004140
2017-01-03 18:56 derick Status feedback => resolved
2017-01-03 18:56 derick Resolution open => unable to reproduce
2020-03-12 16:33 derick Category Remote Debugging => Step Debugging