I've installed the latest VS.Php 2.8 on Visual Studio 2008.
I'm running an external apache 2.2.3.0 with PHP 5.1.6, and XDebug 5.1.7.7.
Visual studio doesn't stop at the breakpoints I set in index.php (the startup file for the project).
I've set the xdebug log and it looks like the breakpoints are being set in xdebug in the proper places.
I get no errors in the debug console in VS.
Here's the relevant lines in XDebug.log:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Log opened at 2010-02-08 21:45:41
->
<- feature_get -i 1 -n supports_async
->
<- feature_get -i 2 -n notify_ok
->
<- stdout -i 3 -c 1
->
<- stderr -i 4 -c 1
->
<- breakpoint_set -t exception -x "Fatal error" -i 5
->
<- breakpoint_set -t exception -x "Parse error" -i 6
->
<- breakpoint_set -t exception -x "Unknown error" -i 7
->
<- breakpoint_set -i 8 -t line -f file:///C:/xampplite/htdocs/ConicView/index.php -n 2 -r 0
->
<- breakpoint_set -i 9 -t line -f file:///C:/xampplite/htdocs/ConicView/newsite/index.php -n 4 -r 0
->
<- run -i 10
->
->
<- stop -i 11
->
Log closed at 2010-02-08 21:45:41
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Here is the debug console output in Visual Studio:
Logging disabled (QUIET_MODE set)
**********************************************************************
Start debug session 1
----------------------------------------------------------------------
----------------------------------------------------------------------
The thread 0x1 has exited with code 0 (0x0).
**********************************************************************
**********************************************************************
Start debug session 2
----------------------------------------------------------------------
----------------------------------------------------------------------
The thread 0x2 has exited with code 0 (0x0).
**********************************************************************
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I've searched the forum and tried everything mentioned but nothing helped.
Maybe it has to do with "Logging disabled (QUIET_MODE set)"?
I've made sue that the process "vsphp_dbg.exe" is running once.
Any ideas?
Thanks!
tomeraz says:
Can I use any php_xdebug.dll or do I have to use the one in the VS.PHP folder?
md123 says:
Do a phpinfo() and look at the method used to build your php (VC6 or VC9) then go to the Xdebug website and read carefully which version you should use: it must match *exactly* the compiler used for your php binary AND php version
tomeraz says:
What am I looking for in phpinfo?
I searched for the phrase "vc" and it doesn't exist. The only "visual studio" phrase is of an environment variable because I have VS 2008 installed.
juanc says:
How are you enabling xdebug in your php.ini file?
tomeraz says:
extension=php_xdebug.dll
[XDebug]
xdebug.idekey = vsphp
xdebug.remote_enable = 1
xdebug.remote_port = 9000
xdebug.remote_autostart = 1
xdebug.remote_log="c:\Logs\XDebug.log"
xdebug.remote_host="localhost"
I also tried zend_extension=php_xdebug.dll and zend_extension_ts=php_xdebug.dll but they didn't manage to load xdebug at all (checked by phpinfo()).
juanc says:
You need to use zend_extension_ts for PHP versions before 5.3, or breakpoins won't work.
Make sure your version of XDebug matches the version of PHP you are using including one that is thread safe or not, and uses the correct VC runtime. For PHP 5.1 you probably are using VC6.
Juan
tomeraz says:
I changed 'extension' into 'zend_extension_ts'.
Now XDebug doesn't load at all on apache.
It only loads if I use 'extension' and not 'zend_extension' or 'zend_extension_ts'
I'm using:
Apache 2.2.3 (in Xampp 1.5.4a).
Php 5.1.6
XDebug - php_xdebug-2.0.3-5.1.7.dll.
Should these run ok or do I need to change something?
tomeraz says:
Looks like the only way php_xdebug.dll will load using zend_extension_ts is if I type the dll's full path.
Before I tried it with just the dll name and it didn't work.
Cheers!