Hi,
Breakpoints are not working when I move from one page to the next. I did some testing and it appears that the problem occurs when something gets appended to the URL.
It's an osCommerce site that I'm working on. I set up a test page with this code:
<?php
echo("This is a test on page 1");
?>Page 2
Locations
Then I set a breakpoint on the echo statement and everything works fine. I created a second page much like this one and when I click the link, I drop into the debugger.
When I click the Locations link, it brings me to the page; I drop into the debugger just fine. However it executes the following code:
if (!tep_session_is_registered('customer_id')) {
$navigation->set_snapshot();
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}
The above code redirects me to the login page. It generates the following URL:
http://localhost/SouthwicksPHP/login.php?osCsid=8467b48425724ae11d133653...
And the debugging does not work on this page.
I put the following code in the load event of the body tag:
alert(document.cookie);
I receive the following in the alert:
DBGSESSID=3@clienthost=:7869
I really need to get this working; any ideas on what I can try?
juanc says:
The cookie should say:
DBGSESSID=3@clienthost:7869
instead of:
DBGSESSID=3@clienthost=:7869
See if you kind find where is this changing.
mark bernard says:
Thanks for your reply. I just re-ran the code and I'm getting DBGSESSID=5@clienthost:7689; I think I mistyped in my previous message. So it appears that the cookie is being maintained.
What can I try next?
juanc says:
The next step is to install DebugView (from Microsoft) and look at the traces generated by the debugger. They should give us more information on why is the debugger not stopping on the breakpoints.
mark bernard says:
Thanks for your reply. I just re-ran the code and I'm getting DBGSESSID=5@clienthost:7689; I think I mistyped in my previous message. So it appears that the cookie is being maintained.
What can I try next?