初试NetBeans

in 笔记本子

自兴趣转到php以来,一直在寻求一款适合自己的编辑器:
zend studio/phped/phpdesigner2008/vs.php/netbeans 6.5
最终决定使用netbeans
zend studio:phper都推荐用它,但我总感觉使用起来总是有很多不便。
phped:用来写php不错,但功能比较简单,调试也不是很方便,属于比较中庸的那种。
php designer2008:打开文件太慢了。。。。
vs.php:用visual studio这个ide来写,但前提是要装visual studio。调试起来不错,但有时智能提示不够强,方法/类的定位能力也有待提高。
netbeans 6.5:对php的支持越来越强,在调试上不亚于vs.php,而且插件比较多,智能提示较强。
但netbeans对中文字体支持不够好(这点可以解决),而且要装jdk才能运行netbeans,在使用netbeans过程中,java.exe这个进程的内存占用也比较高。
实时纠错

代码导航

点击方法名即可快速定位到该方法

单步调试

如何启用netbeans的调试功能?
1 首先需要php_xdebug-2.0.0-5.2.2.dll的扩展,这个http://www.xdebug.org/有下载。
2 将php_xdebug-2.0.0-5.2.2.dll放到php安装目录下的ext目录中。
3 更改php.ini,加上以下配置:

zend_extension_ts=”D:PhpServerPHP5extphp_xdebug-2.0.0-5.2.2.dll”
[XDebug]
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.auto_trace = 1
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.idekey=default
xdebug.profiler_enable_trigger = 1
xdebug.trace_output_dir=”D:PhpServerXDebug”
xdebug.profiler_output_dir=”D:PhpServerXDebug”
xdebug.profiler_output_name=”cachegrind.out.%s.%H.%u.profile”

重启apache即可。

10 Comments

10 Comments

  1. 用phped,但没用过VS下的VS.PHP :)

  2. @peter:
    vs.php也不错,如果也做.net项目的话。
    否则光为体验vs.php而去安装vs2008有点得不偿失。

  3. 你是.net转php,我是php转.net。
    我一直用zend,前几天试用netbeans,觉得比zend慢很多啊。

  4. @wolong:
    我的试用是:netbeans优于zend^_^

  5. 这玩意不是写java app的吗?

  6. @overred:
    有for php的

  7. 其实那款叫apanta的东西才好用…NB手感稍嫌生硬,zend又过于占用资源,写JS的时候就苦闷了…apanta(误 这东西做起来就如行云流水一般啊…

  8. 呵呵。pr更新咯

  9. 我猜一下,你可能会在密集测试一周后转回zs

  10. @citywill:
    这么肯定?
    我坚持一下。^_^

Leave a Reply

Using Gravatars in the comments - get your own and be recognized!

XHTML: These are some of the tags you can use: <a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>