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

      2. <small id='ph0aY'></small><noframes id='ph0aY'>

      3. Linux 中的 Netbeans 和 Xdebug

        时间:2023-09-22
      4. <small id='BfmTz'></small><noframes id='BfmTz'>

            <bdo id='BfmTz'></bdo><ul id='BfmTz'></ul>
          • <legend id='BfmTz'><style id='BfmTz'><dir id='BfmTz'><q id='BfmTz'></q></dir></style></legend>

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

                1. 本文介绍了Linux 中的 Netbeans 和 Xdebug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我已经安装了 Xdebug,我可以从 phpinfo() 确认它已正确安装.我已经采取了所有在我 googlenetbeans xdebug 安装等"中提出的网站中给出的所有步骤.

                  I have installed Xdebug, and I can confirm from phpinfo() that it is correctly installed. I have taken all the steps given in all of the sites that come up with I google "netbeans xdebug install, etc".

                  它在 Netbeans 中仍然不起作用.有人可以提供任何建议吗?

                  It still does not work in Netbeans. Is there any advice that someone can offer?

                  这是我的 php.ini 调试部分...

                  Here is my php.ini debug section...

                  [xdebug]
                  zend_extension = /usr/lib/php5/20090626/xdebug.so
                  xdebug.remote_enable = 1
                  xdebug.remote_mode = "req"
                  xdebug.remote_handler = dbgp
                  xdebug.remote_host = 127.0.0.1
                  xdebug.remote_port = 9000
                  xdebug.idekey = "netbeans-xdebug"
                  

                  任何帮助将不胜感激!

                  推荐答案

                  由于我能得到的信息非常稀少,我必须更详细地描述设置.

                  Since the information available to me is very sparse, I have to describe the settings in more detail.

                  Netbeans 和 xdebug 设置.

                  Ubuntu 12.04 LTS 精确穿山甲

                  Ubuntu 12.04 LTS Precise Pangolin

                  应该安装什么.

                  全局设置:

                  工具 -- 选项

                  PHP 设置:

                  使用 phpinfo() 你会得到.. 见下图.

                  With phpinfo() you get.. see below image.

                  只有一个 php.ini 很重要!查看加载的配置文件如果您将 xdebug 条目写入另一个php.ini"文件,请确保再次清除所有这些条目.( xdebug 仅在一个 php.ini 中).另请查看解析的其他 .ini 文件.我们稍后再谈.

                  Only one php.ini is important ! Look at Loaded Configuration File If you wrote a xdebug entry into another "php.ini" file be sure to clear all these entries again. ( xdebug ONLY in one php.ini ). Look also at Additional .ini files parsed. We come to this later.

                  zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"
                  xdebug.remote_enable=1
                  xdebug.remote_handler=dbgp
                  xdebug.remote_mode=req
                  xdebug.remote_host=localhost
                  xdebug.remote_port=9000
                  

                  已解析其他 .ini 文件.
                  添加或控制,只有第一行必须与php.ini"中的相同.(没有")

                  Additional .ini files parsed.
                  Add or controlling, only the first line must be the same as in the "php.ini".( Without " " )

                  确保文件确实在那里!

                  确保 session.save_path 确实存在!

                  控制 xdebug 版本应该等于或更高.(匹配 PHP 版本 5.3.10-1).如果一切都按照本答案中的描述完成,但它不起作用,那么很可能不正确或有缺陷xdebug.so".

                  Control the xdebug version that should be equal to or greater.( Matching PHP Version-5.3.10-1 ). If everything was done as described in this answer, and it does not work, then it is with great probability of an incorrect or defective "xdebug.so".

                  创建一个新的 PHP 项目:

                  项目属性:
                  来源
                  在我们的测试程序中,重要项目文件夹和源文件夹完全相同

                  Project Properties:
                  Sources
                  In our test program, it is important the Project Folder and Source Folder are exactly alike!

                  运行配置

                  开始调试: -- 按下调试按钮

                  当 Netbeans 处于调试模式时,默认浏览器会打开并保持在 正在连接 .. 状态.
                  (如果 Netbeans 没有打开浏览器或无法连接,请返回高级 Web 配置并选择不要打开 Web 浏览器.关闭并重新打开浏览器并输入 URL如下所示)

                  The default Browser opens and remains at Connecting .. stand while Netbeans in debug mode is.
                  (If Netbeans do not open a Browser or can not connect, go back to Advanced Web Configuration and select Do Not Open Web Browser. Close an reopen the browser and type the URL as seen below)

                  检查您的代码.完成调试后,您将只在浏览器中看到一些内容.不要忘记按下停止按钮 .如果你忘记了这个 xdebug 正在运行.

                  Go through your code. You will see only something in the browser when you're done with the debugging. Don't forget to press the Stop Button . If you forget this xdebug is running on.

                  完成:

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

                  上一篇:http://localhost/在 Windows 7 上不工作.有什么问题? 下一篇:如何更改默认的 Netbeans 7 项目目录?

                  相关文章

                  最新文章

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

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

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