Debugging PHP on IIS

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
rlrcstr
Forum Newbie
Posts: 2
Joined: Sun Jan 27, 2008 6:20 pm

Debugging PHP on IIS

Post by rlrcstr »

I need a little guidance in setting up for properly debugging. I didn't see a forum specifically for debugging, so hopefully this is an appropriate spot.

I'm a seasoned developer, but new to PHP... I'm running the latest builds on a Windows Vista-64 Bit machine. I'm using phpDesigner2008 as my IDE.

I can't quite figure out how to properly debug my web site. The dev IDE creates temp files when trying to debug and it creates a bit of a problem when context switches to other pages or when trying to debug across several code files, as it only loads the code for the file you're currently working on. My index.php has includes for header and footer files as well as others and some of those files also require additional files.

I'm used to debuggin ASP .Net stuff from within Visual Studio, so perhaps I'm just missing an important detail or two.

But is it possible to setup XDebug so that it will run against the ISAPI .dll that IIS is running. And still be able to debug within the IDE? (I guess it's like the equivalent of attaching to a process for debugging in Visual Studio.)

I've googled and read for hours, but I don't see anythign that really talks about this.

Thanks.

J
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Re: Debugging PHP on IIS

Post by JAM »

Personally, I'm not familiar with IIS at all, so perhaps I shouldn't be responding...
But what does the help files / website of phpDesigner2008 say about debugging? Most IDE's that support it, have more or less good sections about the subject.
rlrcstr
Forum Newbie
Posts: 2
Joined: Sun Jan 27, 2008 6:20 pm

Re: Debugging PHP on IIS

Post by rlrcstr »

Perhaps most of them do... There's a bunch of info on setting up XDebug and the like, but not much ino on the actual process. And nobody really talks about IIS at all. Seems with PHP, Apache is just assumed.

J
Post Reply