注意事项看评论。
如果需要带参数调式,需要这样配置。比如:命令行是
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