This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1 Replies Last post: Oct 5, 2013 9:09 PM by Andriy Bazanov  
Greg Gum Newbie 5 posts since
Oct 5, 2013
Currently Being Moderated

Oct 5, 2013 6:50 PM

Error Loading PHP Debugger

(Using the latest pre-release version)I want to debug a PHP Script.In File | Settings | PHP I have an interpreter set for version 5.5.  The path to the exe is: C:\Program Files (x86)\PHP5.5  This is also where the INI file is for 5.5.However, when I debug a script with phpinfo(), it shows that the wrong INI file is being used: Configuration File (php.ini) Path => C:\Windows  Loaded Configuration File => C:\Program Files (x86)\PHP\php.ini   This is the path to an older version (5.3.6)How do I tell PHP Storm to use the ini file in 5.5?Greg
Andriy Bazanov Master 3,641 posts since
May 28, 2010
Currently Being Moderated
Oct 5, 2013 9:11 PM in response to: Greg Gum
Re: Error Loading PHP Debugger

Hi there,


Few possible ways to specify what ini file to use:

1) Define PHPRC environment variable (or another/similar way, e.g. [HKEY_LOCAL_MACHINE\SOFTWARE\PHP] registry key etc) and point to correct folder where ini file is located (will affect whole system; may require restarting your PC) --

2) Pass exact path to ini file via -c <ini file> parameter -- line.options.php  (in PhpStorm you can pass it as part of Run/Debug Configuration -- "Interpreter Options" field)

More Like This

  • Retrieving data ...