Php远程CLI调试仅在路径映射中映射文件时有效(phpstorm)

The topic pretty much describes it all. If i dont have file mapped in phpstorm's path mapping the xdebug wont break in it at all. It only breaks at the first line.

Is there any way to configure phpstorm and xdebug on remote server with CLI scripts without mapping each file in phpstrom? There are lots of files to be mapped.

Had the same problem. Had some 2 mapings on deeper files.

Solution: deleted those 2 mappings for files (without that it didn't work), added mapping for top folder.