Page 1 of 1

Debugging PHP on IIS

Posted: Sun Jan 27, 2008 6:33 pm
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

Re: Debugging PHP on IIS

Posted: Mon Jan 28, 2008 5:15 am
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.

Re: Debugging PHP on IIS

Posted: Mon Jan 28, 2008 11:11 am
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