gwomacks / php-debug

Atom Text Editor package for PHP debugging
MIT License
119 stars 31 forks source link

variable in watch window not updating until debugger steps two lines away #292

Open rotorboy opened 6 years ago

rotorboy commented 6 years ago

During execution, debugger stops on breakpoint set at line "X" and highlights it, but after stepping over that line, any variable set on that line that is in watch window does NOT update (or even show as defined, as there is a "?" next to it) until the FOLLOWING line is executed.

Not sure if the debugger is off one line in execution or update of displayed items, but something is off somewhere by "one line"

Thanks

jarrettj commented 6 years ago

Hi,

Good day.

+1, in my case there are no variables set at all under Context window.

Regards. JJ

cchamplin commented 6 years ago

@rotorboy What you're describing sounds a lot like the file being executed by PHP doesn't match exactly with the file in Atom. Can you confirm they are identical?

rotorboy commented 6 years ago

Can confirm identical.

There is a single copy of the file foo.php. I save changes to the file, and set a fresh break point (I used to clear all old breakpoints prior to setting new ones after a save but that option has been removed).

I then execute the file via url entered in browser. Stopping on line after variable $a was set often (but not always) yields ? In watch window: $a ?. Only after stepping over next line is the set value for $a shown.

-Avi

On May 14, 2018, at 11:38, Caleb Champlin notifications@github.com wrote:

@rotorboy What you're describing sounds a lot like the file being executed by PHP doesn't match exactly with the file in Atom. Can you confirm they are identical?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

jarrettj commented 6 years ago

Hey,

I have set the paths correctly as before. Tried restarting the IDE as well. And the files are in sync. Will check later again, on my way home.

Regards. JJ