vscode 调试tinkphp,用xdebug,url中 “/admin/auth.Admin/index”带.的请求就不能访问。直接运行php think run是可以访问的。请问什么问题?该如何配置?还是用别的方法调试php
这个是lanuch.json的配置 {
"name": "Launch thinkphp debug",
"type": "php",
"request": "launch",
"runtimeArgs": [
"-S",
"localhost:8000",
"-t",
"./public"
],
"port": 9003,
"serverReadyAction": {
"action": "openExternally"
}
},
出错提示
Listening to Xdebug on port 0.0.0.0:9003,:::9003 ...
Launching php -dxdebug.remote_enable=1 -dxdebug.remote_handler=dbgp -dxdebug.remote_mode=req -dxdebug.remote_host=127.0.0.1 -dxdebug.remote_port=9003 -dxdebug.remote_autostart=1 -S localhost:8000 -t ./public ...
PHP Development Server
Listening on http://localhost:8000
[Thu Oct 24 17:04:09 2024] [::1]:17907 [404]: /admin/crud.Log/index - No such file or directory
请先登录
https://www.buildadmin.com/senior/server/apiDebug.html
看这个文档
这个只是接口调试,我想要的是php代码断点调试
😃
- 1
前往