How does the debugger "know" where to get the debug source?

I was having problems with PhpStorm not debugging my code, and thought looking at phpinfo() might help.

Ironically when I tried to run a phpinfo() script in my browser it jumped into the debugger. :^O

It seems that the debugger knew where to find that script, but not my main application source.

I'm using IIS on my dev machine, and one difference is that the phpinfo() script was in my c:\web directory, which is my root for localhost.

My application is in a separate directory under c:\dev (e.g. c:\dev\app\) which is set up as a virtual directory in IIS.

I figure that either XDebug or PHPStorm needs to be told this somehow, just not sure where.

Any help apprecated.

2 comments
Comment actions Permalink

Hmmm, after making a few changes and then undoing them, and restarting everything it just started working.  Unfortunately I no longer know which step made the difference.

0
Comment actions Permalink

Hello Jonathan,

I figure that either XDebug or PHPStorm needs to be told this somehow, just not sure where.


See 'Server Configuration' section from http://blog.jetbrains.com/webide/2011/03/configure-php-debugging-in-phpstorm-2-0/

Thank you for feedback!

0

Please sign in to leave a comment.