Fixed
- Detect the PyCharm debugger port when the interpreter runs with options
before the script, such aspython -X pycache_prefix=... pydevd.py. The
layer looked for the script right after the interpreter, so it missed the
port and sent the debugger connection to the target, leaving the IDE stuck
waiting to attach.
#4776