Andrew
Andrew

Reputation: 701

Can't run tests with debug mode in Laravel project

I'm trying to run test with debug mode in my Laravel project. Tests runs but debug mode fails. I'm using: MAMP PRO 6, PHP 7.4.9, Xdebug v2.9.6, PhpStorm.

What can causes this issue. How to fix it?

During debug mode the following messages occurs:

Connection was not established. Cannot start debugger session with
'Xdebug 2.9.6' Validate installation

and next

Connection was not established.
'Xdebug 2.9.6' extension is installed. Check configuration options. Show phpinfo

phpini:

PHP version: 7.4.9
PHP CLI: /Applications/MAMP/bin/php/php7.4.9/bin/php
PHP CGI: /Applications/MAMP/bin/php/php7.4.9/bin/php-cgi 
Loaded Configuration File: /Applications/MAMP/bin/php/php7.4.9/conf/php.ini
Debugger extension: Xdebug 2.9.6
Loaded extensions:  bcmath, bz2, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, Reflection, session, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, tokenizer, xdebug, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib

...

enter image description here

enter image description here

enter image description here

Upvotes: 1

Views: 709

Answers (1)

Andrew
Andrew

Reputation: 701

Changing debug port to 9001 in phpstorm config helped for me.

enter image description here

Upvotes: 0

Related Questions