NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Breakpoints will not trigger when set in another .php script


Joined: 03 Feb 2008
Posts: 42
Reply with quote
I posted this is the DEBUG section, but I don't know if that is the best place to seek help. I apologize for any trouble caused.

I am using Windows 8.1. In the past PhpED used to trip the breakpoints set in .php files that my main .php file was referencing. In other words I would run a file called file.php which called another .php file like this:

echo "<img border='0' src='file2.php?rx1=$rx1&p1=$ser_L1&hc1=$ser_hc1'>";

In the past I could set breakpoints in file.php and PhpED would trip and I could then debug and single-step, etc.

But now I can no longer do this. What has happened? Has a setting changed? Can anyone please give me a pointer or two as to where to look?

I have always used FireFox as my external browser, but no browser now makes any difference. I just can't get a breakpoint set in a called script to trip.

Thank you.
View user's profileFind all posts by a_edwallSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
The NuSphere DBG module checks cookies and query string parameters so that it knows if it is enabled or not. It would appear the file2.php is not seeing the cookies, which is possible for a variety of reasons and not necessarily any fault of DBG.

You can get file2.php to output the cookies to HTML to confirm if the cookies are set or not. I'm fairly sure cookies should be passed for a src resource.

To check that the debugger is at least working for file2.php you can try two things:

1. In file2.php use the DebugBreak() statement at your breakpoint position. Once a DebugBreak() has been hit, DBG is activated, PhpED gets focus, and then normally additional PhpED breakpoints will also work.

2. Change your src to something like file2.php?DBGSESSID=1;d=1,p=0,c=1&rx1=$rx1&p1=$ser_L1&hc1=$ser_hc1 and see if your PhpED breakpoint works.
View user's profileFind all posts by plugnplaySend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
Just an idea and I could be totally wrong, but if you only get breakpoints on the first page you visit from PhpED and never any other pages, then maybe also check for a cookie blocker. I don't think the PhpED integrated browsers block any cookies.
View user's profileFind all posts by plugnplaySend private message


Joined: 03 Feb 2008
Posts: 42
Reply with quote
Problem solved - somehow the "Debug sessions" checkbox in the Run & Debug - Settings - Default debugger settings window was unchecked.

Now, where do I download the latest debugger file?
View user's profileFind all posts by a_edwallSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
When PhpED is installed, a set of debugger modules is copied to %ProgramFiles%\nusphere\phped\debugger\server

You can also download SSL debugger modules from your NuSphere account, but for most people the above ones will probably be suitable.
View user's profileFind all posts by plugnplaySend private message
Breakpoints will not trigger when set in another .php script
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic