Debugging PHP Extensions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
santosj
Forum Contributor
Posts: 157
Joined: Sat Apr 29, 2006 7:06 pm

Debugging PHP Extensions

Post by santosj »

I'm having difficulty debugging a PHP extension in Visual Studio and Windows (as a DLL). The resources I've found that describe how to attach the DLL to PHP don't seem to work in my case (using both Visual Studio 2005 Professional and Visual Studio 2008 Express). The issue is that I have no idea where in the 500 line PHP extension the issue occurs and I don't want to have to track it down using commenting out techniques. It would be a lot faster moving forward to debug the extension as part of PHP. This isn't entirely easy on Windows and I don't know how to do debugging on Linux.

Has anyone built a PHP Extension on Windows using Visual Studio (or really any compiler will do as long as I can debug the PHP extension). It would be most good, if you would like the source code, then I can give the location of it as well.
Post Reply