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 256450 - When I try to debug, I receive this message: "netbeans socket exception occurred"
Summary: When I try to debug, I receive this message: "netbeans socket exception occur...
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0.2
Hardware: PC Windows 10 x64
: P1 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-08 23:48 UTC by Byron2015
Modified: 2015-11-09 13:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project. (1.14 MB, application/x-rar)
2015-11-08 23:48 UTC, Byron2015
Details
php.ini (69.52 KB, application/octet-stream)
2015-11-08 23:51 UTC, Byron2015
Details
IDE log (121.53 KB, application/octet-stream)
2015-11-08 23:52 UTC, Byron2015
Details
apache log (19.37 KB, application/octet-stream)
2015-11-08 23:53 UTC, Byron2015
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Byron2015 2015-11-08 23:48:19 UTC
Created attachment 157218 [details]
Project.

I use:
- Windows 10 pro / Intel(R) Core(TM)i7-2630QM CPU @ 2.00GHz  64 bits.
- WAMP 2.2
- Apache 2.4.2
- php 5.4.3
- xdebug php_xdebug-2.2.0-5.4-vc9-x86_64.dll
- Netbeans 8.0.2
- firefox 42.0

I get the following problems:
1. I set a breakpoint in my php file (controller/ajaxController.php Function: getCiudades)
2. I start to debug from netbeans
3. I see that Netbeans stops at the breakpoint (the green line)
4. after some seconds;  I get an error dialog from netbeans
   telling me:
   "Socket exception occoured" telling me to
    delete some watches and debugging is finished.
Comment 1 Byron2015 2015-11-08 23:51:53 UTC
Created attachment 157219 [details]
php.ini
Comment 2 Byron2015 2015-11-08 23:52:58 UTC
Created attachment 157220 [details]
IDE log
Comment 3 Byron2015 2015-11-08 23:53:49 UTC
Created attachment 157221 [details]
apache log
Comment 4 Tomas Mysik 2015-11-09 09:06:04 UTC
From the IDE log:

java.net.SocketException: Connection reset

Sorry, it means that there is some problem in communication with Xdebug. What you can do is to verify your Xdebug setup [1].You can also try to update to the latest NetBeans version (8.1 final at the moment) but this step is unlikely to help you I guess.

BTW sometimes, these all-in-one bundles (WAMP, XAMP etc.) are not configured properly - IMO the best is to install all these parts separately and configure them manually to be sure everything is correct.

Thanks.
[1] http://wiki.netbeans.org/HowToConfigureXDebug

Product Version: NetBeans IDE Dev (Build 20151109-f68312adba34)
Java: 1.7.0_80; Java HotSpot(TM) 64-Bit Server VM 24.80-b11
Runtime: Java(TM) SE Runtime Environment 1.7.0_80-b15
System: Linux version 3.19.0-32-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 5 Byron2015 2015-11-09 13:22:36 UTC
I followed the instructions of this page: http://xdebug.org/wizard.php (they analyze your phpinfo() and give you a tailored solution)


    Download php_xdebug-2.3.3-5.4-vc9-x86_64.dll
    Move the downloaded file to c:\wamp\bin\php\php5.4.3\ext
    Update C:\wamp\bin\apache\apache2.4.2\bin\php.ini and change the line
    zend_extension = c:\wamp\bin\php\php5.4.3\ext\php_xdebug-2.3.3-5.4-vc9-x86_64.dll
    Restart the webserver

The problems seems to be resolve, I will update you in the future.

thanks.