• <i id='OwKiw'><tr id='OwKiw'><dt id='OwKiw'><q id='OwKiw'><span id='OwKiw'><b id='OwKiw'><form id='OwKiw'><ins id='OwKiw'></ins><ul id='OwKiw'></ul><sub id='OwKiw'></sub></form><legend id='OwKiw'></legend><bdo id='OwKiw'><pre id='OwKiw'><center id='OwKiw'></center></pre></bdo></b><th id='OwKiw'></th></span></q></dt></tr></i><div id='OwKiw'><tfoot id='OwKiw'></tfoot><dl id='OwKiw'><fieldset id='OwKiw'></fieldset></dl></div>

    <legend id='OwKiw'><style id='OwKiw'><dir id='OwKiw'><q id='OwKiw'></q></dir></style></legend>

          <bdo id='OwKiw'></bdo><ul id='OwKiw'></ul>

        <small id='OwKiw'></small><noframes id='OwKiw'>

        <tfoot id='OwKiw'></tfoot>

        Netbeans 等待连接到 XDEBUG

        时间:2023-09-20
        <legend id='F056h'><style id='F056h'><dir id='F056h'><q id='F056h'></q></dir></style></legend>

        <i id='F056h'><tr id='F056h'><dt id='F056h'><q id='F056h'><span id='F056h'><b id='F056h'><form id='F056h'><ins id='F056h'></ins><ul id='F056h'></ul><sub id='F056h'></sub></form><legend id='F056h'></legend><bdo id='F056h'><pre id='F056h'><center id='F056h'></center></pre></bdo></b><th id='F056h'></th></span></q></dt></tr></i><div id='F056h'><tfoot id='F056h'></tfoot><dl id='F056h'><fieldset id='F056h'></fieldset></dl></div>
        • <bdo id='F056h'></bdo><ul id='F056h'></ul>

              <tbody id='F056h'></tbody>
          1. <small id='F056h'></small><noframes id='F056h'>

            <tfoot id='F056h'></tfoot>
                • 本文介绍了Netbeans 等待连接到 XDEBUG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  Netbeans 不会连接到 xdebug.我尝试了以下帖子中的建议:

                  Netbeans won't connect to xdebug. I've tried suggestions from the following posts:

                  调试IDE到XDebug的端口连接:"等待连接

                  netbeans 显示等待连接 (netbeans-xdebug)"

                  但它不能解决我的问题.

                  but it doesn't fix my issue.

                  似乎 Netbeans 连接到 xdebug,因为当它等待连接时,所有对网络服务器 [Apache2] 的请求都被阻止.此外,端口 [9001] 似乎正在使用中:

                  It seems Netbeans connects to xdebug because while it waits for the connection all request made to the webserver [Apache2] are blocked. Also the port [9001] appears to be in use:

                  roxy@Pixy011 ~ $ sudo nmap -sS -O 127.0.0.1
                  
                  Starting Nmap 6.00 ( http://nmap.org ) at 2013-11-28 20:48 EST
                  Nmap scan report for localhost (127.0.0.1)
                  Host is up (0.000029s latency).
                  Not shown: 990 closed ports
                  PORT     STATE SERVICE
                  22/tcp   open  ssh
                  139/tcp  open  netbios-ssn
                  443/tcp  open  https
                  445/tcp  open  microsoft-ds
                  631/tcp  open  ipp
                  902/tcp  open  iss-realsecure
                  3306/tcp open  mysql
                  8080/tcp open  http-proxy
                  8081/tcp open  blackice-icecap
                  9001/tcp open  tor-orport   <---- Opened by java
                  

                  xdebug.ini: [我已经确认它已加载到 phpinfo()]

                  xdebug.ini: [I have confirmed it is loaded in phpinfo()]

                  zend_extension=/usr/lib/php5/20100525/xdebug.so
                  
                  xdebug.remote_autostart=1
                  xdebug.remote_enable=1
                  xdebug.remote_handler="dbgp"
                  xdebug.remote_mode="req"
                  xdebug.remote_host="127.0.0.1"
                  xdebug.remote_port=9001
                  xdebug.idekey="netbeans-xdebug"
                  

                  Netbeans 配置:

                  Netbeans configuration:

                  Debugger port: 9001
                  Session ID: netbeans-xdebug
                  Stop at first line: Checked
                  All other options are unchecked
                  

                  项目属性:

                  Host: 127.0.0.1
                  Port: 9001
                  

                  我注意到 Netbeans 没有将 XDEBUG_SESSION_STOP 附加到 URL.我认为这与问题无关,因为 Netbeans 仅在我关闭调试会话后才打开页面.

                  I've noticed Netbeans doesn't append the XDEBUG_SESSION_STOP to the URL. I don't think this is related to the issue because Netbeans only opens the page after I close the debugging session.

                  我也禁用了 SELinux

                  I've also disabled SELinux

                  推荐答案

                  On Ubuntu 13.04 64bit php 5.4.9-4 Xdebug v2.2.3 netbeans 7.4
                  我有同样的问题并已通过以下方式解决:
                  1. 继续 http://xdebug.org/wizard.php 按照说明编译您自己的 xdebug.so
                  2. 在 netbean 7.4 中的常规选项(对不起,我没有声誉 10 发布图片)测试连接.确保代理上的设置正确:对我来说无代理"正在工作.
                  3. 在 php 选项调试选项卡中将 xdebug 设置端口更改为 9001 或 9000 以外的端口.我选择 9002 但你可以尝试直到你找到一个空闲端口(如果端口不空闲请告诉你)
                  4. 在 php.ini OR 对于 ubuntu 用户 在/etc/php5/conf.d/20-xdebug.ini

                  On Ubuntu 13.04 64bit php 5.4.9-4 Xdebug v2.2.3 netbeans 7.4
                  I have same problem and have solve it by:
                  1. go on http://xdebug.org/wizard.php follow the instructions to compile your own xdebug.so
                  2. in netbean 7.4 general options (sorry I haven't reputation 10 to post image) test connection. be sure correct settings on Proxy: to me "No Proxy" is working.
                  3. in php options debugging tab change xdebug setting port to other than 9001 or 9000. I choose 9002 but you can try until you find a free port (if port is not free nb tell you)
                  4. in php.ini OR for ubuntu users in /etc/php5/conf.d/20-xdebug.ini

                  zend_extension=/usr/lib/php5/20100525/xdebug.so #你把重新编译的 xdebug.so 放在哪里
                  [xdebug]
                  xdebug.remote_autostart=0
                  xdebug.remote_enable=1
                  xdebug.remote_handler="dbgp"
                  xdebug.remote_mode="req"
                  xdebug.remote_port=9002 #你在上面的netbeans中找到的空闲端口
                  xdebug.remote_host=127.0.0.1
                  xdebug.profiler_enable=0
                  xdebug.profiler_output_dir="/tmp/"
                  xdebug.idekey="netbeans-xdebug"
                  xdebug.remote_log="/home/#user_name#/xdebug.log" #您的用户名

                  zend_extension=/usr/lib/php5/20100525/xdebug.so #where you ave put your reconpiled xdebug.so
                  [xdebug]
                  xdebug.remote_autostart=0
                  xdebug.remote_enable=1
                  xdebug.remote_handler="dbgp"
                  xdebug.remote_mode="req"
                  xdebug.remote_port=9002 # the port you have found free and set in netbeans above
                  xdebug.remote_host=127.0.0.1
                  xdebug.profiler_enable=0
                  xdebug.profiler_output_dir="/tmp/"
                  xdebug.idekey="netbeans-xdebug"
                  xdebug.remote_log="/home/#user_name#/xdebug.log" #your user name

                  5.须藤服务 apache2 重启

                  5. sudo service apache2 restart

                  这样做后,我可以再次调试 php.

                  after do this I can debug php again.

                  这篇关于Netbeans 等待连接到 XDEBUG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:向 Netbeans 添加自定义文件扩展名 下一篇:如何让 Netbeans 在自动完成时使用 import 语句而不

                  相关文章

                  最新文章

                  • <bdo id='Kz3rL'></bdo><ul id='Kz3rL'></ul>

                • <i id='Kz3rL'><tr id='Kz3rL'><dt id='Kz3rL'><q id='Kz3rL'><span id='Kz3rL'><b id='Kz3rL'><form id='Kz3rL'><ins id='Kz3rL'></ins><ul id='Kz3rL'></ul><sub id='Kz3rL'></sub></form><legend id='Kz3rL'></legend><bdo id='Kz3rL'><pre id='Kz3rL'><center id='Kz3rL'></center></pre></bdo></b><th id='Kz3rL'></th></span></q></dt></tr></i><div id='Kz3rL'><tfoot id='Kz3rL'></tfoot><dl id='Kz3rL'><fieldset id='Kz3rL'></fieldset></dl></div>

                  <tfoot id='Kz3rL'></tfoot>
                  <legend id='Kz3rL'><style id='Kz3rL'><dir id='Kz3rL'><q id='Kz3rL'></q></dir></style></legend>

                  <small id='Kz3rL'></small><noframes id='Kz3rL'>