vscode+xdebug+cli 带参数配置

注意事项看评论。

如果需要带参数调式,需要这样配置。比如:命令行是

php .index.php  .	est.php -o .	est_en.php  

那么需要在配置文件中 这么配置:

        {
            "name""Launch currently open script",
            "type""php",
            "request""launch",
            "program""${file}",
            "cwd""${fileDirname}",
            "port"9179,
            "stopOnEntry":false,
            "args": [
                "test.php",
                "-o",
                "test_en.php"
            ]
        }
 
 
x1
>
<
>>
<<
O
x1
x1
>
<
>>
<<
O
x1
原文地址:https://www.cnblogs.com/tyonly/p/12198604.html