Interesting DBG problem on Windows |
Site Admin
|
I believe that DBG is not involved. It does not read files or check their attributes. If you have a breakpoint unresolved, please adjust file mappings and make sure that breakpoint is placed on the line that can be executed. After all check if you have a kind of accelerator/php cache/web proxy etc that might trigger php to bypass normal execution or bypass php at all. To check that look at access log and see the responce code.
|
||||||||||||
|
|
I think you're almost definitely right, it's hard to see how this could be a problem with DBG itself. Can I check with you on a couple of things?
- Since the debugger does stop on breakpoints when the file has been touched, the file mappings must be correct; agreed? - Similarly, the breakpoints are definitely on lines that can be executed; otherwise execution would never stop. Right? That leaves the accelerator/php cache/web proxy/... combo. I'm just using vanilla Xampp, haven't made any configuration changes. Have you experimented with DBG and Xampp running together? More generally, has anybody that is reading this gotten DBG to work with Xampp? What Apache distributions for Windows have people successfully integrated DBG into? Or does it only work with the NuSphere IDE? Curious... |
||||||||||||
|
Site Admin
|
I havn't heard anything like you described so it's probably a new issue.
BUT first, I'd recommend you check if php is really executed at all. If breakpoints are "bypassed", it may happen because nothing was executed and the page were taken from the local cache. Similarly, if you use HTTP PROXY, it may return cached page instead of real php executing. Why don't you check Apache's access log as I suggested before? |
||||||||||||
|
|
I used Ethereal to look at the packets going back and forth between the debugger client and engine, so I knew the local cache wasn't the problem.
I also stepped through the debugger client and saw the responses it got from the engine. If I touch the file the debugger engine responds with a status of ENABLED, then if I try another debugging session it responds with a status of ENABLED | UNRESOLVED. Touch the file again and the cycle repeats. I haven't gotten any new ideas about this, so I'm basically unable to use DBG to debug pages that are served from a Windows machine. It's a bit of a bummer. |
||||||||||||
|
|
don't use the php version that is distributed with xampp, use a version from www.php.net instead.
|
||||||||||||
|
Site Admin
|
ANYWAY, touching the file to get them seen by PHP is not a good solution and LOOKS like a kind of cache is there between php engine and HTTP client (browser). Indeed, you may want to try another PHP distro, like TechPlatform (NuSphere) or original php available from www.php.net.
Also, you may want to check your present php configuration and try to REMOVE modules loaded via zend_extension/zend_extension_ts/extension lines, one by one. |
||||||||||||
|
|
Hi All,
I don't know if this issue is still unresolved or even if my remark is related but I'm using Xampp 1.4.13, PHPEdit 1.2.0.146 and DBG (Listener) 2.11.32. I ran into a problem where DBG worked fine but a debug session wouldn't stop on a breakpoint. After searching all day long I noticed the "[eAccelerator]" in my php.ini. Feeling adventurous (and VERY frustrated) I set "eaccelerator.enable" to "0" (instead of "1"). The debugger now stops on beakpoints nicely. Hope this helps anyone. Bye, Toon |
||||||||||||
|
Site Admin
|
yeah, it's known that such accelerators may prevent code from being stepped by a debugger. You need to switch them off in this case or consult with their developers on the issue.
|
||||||||||||
|
Interesting DBG problem on Windows |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by