0

After installing Xdebug on Windows 10 and test that with php --version command I get this output:

C:\xampp\htdocs\instacheeta>php --version
PHP 7.2.4 (cli) (built: Mar 28 2018 04:46:46) ( ZTS MSVC15 (Visual C++ 2017) x86 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Xdebug v2.7.0alpha1, Copyright (c) 2002-2018, by Derick Rethans

After that I enable debug mode in PhpStorm by clicking on: enter image description here , enabling Firefox XDebug addons: enter image description here and then make break point on PhpStorm I expect that work correctly and stop on my break points.

enter image description here

But there are one problem, when I opening Validate debugger configuration dialog I can't validate debugger configuration

enter image description here enter image description here enter image description here

UPDTAE:

enter image description here enter image description here

My web app work on 8000 port with http://127.0.0.1 IP and my web app folder is in C:\xampp\htdocs\instacheeta path

13
  • check the mapping in settings->language&framework->PHP->servers to be set Commented Jul 10, 2018 at 9:03
  • @Edwin after that and adding server i have problem too Commented Jul 10, 2018 at 9:18
  • @Edwin i added some other screenshots to my post, how about Xdebug port? Commented Jul 10, 2018 at 9:21
  • absoulte path on server should be your entrypoint let's say index.php or whatever you have. And I usually have 9000 for the xdebugger as port. Commented Jul 10, 2018 at 9:24
  • @Edwin are you familiar with laravel? Commented Jul 10, 2018 at 9:54

1 Answer 1

1

PROBLEM RESOLVE

i cahnged xdebug setting into php.ini to:

zend_extension=xdebug
[XDebug]
xdebug.remote_autostart=1
xdebug.default_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_connect_back=1
xdebug.remote_enable =1
xdebug.remote_port=9000
xdebug.idekey=PHPSTORM

and adding PHPSTORM IDE key on PHPStorm settings from settings->PHP->Debug->DBGP

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.