简体   繁体   English

在NetBeans 7.3中禁用了调试菜单

[英]Debugging menu disabled in NetBeans 7.3

I have for long used NetBeans and Xdebug successfully to debug my PHP code running on a remote test server. 我已经长期使用NetBeans和Xdebug成功调试了在远程测试服务器上运行的PHP代码。 However, after upgrading to NetBeans 7.3, the Debug menu is almost entirely disabled and I cannot set breakpoints anymore. 但是,升级到NetBeans 7.3后,“ 调试”菜单几乎被完全禁用,我无法再设置断点了。

NetBeans调试菜单已禁用。

What could be the cause of this problem? 可能是这个问题的原因?

Some extra info 一些额外的信息

  • If I choose Attach Debugger... I can only select the Java Debugger (JPDA), which is not for PHP. 如果选择“ 附加调试器...” ,则只能选择Java调试器(JPDA),不适用于PHP。
  • If I choose New Breakpoint... I get a form suitable for Java programs, not PHP. 如果我选择New Breakpoint ...,我会得到一个适合Java程序而不是PHP的表格。
  • My project settings in Run Configuration seem fine and unchanged. 我在“运行配置 ”中的项目设置似乎正常且不变。
  • Settings in Tools -> Options -> PHP -> Debugging are Debugger Port: 9000 and Session ID: netbeans-xdebug . 工具设置- > 选项 - > PHP - > 调试的调试器端口: 9000和会话ID: netbeans-xdebug
  • The remote test server's phpinfo page reports that Xdebug is installed: This program makes use of the Zend Scripting Language Engine: Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies with Xdebug v2.1.1, Copyright (c) 2002-2011, by Derick Rethans 远程测试服务器的phpinfo页面报告已安装Xdebug: 该程序使用Zend脚本语言引擎:Zend Engine v2.3.0,版权所有(c)1998-2011 Zend Technologies with Xdebug v2.1.1,版权所有(c)2002- 2011年,作者Derick Rethans

Installing a later version of NetBeans solved the problem. 安装更高版本的NetBeans解决了该问题。 PHP Xdebug debugging now works the way it's supposed to. PHP Xdebug调试现在可以按照预期的方式运行。 So to me this seems like a bug. 所以对我来说,这似乎是一个错误。

To be more precise, I installed NetBeans 7.3.1 and it now lives along NetBeans 7.3 on my HDD as it wasn't removed by the installation process. 更确切地说,我安装了NetBeans 7.3.1,由于安装过程并未将其删除,因此它现在与HDD上的NetBeans 7.3一起存在。 The installation asked whether I wanted to import settings from 7.3. 安装程序询问我是否要从7.3导入设置。 Not sure whether this would corrupt the fresh install I clicked Yes. 不知道这是否会破坏我单击“是”的全新安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM