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.

 

 
0
1 comment

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.

0

Please sign in to leave a comment.