0

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.

8
  • 1) What's a "parking symbol"? Sadly I do not know what you mean here. 2) What kind of line/code that is? That symbol alone does not tell me much. The best guess right now -- Xdebug is unable to put a breakpoint there / cannot resolve the breakpoint. Xdebug log should show more info about that (as it normally logs that). 3) if it's not that -- will be good to see breakpoint details (bring popup with ALL breakpoint and bring details for that one). Commented Dec 3, 2020 at 15:24
  • @LazyOne thx 1 I meant what you could find with google images by typing "no parking symbol" 2 any line 3 I've edited my description Commented Dec 3, 2020 at 15:34
  • 1
    Re: "no parking" icon. The icon itself means "Invalid breakpoint" as per IntelliJ Platform UI Guidelines: jetbrains.github.io/ui/resources/icons_list. Enable and collect Xdebug log and look into details there (look for breakpoints for that file & line number and what Xdebug says about them). Commented Dec 3, 2020 at 16:03
  • 1
    So it was missing path mappings. Post your solution as a proper answer (you can mark it as accepted later) -- this will help a lot other users in a similar situation. Commented Dec 3, 2020 at 16:39
  • 1
    Well, you're right that is done :-) Commented Dec 3, 2020 at 16:51

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.