Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code with XDebug Getting Stuck

I'm using XDebug with Visual Studio Code on Windows 10 to debug PHP.

The debugger works but from time to time it's getting stuck (hits the breakpoint but doesn't respond to step in, step over commands).

I tried switching to XDebug nts version (Not Thread Safe) but it doesn't help. Restarting the web server (Apache) doesn't resolve it either. Sometimes computer restart helps but not always...

Any solution or workaround? (Even a command line that frees this deadlock)

like image 578
Yaron Avatar asked Aug 21 '17 12:08

Yaron


1 Answers

Having out of context debug expressions in the watch window causing the debugger to get stuck.
You should clear the watch window from expressions.
I guess the evaluation of out of context expressions make the debugger to get stuck.

like image 59
Yaron Avatar answered Oct 28 '22 02:10

Yaron