您如何在Netbeans中调试PHP测试文件? [英] How do you debug a PHP test file in Netbeans?

查看:78
本文介绍了您如何在Netbeans中调试PHP测试文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该菜单选项已被我禁用.我可以测试正常,也可以调试正常,但不能同时测试.是可能的,还是菜单选项被禁用,因为它没有为PHP实现.

The menu option is disabled for me. I can test ok and I can debug ok, just not both together. Is it possible, or is the menu option disabled because it isn't implemented for PHP.

我希望我自己创建测试文件时无需通过创建测试文件"过程来启用它,而不是让netbeans来完成.

I'm hoping I don't need to go through the "Create Test files" procedure to enable it as I create the test files myself, rather than letting netbeans do it.

推荐答案

您应该能够像正常项目一样分别调试*Test.php文件.项目的PHPUnit属性页上还有一个设置(至少在NetBeans 7.0中),告诉NB作为PHPUnit测试运行所有以Test.php结尾的文件.

You should be able to debug the *Test.php files individually as you would the normal project. There's also a setting (at least in NetBeans 7.0) on the project's PHPUnit properties page that tells NB to run all files ending in Test.php as PHPUnit tests.

这篇关于您如何在Netbeans中调试PHP测试文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆