10 Replies Last post: Mar 4, 2013 10:16 PM by Eitay Zilbershmidet  
Eitay Zilbershmidet Newbie 6 posts since
Feb 22, 2013
Currently Being Moderated

Feb 22, 2013 11:27 PM

Change path for xdebug

Hello

 

When I'm running my scripts I get this error:

 

Failed loading C:\Program Files\iis express\PHP\v5.2\ext\php_xdebug-2.1.0-5.2-vc6-nts.dll

 

I'd like the change the path since it's not right.

I think this should be that path:

 

C:\wamp\bin\php\php5.4.3\ext (I have the xdebug file there).

 

I installed Wamp and uninstall my iis server.

any idea?

 

 

Thank you

Andriy Bazanov Master 2,637 posts since
May 28, 2010
Currently Being Moderated
Feb 23, 2013 12:06 AM in response to: Eitay Zilbershmidet
Re: Change path for xdebug

Well ... it should be configurable through php.ini (unless WAMP use another files ... e.g. php.conf or whatever).

 

Start with searching your harddrive for all php.ini files and go from there

Andriy Bazanov Master 2,637 posts since
May 28, 2010
Currently Being Moderated
Feb 24, 2013 9:45 PM in response to: Eitay Zilbershmidet
Re: Change path for xdebug

Editing correct php.ini .. or providing correct version of xdebug extension has nothing to do with PhpStorm.

 

PhpStorm is an IDE that can execute php script using the php installation that YOU have configured and pointed to in PhpStorm settings.

 

I changed all the php.ini path to the right (I guess) path.

But now I get this error:

 

"Failed loading c:/wamp/bin/php/php5.4.3/zend_ext/php_xdebug-2.2.0-5.4-vc9-x86_64.dll"

How that line looks like in php.ini?

Does that xdebug.dll compatible with your PHP version (x32 or x64 bit; thread-safe or no-thread-safe ect)?

 

I have the cdebag file (where it should be) also here:

Unfortunately I have no idea what "cdebag" is

Andriy Bazanov Master 2,637 posts since
May 28, 2010
Currently Being Moderated
Feb 24, 2013 10:59 PM in response to: Eitay Zilbershmidet
Re: Change path for xdebug
I think that I'll try to make a fresh installation for everything. sometimes it's the best thing to do

Good idea -- I agree with this (especially if you have multiple "packages" installed simultaneously)

 

From your original post: C:\Program Files\iis express\PHP\v5.2\ext\php_xdebug-2.1.0-5.2-vc6-nts.dll -- this is not-thread-safe build (which is only one that can be used with IIS) and it seems to be x32-bit

 

From your last post: C:\wamp\bin\php\php5.4.3\ext\php_xdebug-2.2.1-5.4-vc9-x86_64.dll -- most likely (based on file name) this is thread-safe version, which most often used with Apache (plus, this one looks to be x64-bit).

 

You should check all details (from php_info() (or php -i from command line) output) and decide what version/architecture you are having there .. and download correct xdebug.dll from official site http://xdebug.org/download.php

Andriy Bazanov Master 2,637 posts since
May 28, 2010
Andriy Bazanov Master 2,637 posts since
May 28, 2010
Currently Being Moderated
Feb 27, 2013 3:43 PM in response to: Eitay Zilbershmidet
Re: Change path for xdebug

When I try to use the debuger I get this: "'xdebug' extension is installed. Check configuration options. Show      phpinfo." and also "Cannot parse configuration file"

Not sure what you are talking about -- can you illustrate it with some screenshot and how do you get there/what you are doing?

 

I added the bookmarks to my browser (like in the tutprial) but where should I select the path for the debager (I think that this is the problem...)?

What do you mean by "path for the debugger"? What page to debug .. or something else? As for me, those instructions in "zero-configuration debug" article are pretty clear (possibly because I had previous debugging experience).

 

 

My suggestion --  forget about debugging web page for a second. Make sure you can debug CLI script first ("Run | Edit Configurations..." -- create an entry of "PHP Script" type). If xdebug is configured properly and you can debug such script in CLI mode, then it will be much easier to figure out what may be wrong with web page debug.

More Like This

  • Retrieving data ...