NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[fixed] debugger has stopped evaluating $this


Joined: 09 Aug 2006
Posts: 26
Reply with quote
debugger has stopped evaluating $this

to test this I can add a line in a class method that reads

$a = $this->stockType

break after that line and evaluate $a using the immediate window and I get..

$a
: string = Tube

which is correct but when using the $this keyword in the immediate window I get..

$this->stockType
: Error -- Error: E_ERROR (Using $this when not in object context)

it's

PHP Version: 5.1.6
Web Server: Apache/2.2.3 (Red Hat)
Platform: Linux-glibc-2.5/x86_64

with most up to date versions of PhpEd (17027, 64 bit)
DBG (PHP DEBUGGER) Version 8.1.6

thanks
Mike
View user's profileFind all posts by mike_wainSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
First of all, dbg 8.1.6 is outdated. You need to update it. Then check what you have in Watches window. Statements like unset($this) or $this=NULL would definitely make render $this undefined. Check if you have conditional breakpoints with similar things. Try to cleanup Watches and Breakpoints, and reproduce with very very simple script.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 09 Aug 2006
Posts: 26
Reply with quote
Hi dmitri,

thanks for the response - I've updated the debugger to 8.1.9 now, cleared all breakpoints, watches etc and tested with a very simple script to demonstrate the problem.

screenshot here.
http://bluesock.co/test.png

any help appreciated.

cheers
Mike
View user's profileFind all posts by mike_wainSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Your code works fine in PhpED:

It's hard to guess what should be done to screw up php so it wouldn't work.
Can you show phpinfo()?

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
I'd also suggest using a different version of PHP. Version 5.1.6 is way too old and was end of life in Aug-2006.

I have myself seen strange debugger issues that were specific to PHP versions. Not saying that's the case, but worth a try.
View user's profileFind all posts by plugnplaySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Switching to higher version may help, but php-5.1.6 is still supported as well as all php versions starting with 4.3, with a very few minor exceptions, like completely broken php-5.2.0 (required minimum is 5.2.3) or php-5.0.0 (required minimum is 5.0.5). Php-5.1.6 under redhat linux should work and I'll check this. Stay tuned.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
problem is reproduced and fixed in dbg-8.1.11. Update is on its way to web site.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
[fixed] debugger has stopped evaluating $this
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