CLI interpreter > add a new interpreter from a Local Path with the following definitions: If you are using Wamp, I assume you have that file in the Wamp folder like i did. if you are not what is your PHP version, echo phpinfo (). In the CLI Interpreters dialog that opens, the Configuration file read-only field shows the path to the active php.ini file. Step by step: Go to php.ini file, make sure that xdebug.remoteenable 1. On the PHP page that opens, click next to the CLI Interpreter field. Open the active php.ini file in the editor: In the Settings dialog ( Ctrl Alt 0S ), click PHP. So then I thought it was that php.ini that needed mofifying, but that made no difference. Enable Zend Debugger integration with the PHP interpreter. One other thing I am really confused about is the web servers, I understand PHPStorm has it's own web server, and uses an existing PHP installation for it (probably among other things too), hence pointing the CLI Interpreter PHP executable to the php.exe. I would appreciate some feedback as where I am going wrong in my setup of PHPStorm I am very new to PHP and PHPStorm so have a very steep learning curve. *** 2nd question from tutorials I watched online I understood that meant that no host nor port had to be specified in php.ini *** 1st question how do i get PHPStorm to report that Debugger is in fact installed?Ģnd I tried actual debugging with the following php.ini files, restarted web server, and this did not work? (Note: am not configuring Xdebug for using in the On-Demand mode)Īs a last resort tried to see if debugger actually worked, so set breakpoint in php file, enabled Chrome debug cookie, enabled PHPStorm start listening for PHP debug connection, and ran php file, and found debugger is working, which really surprised me! and in setting/languages & Frameworks/php/cli interpreter it says php version not installed & debugger not installed. Zend_extension = c:/wamp64/bin/php/php5.6.31/ext/php_xdebug-2.5.4-5.6-vc11-x86_64.dllĪfter spending far too long trying different configuration ended up nothing worked to get PHPStorm to say "Debugger install ok" but I've specified the php.ini file from etc/php/7.1/cli. The following entries have been added to the Apache php.ini section (and xdebug dll placed in correct folder) The PHP Executable is pointing to the correct PHP exe 5.6.31 In order to debug any Drush/Symfony or CLI command using Xdebug with PhpStorm or a similar IDE, you will need to set two additional environment variables PHP_IDE_CONFIG + XDEBUG_SESSION_START and configure the path mapping in your IDE accordingly.In in CLI Interpreter it says "Debugger: Not Installed" Lando mounts your project root to /app in the application server, so you might map something like /users/myname/myproject/ to /app.īy default, our Drupal recipes come with Drush out of the box and also the Symfony recipe has a console tooling, which can be debugged with the following config. It may also ask you to map the application server file paths to the paths on your host machine. PhpStorm should now automatically open the Debug window and produce debug output if a breakpoint is reached. Select "Debug" from the menu to tell your browser to send the appropriate parameters to Xdebug so that Xdebug activates when a request is made. In your browser, navigate to your Lando app's URL and click the "beetle" icon that the Xdebug helper added to your address bar.Add a debug breakpoint to a line in your code by clicking the line number. The button will look like a beetle (or a phone in the classic UI).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |