This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271418 - error occured during comunication with xdebug
Summary: error occured during comunication with xdebug
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.2
Hardware: PC Windows 10
: P3 normal (vote)
Assignee: issues@php
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-01 09:42 UTC by gianbattista.passoni
Modified: 2017-09-01 19:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide screen shot (110.18 KB, image/jpeg)
2017-09-01 09:42 UTC, gianbattista.passoni
Details
xdebug.log (175.98 KB, text/plain)
2017-09-01 19:17 UTC, lee.eden
Details
php.ini (relevant rows for xdebug) (391 bytes, text/plain)
2017-09-01 19:21 UTC, lee.eden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gianbattista.passoni 2017-09-01 09:42:20 UTC
Created attachment 165068 [details]
ide screen shot

error message on click on debug project button:
following content of xdebug log:

Log opened at 2017-09-01 08:56:28
I: Connecting to configured address/port: localhost:9000.
E: Time-out connecting to client. :-(
Log closed at 2017-09-01 08:56:28

Log opened at 2017-09-01 08:58:38
I: Connecting to configured address/port: localhost:9000.
E: Time-out connecting to client. :-(
Log closed at 2017-09-01 08:58:39

Log opened at 2017-09-01 09:00:16
I: Connecting to configured address/port: 127.0.0.1:9000.
E: Time-out connecting to client. :-(
Log closed at 2017-09-01 09:00:16

Log opened at 2017-09-01 09:02:22
I: Connecting to configured address/port: 127.0.0.1:9000.
E: Time-out connecting to client. :-(
Log closed at 2017-09-01 09:02:22

Log opened at 2017-09-01 09:04:04
I: Connecting to configured address/port: 127.0.0.1:9000.
E: Time-out connecting to client. :-(
Log closed at 2017-09-01 09:04:04

Log opened at 2017-09-01 09:04:29
I: Connecting to configured address/port: 127.0.0.1:9000.
E: Time-out connecting to client. :-(
Log closed at 2017-09-01 09:04:29

Log opened at 2017-09-01 09:09:57
I: Connecting to configured address/port: 127.0.0.1:9000.
E: Time-out connecting to client. :-(
Log closed at 2017-09-01 09:09:58

attached ide screen shot
Comment 1 lee.eden 2017-09-01 19:17:37 UTC
Created attachment 165072 [details]
xdebug.log

I have had the same error come up one-time now ("Error occured during comunication with xdebug: Report issue, provide steps to reproduce and attach IDE and ideally also xdebug.log...").

This happened while I have been struggling to get xdebug to stop at breakpoints (it isn't stopping). It is connecting: Connected to client. :-) but not stopping at breakpoints. Putting xdebug_break(); into code will force it to stop (and it can then be debugged, variables visible, current row highlighted in netbeans, step-over etc works). But it won't stop at breakpoints, though Netbeans is successfully asking Netbeans to do so according to the log:

<- breakpoint_set -i 1169 -t line -s enabled -f file:///http/localhost:8080/desktop.php -n 83
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="1169" state="enabled" id="212780066"></response>

(but then it doesn't stop)

I am attaching my xdebug.log and also relevant rows of php.ini

My set-up is:
 - ubuntu server 32-bit 17.04 running as guest in Virtualbox under a Windows 64-bit 10 host (netbeans running in Windows, trying to debug the guest remotely)
 - Virtualbox is setup as NAT adapter, and I have set rules in its port-forwarding window host+guest for port 9003 (which is what I have set in Netbeans and php.ini xdebug.remote_port=9003) and for 8080->80, 2222->22 for http and ssh respectively
 - Project Run properties in Netbeans:
    - run as remote web site
    - project url: http://localhost:8080/
    - path mapping correctly set in advanced options
    - launches browser (chrome) [successfully]

Any feedback or ideas on how to get breakpoints working would be greatly appreciated!

Many thanks

Lee
Comment 2 lee.eden 2017-09-01 19:18:28 UTC
I have had the same error come up one-time now ("Error occured during comunication with xdebug: Report issue, provide steps to reproduce and attach IDE and ideally also xdebug.log...").

This happened while I have been struggling to get xdebug to stop at breakpoints (it isn't stopping). It is connecting: Connected to client. :-) but not stopping at breakpoints. Putting xdebug_break(); into code will force it to stop (and it can then be debugged, variables visible, current row highlighted in netbeans, step-over etc works). But it won't stop at breakpoints, though Netbeans is successfully asking Netbeans to do so according to the log:

<- breakpoint_set -i 1169 -t line -s enabled -f file:///http/localhost:8080/desktop.php -n 83
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="1169" state="enabled" id="212780066"></response>

(but then it doesn't stop)

I am attaching my xdebug.log and also relevant rows of php.ini

My set-up is:
 - ubuntu server 32-bit 17.04 running as guest in Virtualbox under a Windows 64-bit 10 host (netbeans running in Windows, trying to debug the guest remotely)
 - Virtualbox is setup as NAT adapter, and I have set rules in its port-forwarding window host+guest for port 9003 (which is what I have set in Netbeans and php.ini xdebug.remote_port=9003) and for 8080->80, 2222->22 for http and ssh respectively
 - Project Run properties in Netbeans:
    - run as remote web site
    - project url: http://localhost:8080/
    - path mapping correctly set in advanced options
    - launches browser (chrome) [successfully]

Any feedback or ideas on how to get breakpoints working would be greatly appreciated!

Many thanks

Lee
Comment 3 lee.eden 2017-09-01 19:21:07 UTC
Created attachment 165073 [details]
php.ini (relevant rows for xdebug)