LoginSignup
0
1

More than 3 years have passed since last update.

artisanコマンドでXdebug could not open the remote debug file '\tmp\xdebug.txt'となったときの対応方法

Posted at
  • 環境
    • Windows10 bit64
    • Laravel Framework 5.5.40
    • PHP 7.3.7 (cli)

事象 : artisanコマンドを打ったら怒られた

$ php artisan --version
Xdebug could not open the remote debug file 'C:\path\to\php-7.3.7-Win32-VC15-x86\tmp\xdebug.txt'.

原因 : リモートログ用に指定したディレクトリがないから

php.iniでxdebug.remote_logに指定したディレクトリがないから。

$ grep xdebug.remote_log php.ini
xdebug.remote_log="C:\path\to\php-7.3.7-Win32-VC15-x86\tmp\xdebug.txt"

対応 : tmpディレクトリを作る

$ cd /c/path/to/php-7.3.7-Win32-VC15-x86
$ mkdir tmp
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1