首页 > 其他 > 详细

vscode+xdebug+cli 带参数配置

时间:2020-01-15 21:01:22      阅读:118      评论:0      收藏:0      [点我收藏+]

注意事项看评论。

 

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

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

vscode+xdebug+cli 带参数配置

原文:https://www.cnblogs.com/tyonly/p/12198604.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!