Phpstorm Xdebug Chrome



  1. Phpstorm Debugger Chrome
  2. Xdebug Phpstorm Cli
  3. Phpstorm Xdebug Not Working
  4. Phpstorm Xdebug Chromebook
  5. Phpstorm Setup Xdebug
  6. Phpstorm Xdebug Chrome Download

1. Environment

I’ve used the Chrome debugger in the past but I prefer the PhpStorm debugger for a few reasons. The first advantage of the PhpStorm debugger is that it allows you to define tasks or scripts to run before debugging is started. If you have a grunt or gulp task that compiles your scripts this is a helpful addition.

This blog post describes step by step tutorial to debug PHP applications with PHPStorm using XDebug extension on localhost.

Mine environment has:

  • Wampserver 3.1.0 32 bit x86
  • Apache 2.4.27 – PHP 5.6.31
  • MySQL 5.7.19
  • PHPStorm 2017.3.3
  • XDebug

2. Configure XDebug

Open the php.ini file (usually located at: c:wampbinapacheapache2.4.27binphp.ini) and add the following lines at the end of file:

Also, comment this line:

3. Install and configure XDebug add-on for your favorite web browser

For Chrome, you can download/install it from here.

  1. The documentation indicates that PHPStorm supports both Zend and XDebug. Which is easier to set up? I have clicked on the link to 'Start debugger' from Chrome.
  2. Enable Xdebug listening in PhpStorm To trigger debugging, it’s necessary to send a special cookie along with each page request you wish to debug: XDEBUGSESSION=PHPSTORM To simplify this, Chrome has an extension called Xdebug helper that let’s you toggle setting this cookie or not. Xdebug helper for Chrome.

For Firefox, you can download/install it from here.

Configure the extension to have proper IDE Key: PHPSTORM

4. Configure PHPStorm

Phpstorm Debugger Chrome

Phpstorm

Xdebug Phpstorm Cli

Phpstorm xdebug chrome download
  • Open the application (base root folder) via PHPStorm.
  • File > Settings > Languages & Frameworks > PHP > Debug and configure it as on the screenshot:
  • File > Settings > Languages & Frameworks > PHP
  • File > Settings > Languages & Frameworks > PHP > Servers
  • Run > Debug & Configurations > PHP remote debug
  • Validate the debug configuration: Run > web server debug configuration
  • Make sure that breakpoints are not disabled (enabled by default):

5. Debug

Phpstorm Xdebug Not Working

Run the xdebug listener in your browser from which you run the website:

New toyota corolla crossover 2021

Phpstorm Xdebug Chromebook

Enable PHPStorm to listen incoming connections:

Phpstorm Setup Xdebug

Xdebug phpstorm cli

Phpstorm Xdebug Chrome Download

Set a breakpoint (or breakpoints) in the PHPStorm in the .php file for which you are sure that will execute after reloading page in your browser. After page reload PHPStorm should break the execution at the breakpoint which you have previously set.





Comments are closed.