YASD调试Laravel Octane(Swoole服务) -
我尝试使用YASD调试Swoole Laravel应用程序。开始此存储库时我会遇到错误 https://github.com/denispetrov100/denispetrov100/ 3
laravel.test_1 | 2022-06-24 10:19:44,403 INFO Set uid to user 0 succeeded
laravel.test_1 | 2022-06-24 10:19:44,405 INFO supervisord started with pid 16
laravel.test_1 | 2022-06-24 10:19:45,407 INFO spawned: 'php' with pid 17
laravel.test_1 | Invalid address/ Address not supported: Inappropriate ioctl for device
laravel.test_1 | 2022-06-24 10:19:45,460 INFO exited: php (exit status 1; not expected)
如果我使用主机系统的真实IP,而不是host.docker.internal
设置yasd.remote_host =“ 192.168.65.2”
in docker中\ 8.1 \ yasd.ini
并在VSCODE中打开调试,然后我使用此行堆叠了容器
laravel.test_1 | 2022-06-24 10:51:13,078 INFO Set uid to user 0 succeeded
laravel.test_1 | 2022-06-24 10:51:13,081 INFO supervisord started with pid 16
laravel.test_1 | 2022-06-24 10:51:14,084 INFO spawned: 'php' with pid 17
laravel.test_1 | 2022-06-24 10:51:15,086 INFO success: php entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
,以防万一请关闭调试
laravel.test_1 | [yasd] recv command error, connection closed
laravel.test_1 | 2022-06-24 10:55:04,720 INFO exited: php (exit status 0; expected)
我的开发环境: Windows 10,WSL 2,用于与WSL共享的Windows的Docker桌面。 Docker -compose.yml和Dockerfile来自帆工匠帆:出版
vs代码扩展-PHP调试 启动
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for YASD",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/var/www/html": "${workspaceRoot}"
},
}
]
}
I try to debugging swoole Laravel app with Yasd. I'm getting errors when starting this repo
https://github.com/DenisPetrov100/Laravel-CRUD-SPA-SAMPLE-3
laravel.test_1 | 2022-06-24 10:19:44,403 INFO Set uid to user 0 succeeded
laravel.test_1 | 2022-06-24 10:19:44,405 INFO supervisord started with pid 16
laravel.test_1 | 2022-06-24 10:19:45,407 INFO spawned: 'php' with pid 17
laravel.test_1 | Invalid address/ Address not supported: Inappropriate ioctl for device
laravel.test_1 | 2022-06-24 10:19:45,460 INFO exited: php (exit status 1; not expected)
If I use real ip of my host system instead of host.docker.internal
setting yasd.remote_host="192.168.65.2"
in docker\8.1\yasd.ini
and switch on debugging in VScode, then I get stacked container with this lines
laravel.test_1 | 2022-06-24 10:51:13,078 INFO Set uid to user 0 succeeded
laravel.test_1 | 2022-06-24 10:51:13,081 INFO supervisord started with pid 16
laravel.test_1 | 2022-06-24 10:51:14,084 INFO spawned: 'php' with pid 17
laravel.test_1 | 2022-06-24 10:51:15,086 INFO success: php entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
And in case switching off debugging
laravel.test_1 | [yasd] recv command error, connection closed
laravel.test_1 | 2022-06-24 10:55:04,720 INFO exited: php (exit status 0; expected)
My dev environment:
Windows 10, WSL 2, Docker Desktop for Windows shared with WSL.
docker-compose.yml and DockerFile is from sail artisan sail:publish
VS Code extension - PHP Debug
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for YASD",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/var/www/html": "${workspaceRoot}"
},
}
]
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论