Problem with breakpoint |
|
I made some tests so I can be clearer.
Consider having three script: index.php redirect to login.php login.php start session and redirect to main.php The code is the following: index.php
login.php
main.php
Now, if I place a breakpoint in login.php DBG stops correctly. But if I place a bp in main.php DBG doesn't stop, even if "Stop on the first line after run" is enabled. Nico |
||||||||||||||||||
|
|
I've found why the problem happens: all is due to the way I write header.
In the first case I wrote:
and all works. In the second case I wrote:
and this causes the problem. Now, is there a way to let dbg work properly without change the way I write header? Thank you |
||||||||||||||||
|
Site Admin
|
Debugger is not involved in the redirection and it doesn't matter if you redirect with domain name or not. What matters is if you redirect to the same domain or not. Debugger continues debug sessions automatically if
a) debug session is checked in Tools->Settings->Debugger and b) your script redirects or submits to the same domain It's done with DBGSESSID cookie and if you can't get debug session to continue on redirection, check if this cookie is properly propagated and if php opcodes are not cached with APC or eAccelerator or something else. If your case doesn't meet a) and b), you have to include DBGSESSID variable to the redirection URL. Check FAQ forum on how to do it. |
||||||||||||
|
|
This is the cause. I fixed the problem changing project properties. Thanks |
||||||||||||||
|
Problem with breakpoint |
|
||
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