vscode+xdebug+cli 带参数配置

注意事项看评论。

 

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

php .\index.php  .\test.php -o .\test_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
posted @ 2020-01-15 20:20  花自有道  阅读(365)  评论(1编辑  收藏  举报