問題が何であるかはわかりませんが、機能しません。
ルーティングは機能しているようです。nginxconfファイルにサーバー名があります。例:test.com。それは動作します。
私のプロジェクトは、マウントフォルダーではなく、ubuntuのルートにあります。
他に何を試すべきかわかりません。
xdebug.ini
[XDebug]
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_port=9002
xdebug.remote_handler=dbgp
xdebug.remote_connect_back=0
xdebug.remote_host=soapboxtest.com
xdebug.idekey=VSCODE
xdebug.remote_autostart=1
xdebug.remote_log=/usr/local/etc/php/xdebug.log
launch.json
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9002,
"log": true,
"externalConsole": false,
"pathMappings": {
"/var/www": "${workspaceRoot}"
},
"ignore": [
"**/vendor/**/*.php"
]
},
クッキーをリクエストする
"XDEBUG_SESSION" => "VSCODE"
Dockerfile
FROM php:fpm-alpine3.11
...
RUN pecl install xdebug
RUN docker-php-ext-enable xdebug
...
これは私にも起こり、XDEBUGがDockerデーモンホストを探していないことがわかりました。追加することで修正されました:
"hostname": "0.0.0.0"
VSCodeのlaunch.jsonの一般的なオプションの一部として。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加