robertbasic / pugdebug

pugdebug is a standalone debugging client for PHP applications that uses XDebug as the debugging engine.
http://pugdebug.com/
Other
73 stars 15 forks source link

pugdebug doesn't see $this #173

Open sthomen opened 8 years ago

sthomen commented 8 years ago

Is pugdebug not able to do object oriented debugging or am I just holding it wrong? I don't seem to see the $this variable.

robertbasic commented 7 years ago

Not sure what's going on, I see $this without problems.

screenshot_2017-01-02_11-25-44

I'll leave the issue open, it might pop up for me in the future.

robertbasic commented 7 years ago

What OS are you using?

sthomen commented 7 years ago

I was using windows against php running in xampp. Just made a small test program and lo and behold there it is. It's been so long that I can't recall what I was debugging at the time, so I'm afraid this kind of peters out here.

robertbasic commented 7 years ago

No worries, even just knowing that it's on Windows helps. I'll look into it more.

Thank you for taking the time to report the bug!

robertbasic commented 7 years ago

Seems to be working fine.

screenshot_2017-01-02_17-59-26

Please reopen the issue with more details if you run into this again.

sthomen commented 7 years ago

So I just saw this again, debugging a Prestashop (1.6.1.0.1) on a windows 2012 R2 server via RDP (don't ask, work) Only occasionally would I have $this in the list, and never when I needed it.

PHP/xdebug runs on that same server with IIS 8.5, nothing special in the configuration as far as I know. I am not in control of this server so I can't really say much more. PHPStorm debugs just fine which indicates that the problem isn't in the environment.

A small test program on the same server showed the same symptoms. Then after a bit I restarted the debug of the test program (stop listening, start listening, reload page) and it got $this.

A thing I noticed was that I had to click "Run" or "Over" once in order for the debugging to begin at all when it was exhibiting the problem, but this may not be consistently true.

pugbug