ngklion.blogg.se

Xdebug phpstorm configuration
Xdebug phpstorm configuration









xdebug phpstorm configuration
  1. #XDEBUG PHPSTORM CONFIGURATION GENERATOR#
  2. #XDEBUG PHPSTORM CONFIGURATION PLUS#
  3. #XDEBUG PHPSTORM CONFIGURATION MAC#

Name - This is how you will be able to identify & Run your debug configuration.Be sure to add the following information:.

#XDEBUG PHPSTORM CONFIGURATION PLUS#

Click the Plus Sign button and select PHP Web Application.Select Edit Configurations from the Run configuration drop-down.Next We'll setup a Web App Debug Configuration to store configuration settings specific to your Php Project:

#XDEBUG PHPSTORM CONFIGURATION MAC#

  • Open PhpStorm Preferences (On Mac PhpStorm -> Preferences, Others: File -> Settings)īe sure that the Port is correct (9000 is the default 'zero config' option for xdebug) and that Can Accept Remote Connections is checked.
  • First, make sure that the xdebug settings are configured correctly: PhpStorm needs to know a few things before you can hit the 'play' button and debug your PHP Web App. Setup a PhpStorm PHP Web App debug configuration You can set PhpStorm up to 'push' files out to a different location if that floats your boat PhpStorm uses it to keep track of what files correspond with which URL requests. With the above configuration my Php Project base URL is: This will be used when we setup a PhpStorm Web App Debug configuration. For typing ease I placed my symlink in the Computer site:

    xdebug phpstorm configuration

    On the mac you can pick from your personal website ( /Users/username/Sites) or the computer site ( /Library/WebServer/Documents). I accomplished this by creating a symlink to my PhpProjects directory in my html document root folder. Note 2: Be sure to restart your httpd daemon after making these changesįor PhpStorm to be happy about debugging web applications you must configure your http server to have a (virtual) directory that points to you PHP Project. Here are the xdebug settings that you should be concerned with to make PhpStorm Happy. Note 1: xdebug defaults to certain settings when you don't specify them. You can see there isn't much to the xdebug configuration: Here's that change in context with my php.ini file.

    xdebug phpstorm configuration

    You can add additional xdebug settings below that line. Do a search for xdebug and you should find at least one commented-out configuration option towards the bottom of the file. On my Mac, the php.ini file is located in /private/etc/php.ini. For other platforms some changes may need to be made Note: I am continuing this configuraion on my Mac.Important: information on xdebug.remote_host setting (php.ini).

    #XDEBUG PHPSTORM CONFIGURATION GENERATOR#

  • Important: Bookmarklet debug script generator.
  • Helpful: Blog post on 'zero configuration' debugging with PhpStorm.
  • Create a PhpStorm Web App Debug configuration.
  • This article will cover the steps I had to go through to get PHP Web Application debugging to work While helpful, debugging an individual php file has limited value. That left me with the ability to debug php files right in the IDE. In a previous article I talked about getting php, xdebug and PhpStorm all working together.











    Xdebug phpstorm configuration