[ 
https://issues.apache.org/jira/browse/NETBEANS-2929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16922719#comment-16922719
 ] 

Lyubomir Parvanov commented on NETBEANS-2929:
---------------------------------------------

I am also experiencing this bug. Clean install of Netbeans, haven't really used 
it.

Ubuntu 19.04

Netbeans 11.1 snap package.

openjdk-8-jre

PHP 7.2.19-0ubuntu0.19.04.2 (cli) (built: Aug 13 2019 11:45:23) ( NTS )

Xdebug 2.7.2

[XDebug]
zend_extension = /usr/lib/php/20170718/xdebug.so
xdebug.remote_enable = 1
xdebug.remote_autostart = 1

 

Xdebug by default uses port 9000.

I've installed yii2 basic template into /var/www/html/yii2-test-app.

!image-2019-09-04-20-51-37-754.png|width=806,height=401!

Proxy settings set to No Proxy. Port set to 9000. With and without Stop at 
first line it doesn't work. I've somehow set the option on start of debugging 
to now open the page. Properties for project are:

!image-2019-09-04-20-59-59-909.png|width=395,height=405!

!image-2019-09-04-21-00-31-797.png|width=389,height=348!

!image-2019-09-04-21-01-04-879.png|width=715,height=403!

With or without mapping, does not work.

> xdebug not working with NetBeans 11.1
> -------------------------------------
>
>                 Key: NETBEANS-2929
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2929
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 11.1
>         Environment: Windows 10 64 bit
>            Reporter: Eduard Fekete
>            Priority: Major
>         Attachments: image-2019-09-04-20-51-37-754.png, 
> image-2019-09-04-20-59-59-909.png, image-2019-09-04-21-00-31-797.png, 
> image-2019-09-04-21-01-04-879.png, netbeans-2929-screenshot.png
>
>
> I tried xdebug 2.7.2 with PHP 7.2.5 running on a remote linux openSUSE server.
> It does not start the debugger and says "Waiting for debugger 
> (netbeans-xdebug)" but nothing happens.
> If I try it in NetBeans 8.2 then it works.
>  
> The configuration is the same in both NetBeans (Port, IDE key)
>  Java: jdk1.8.0_172, jre1.8.0_181
>  
> *Reproduction:*
>  # Install xdebug 2.7.2 from source by following instructions from here 
> [https://github.com/xdebug/xdebug]
>  # Set the following in php.ini
> {code:java}
> [XDebug]
> zend_extension = /usr/lib64/php7/extensions/xdebug.so
> xdebug.remote_connect_back=0
> xdebug.force_display_errors=on
> xdebug.force_error_reporting=on
> xdebug.remote_enable=on
> xdebug.remote_handler=dbgp
> xdebug.remote_host=192.168.40.161   #replace with IP of your remote client 
> where netbeans runs
> xdebug.remote_port=51234
> xdebug.remote_timeout=3000
> xdebug.remote_mode=req
> xdebug.remote_log=/var/log/xdebug/xdebug.log
> xdebug.idekey = netbeans-xdebug
> xdebug.renite_enable = 1
> xdebug.max_nesting_level = 1000
> xdebug.profiler_enable_trigger = 1
> xdebug.profiler_output_dir = '/var/log/xdebug'{code}
> 3. Restart apache2 service
> 4. Check if xdebug is installed by checking phpinfo
> 5. open Netbeans 11.1
> 6. Go to Tools > Options -> PHP -> Debugging
> 7. set "Debugger Port" to 51234
> 8. set "Session ID" to netbeans-xdebug
> 9. open a test script
> 10. right click -> Debug File
> 11. Notice that "Wating for Connection (netbeans-xdebug)" shows forever and 
> nothing happens.
> */var/log/xdebug/xdebug.log:*
> {code:java}
> [22426] Log opened at 2019-08-01 07:01:46
> [22426] I: Connecting to configured address/port: 192.168.40.161:51234.
> [22426] E: Time-out connecting to client (Waited: 3000 ms). :-(
> [22426] Log closed at 2019-08-01 07:01:49{code}
>  
> 12. Do the same on Netbeans 8.2 and notice that it works



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to