NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Debugging problems & questions


Joined: 21 Jan 2007
Posts: 1
Reply with quote
hello,
i've some problems with the debugger:

1) Breakpoints are skipped
("Stop in the first line after run" in Debugger Settings is disabled.)
Code:
<?php
  for($i=0;$i<=10;$i++){
      echo $i; 
  }

//here i've set a breakpoint
 
  for($i=0;$i<=10;$i++){
      echo $i; 
  }
?>


ok, when i run this in debug mode, it just skips the breakpoint, executing the whole script ):

2) Skip to cursor not working
- "Stop in the first line after run" in Debugger Settings is now enabled.
i start the debugger, set the cursor where i before had set the breakpoint (which i meanwhile removed),
then i use "run to cursor" - same like with the breakpoint: script is executed completely.

some notes:
- using the current (trial) version of phped
- in some other scripts using a breakpoint works, so my settings have to be ok
- using the internal webserver and internal ie browser

...and a question:
how can i jump to the next breakpoint?
lets say i've "Stop in the first line after run" in Debugger Settings enabled, then i'm in the first line of the code, now i don't want to run through every line of code but direct to my breakpoint or e.g. i want to jump from the first breakpoint to the second one. how to do that?

thanks in advance Smile
View user's profileFind all posts by srynonameSend private message
Veteran

Joined: 24 Jan 2006
Posts: 311
Reply with quote
Do I understand it correctly that you set the breakpoint on non-executable line, that is on the comment? if that's hte case, PhpED will indeed skip it - as it is a non-executable line. Now, there were some requests to stop on the next executable line - it makes sense, we will implement it shortly, however, right now skipping it (non-executable lines) is expected behavior. I think that setting BP on the executable lines is not too much trouble - is it?
To go to the next break point you can simply hit run in debugger again - it is equal to resume debugging.
Please correct me if I didn't get what you are doing right. Many Thanks!
View user's profileFind all posts by yfaktorSend private message
Debugging problems & questions
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