Warm tip: This article is reproduced from serverfault.com, please click

PhpStorm showing "unvailable" breakpoint whereas execution is suspended

发布于 2020-12-03 15:20:16

I'm sometimes stuck while attempting to debug my code. Debug Session is active, code execution is suspended :

debug is on and smthg gets hit

But I cannot see what really happens, as the breakpoint show "unavailable" ("no parking" symbol):

enter image description here

Does anybody know about this sign ?

I still haven't found any information about it on JetBrains sites... that's why I'm here :-)

(PhpStorm 2020.3, using docker containers (linux containers) with Docker Desktop/ Windows 10)

[EDIT] : I just noticed that "break at first line in php script" seem to be functioning though:

enter image description here

But I have these weird breakpoints instead of red "normal" ones, and an highlighted line.

I tried restarting my docker containers, same issue. This produces seemingly randomly and gets solved after a while ... (reboot ?...)

[EDIT] SOLVED The path mapping (local<->docker) for the root of my project was empty (how did it happen...) in my docker configuration in PhPStorm. I'm not sure how this problem occured, but I'll be able to solve it next time if it's back.

Questioner
St3an
Viewed
0
St3an 2020-12-04 00:50:08

If you try to disable "break at first line in php scripts" you may get the message :

PhPStorm Message about path mappings

17:38 Debug session was finished without being paused It may be caused by path mappings misconfiguration or not synchronized local and remote projects. To figure out the problem check path mappings configuration for 'docker-server' server at PHP|Servers or enable Break at first line in PHP scripts option (from Run menu). Do not show again

In my case, the path mapping for the root of my project was incomplete "Absolute path on the server" was emtpy. I don't know how it happened but you could check :

In PHP | Servers

PHP|Servers