简体   繁体   English

用PHP Storm调试无法击中Drupal模块

[英]Can't Hit Drupal Module with PHP Storm Debugging

Im trying to hit a module from Drupal with PHP Storm and xdebug. 我试图用PHP Storm和xdebug从Drupal中找到一个模块。 I can hit the index.php file, but not this module. 我可以打index.php文件,但是不能打这个模块。 Any clue? 有什么线索吗?

zend_extension = "c:/wamp/bin/php/php5.3.13/zend_ext/php_xdebug-2.2.0-5.3-vc9.dll"

[xdebug]
xdebug.remote_enable = On
xdebug.profiler_enable = On
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
xdebug.remote_host = "localhost"
xdebug.remote_port = 9000
xdebug.remote_handler = dbgp

When I try to validate remote environment from the debug/servers section I get "Failed to execute validation script". 当我尝试从调试/服务器部分验证远程环境时,出现“无法执行验证脚本”。

Not sure what happened but today it started working. 不知道发生了什么,但今天它开始起作用。 I believe I had the wrong module file open, which was from the website. 我相信我打开了错误的模块文件,该文件来自网站。 PHP Storm adds external libraries that contain the same code, but if I update one it wont update the other file. PHP Storm添加了包含相同代码的外部库,但是如果我更新一个库,则不会更新另一个文件。 So I updated the external library file with breakpoints and confirmed it's working. 因此,我使用断点更新了外部库文件,并确认它可以正常工作。

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

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