When doing PHPUnit tests, I encountered a problem while "stepping into" my controller function call. This problem occurrs only when debugging PHPUnit tests. When debugging the regular application, there is no problem with stepping into this function.
In the debug "Variables" tab, this message appears in red:
Cannot find file '/2' locally. To fix it set server name by environment variable PHP_IDE_CONFIG and restart debug session.
So I exited PHPStorm, set the environment variable in Windows and launched PHPStorm again, but the error is still there. (typing "set" in the Terminal panel shows PHP_IDE_CONFIG=serverName=localhost). So it didn't help.
It's strange because the method I want to step into is defined in a class in a file that is in the same directory that the method currently being debugged. Also, in the editor, pressing Ctrl-B on the method name opens the file with the method definition. So editor can find the method, but debugger can't.
How to deal with this problem?