简体   繁体   中英

Debugging Wordpress with Netbeans & XDebug

I'm trying to debug a Wordpress site with Netbeans using XDebug. I can get it to hit a breakpoint on the index.php page, but it won't break on any other page. Has anyone else run into this issue?

If I debug a concrete5 site or something it works beautifully. So it has to be something with how Wordpress works.

yep. Case-sensitive paths, softlinks, and include paths are the root of the problem. They need to match in your IDE and your webserver. see http://www.noodlecake.com/?p=105

I had the same issue. I made sure I had these 2 lines in my php.ini file.

zend_extension= xdebug.remote_enable=true

Make sure the Xdebug version is compatible with your version of PHP.

Also, check the debug port used for Xdebug. I have my defaulted to 9000

It's absolutely possible to use xDebug with WordPress. Take a look at this writeup: http://mondaybynoon.com/2011/03/28/wordpress-development-xdebug/

I've tryed with eclipse and netbeans na dboth can't debug the wordpress's themes or plugin. They only debug the "core" of wordpress. The only one that can debug your plugin and theme is Nusphere phpEd. Sadly isn't free.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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