How do you debug a PHP test file in Netbeans?

2019-05-23 13:45发布

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.

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.

1条回答
放荡不羁爱自由
2楼-- · 2019-05-23 14:38

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.

查看更多
登录 后发表回答