After starting a PHP debug session on my local Windows machine, I reach a breakpoint. There are some local variables visible in the right panel.
After 5 seconds of doing nothing, the variables suddenly disappear and there is a message "Variables are not available". Also, in the small red circle marking the breakpoint within the Editor window, the mini check mark disappears. In the debugger window, the "Resume Program" and "Stop" icons are still active.
At this point, sometimes hovering mouse over the "Variables" tab in the Debug window, or clicking on it, makes the variables come back, but not always. When they come back, it is sometimes only for a few seconds and then they disappear again. When they don't come back, pressing the "Step over" button displays a message "Waiting for incoming connection with ide key x" where "x" is the xdebug key visible in my web browser address bar. The web browser displays a big message that the site is not available at the moment, please try later.
At this point, the "Resume program" button is not active anymore, only "Stop". After presing "Stop" the message says "Disconnected".
This does not happen always, but often (today about 40% of the time, yesterday it happened only a few times). Restarting PhpStorm doesn't improve the situation. I never had these kind of issues using Netbeans. How to deal with it ?