This Question is Not Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
8 Replies Last post: Mar 29, 2012 7:21 PM by Tiago Oliveira  
Tiago Oliveira Newbie 5 posts since
Mar 29, 2012
Currently Being Moderated

Mar 29, 2012 1:12 PM

PhpStorm 3.0.3 + Xdebug 2.2.0RC1 + IIS 7.5

Hello all,

 

I've recently bought PhpStorm and I'm trying to configure Xdebug for my project but I can't seem to get it to work.

I already went through the tutorials "Zero-configuration debugging with XDebug and PhpStorm 2.0" and "Configuring PHP debugging in PhpStorm 2.0" without success.

My project files are located under "C:\inetpub\wwwroot\<project_name>".

My PHP version is 5.3.10.

My Xdebug fle is php_xdebug-2.2.0RC1-5.3-vc9-nts.dll

I've also installed the extension "Xdebug helper 1.0.1" on Google Chrome latest stable version.

This is what I get when trying to do a debug session:

 

iis_error.png

 

Can anyone help me please? This is kinda urgent.

Thanks in advance.

 

Regards,

Tiago

Andriy Bazanov Master 3,991 posts since
May 28, 2010
Currently Being Moderated
Mar 29, 2012 1:42 PM in response to: Tiago Oliveira
Re: PhpStorm 3.0.3 + Xdebug 2.2.0RC1 + IIS 7.5

Hi Tiago,

 

  1. Is PHP working at all (you can request the page and see the results) when no xdebug loaded in your php.ini?
  2. Is PHP working fine when xdebug is loaded in your php.ini and you are not debugging (xdebug is just there)?

 

If there are problems with the above:

  • please show your php.ini (especially xdebug-related entries)
  • if possible (if something works)  -- provide output of phpinfo();

 

Possible things why this may happen:

  1. You included/loaded some extension that fails to load (requires additional DLL; file permission issue etc)
  2. xdebug extension is not loaded correctly (it's not ordinary extension so needs to be loaded differently)
Andriy Bazanov Master 3,991 posts since
May 28, 2010
Currently Being Moderated
Mar 29, 2012 2:38 PM in response to: Tiago Oliveira
Re: PhpStorm 3.0.3 + Xdebug 2.2.0RC1 + IIS 7.5

From what I see you have more than one debugger enabled: xdebug and dbg.

 

Xdebug must be the ONLY debugger in order to work properly (the same happens if you have xdebug & zend debugger loaded simultaneously).

 

Please comment this line and recycle your app in IIS:

extension=php_dbg.dll

 

 

On related note (not related to your current situation), consider having these (officially recommended) settings:

cgi.force_redirect = 0

cgi.fix_pathinfo = 1

fastcgi.impersonate = 1

Andriy Bazanov Master 3,991 posts since
May 28, 2010
Currently Being Moderated
Mar 29, 2012 3:31 PM in response to: Tiago Oliveira
Re: PhpStorm 3.0.3 + Xdebug 2.2.0RC1 + IIS 7.5

Double check that 2nd debug extension is now inactive (check phpinfo() output -- no real need to post again here).

 

Otherwise I have no other real ideas except trying stable version of xdebug (2.1.4 instead of your current 2.2.0 RC) and trying debugging very basic simple script first (no db connections etc -- to see where problem may be).

 

If you can -- try debugging that simple basic script in CLI mode first (PHP Script configuration type) to see if it works there.

 

No other real ideas (it's hard for me to tell what else may be wrong from over here).

Andriy Bazanov Master 3,991 posts since
May 28, 2010
Currently Being Moderated
Mar 29, 2012 7:23 PM in response to: Tiago Oliveira
Re: PhpStorm 3.0.3 + Xdebug 2.2.0RC1 + IIS 7.5

You can try enabling xdebug logs -- maybe it will tell at what step it crashes (since I have not received clear answer for that question/suggestion with debugging in CLI mode) -- responsible PhpStorm dev may tell if it is xdebug issue or PhpStorm etc.

More Like This

  • Retrieving data ...