注册 登录
编程论坛 PHP技术论坛

问题 netbeans+xdebug如何配置?

shenglaigudu 发布于 2010-04-06 20:19, 1264 次点击
   php apache 等都已经安装好,xdebug也按照规定安装到了的响应的php目录中,并在php的配置文件php.ini中添加了如下代码:

  修改php.ini,在末位添加如下内容:
[php]
zend_extension_ts=" D:\Wamp\php\ext\php_xdebug-2.0.2-5.2.5.dll"
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
[/php]
  我在netbeans下新建了个工程,并写了个index.php文件,可在调试时,总是连接xdebug,这个过程中ie会提示服务找到网页。
  还有工程运行时也会出现ie打不开网页的情况,ie中的地址栏是“http://localhost/PhpProject1/index.php?”
  我还想知道这个netbeans是如何与apache关联上的?它不是需要用到apache的服务器,才能运行程序吗?
  我用netbeans建立的PhpProject1不是在apache的根目录下,如果把index.php放在apache的根目录下测试,可以访问到这个网页!
0 回复
1