Xdebug with shebang is one line off
I've been debugging in PhpStorm for years, but always web scripts.
Now I'm trying to debug a cli script and found a probable bug: if the script starts with the usual shebang line (#!), the debugger is off by one line, with makes tracing hard and breakpoint missed.
If I remove the shebang, debugging works as usual.
请先登录再写评论。
Hi there,
Enable and collect Xdebug log for such debug session. Then check what lines it breaks at. If it has wrong lines there .. then it should be Xdebug issue.