I'm testing VS.Php.
I'm encountering a situation where I get "The breakpoint will not currently be hit. No symbols have been loaded for the document."
Situation:
1) VS.Php 2.10 on Win 7 (32 bit) directory attached to pre-existing web site (not a directory under localhost). Attached using VS.Php add a IIS site.
2) IIS 7.5 (so FastCGI), app runs it's own FastCGI pool. Site running before VS.Php installed.
3) Custom PHP.INI required to enable curl and set a date.timezone. It's in the directory with the PHP code. I uncommented / modified existing lines in the ini file supplied with PHP 5.3.5, which I'm using.
4) XDebug. I've tried both PHP debugging and combined JS and PHP, neither works.
5) I listed curl and datetime in modules, php pages in references.
6) Interface is not exactly the same as in tutorials I've watched.
7) VS 2010. (Everything patched up to date.)
8) Running from VS.Php menu item.
9) I've tried restarts of both VS and the OS.
The pages are working during debug as expected but no breakpoints are hit.
What can I do to hit the breakpoints?
MikeGale says:
include_path, extension_dir and zend_extension look good.
juanc says:
Mike, most likely you don't have XDebug configured in your php.ini file.
This tutorial while is for WAMP servers, also explain how to enable XDebug in your php.ini file:
https://www.jcxsoftware.com/jcx/xampp-howto
Thanks,
Juan
MikeGale says:
Hi,
These are the settings in php.ini (placed in the virtual directory)
;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;
[XDebug]
xdebug.idekey = vsphp
xdebug.remote_enable = 1
xdebug.remote_host = 127.0.0.1
xdebug.remote_port = 7870
xdebug.remote_autostart = 1
;xdebug.remote_log = "...\xdebug.log"
Which looks the same as the article.
I have the log commented out. Would enabling it give me any additional insight.
I'm moving ahead with the work without VS.PHP but would still like to give it a try.
MikeGale says:
I've just checked the PHP versions in the main site and in the VS.PHP virt dir.
The main site is 5.3.10 the virt dir 5.3.5. Is that going to cause any problems?
(I'm not getting an email notification of posts in the thread. How do switch that on?)
juanc says:
If you enable the remote_log option, is it logging anything?
Juan
MikeGale says:
(I don't know how to set up automatic email notifications so this reply is later than I'd like.)
I moved away from the IIS version after my previous post. Started using the Apache version, which did what I expected.
I've found though that it doesn't work if I'm also debugging a .NET project in the same solution. (So will need to debug the two parts in separate sessions.)
Don't currently plan to return to the IIS version on this project.
juanc says:
You can do .Net and PHP on the same session.
See this tutorial:
http://www.jcxsoftware.com/jcx/vsphp/tutorials/dotnet_debugging
Juan
MikeGale says:
Thanks for the link.
I'm going the other way PHP calling to a .NET WCF web service.
There's an added issue here. I'm using .NET 4 with a configuration that doesn't work with the debugger. (The bug is fixed in .NET 4.5.) I had some great support from Microsoft who discovered a technique that makes it debuggable. Unfortunately my attempts so far haven't found a way to use that in this case! (though your link suggests that it might in fact be possible.)
Another issue is that I'm passing the http traffic through a debugging proxy so that I can inspect everything that goes out on the wire. (It's best viewed in RAW format.)
This has taken long enough so I'll go ahead the way that I know works.