YASD调试Laravel Octane(Swoole服务) -

发布于 2025-02-10 04:48:59 字数 1887 浏览 2 评论 0原文

我尝试使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文