How do I debug my plugin?
-
OK, I’m building my own plugin. It’s still raw code & in fact not all of it has been written. I wanted to start debugging the code that has been written so far, so I did a little research.
I’m testing this on my MacBook running MAMP. It has a copy of my web site from my host on it. I’m running WordPress MU 2.8.1 in both environments. I downloaded & installed XDebug & MacGDBp. I’m using Smultron for writing the code, but I can switch to another IDE if it’s better.
Well, after clicking “Activate Site Wide”, the admin screen won’t even show display. Blank screen. When I move my plugin’s folder out of the wp-content/plugins folder, I get the admin screen back. So I know it’s my code that’s the problem. I just don’t know what I’m doing with the debugger.
The debugger won’t let me open my source file, so I can’t set a break point. Almost everything under the File menu is grayed out.
Any ideas?
Thanks
Tony
- The topic ‘How do I debug my plugin?’ is closed to new replies.