NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Exceptions


Joined: 29 Jul 2005
Posts: 7
Reply with quote
Is there any setting in PHPEd that changes behavior when hitting an exception?

Right now, when it hits one, it reloads the page, and keeps going without any feedback.

Confused

I'm using PHP 5.0.4 and PHPEd 3.3.3
View user's profileFind all posts by jjirsaSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8335
Reply with quote
Please submit a short example in php that will replicate the problem.
TIA.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 13 Jun 2006
Posts: 17
Reply with quote
Using: PHP 5, PhpED 4.6, Prado 3.3.
The fun starts when I set the breakpoint at any point of the project.
Debugger stops and when I try to step to the next statement it simply
jumps to the end of index.php (the starter). It shows the debug
trace which is always the same:

Code:

#0 C:\PROJECTS\*********\Workspace\********\framework\pradolite.php(3358): TComponent->__get('_rf')
#1 dbg_eval()(1): TControl->__get('_rf')
***********************************************************
#13 {main}


The deal is the debugger runs it's function dbg_eval that seems to be an extension of PHP.
It's presumably used to retrieve breakpoint environment information. For some reason php ed
always attempts to automatically retrieve this '_rf' variable of $this.

Inside of this dbg_eval call all breakpoints are useless. However, exceptions work pefectly...

Any workaround? Maybe, debugger settings?


Last edited by sergeymorkovkin on Sun Sep 24, 2006 2:23 am; edited 1 time in total
View user's profileFind all posts by sergeymorkovkinSend private messageICQ Number


Joined: 13 Jun 2006
Posts: 17
Reply with quote
Solved: Variable $this->_rf was in the watch list. However, exception inside of dbg_eval is still an issue.
View user's profileFind all posts by sergeymorkovkinSend private messageICQ Number
Site Admin

Joined: 13 Jul 2003
Posts: 8335
Reply with quote
If you put a statement like $this->someproperty and this someproperty works through setters/getters, the getters will be called. If they raise an exception, it may cause further problems like what you experienced.
dbg_eval is not used for breakpoints, it only evaluates whatever you have in the Watches window and does so each time you perform stepXXX in the debugger.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 13 Jun 2006
Posts: 17
Reply with quote
Thank you, Dmitry.

It's all clear now.
View user's profileFind all posts by sergeymorkovkinSend private messageICQ Number
Exceptions
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