Skip to content

Instantly share code, notes, and snippets.

@KylePalko
Created July 17, 2015 15:24
Show Gist options
  • Save KylePalko/2c515d18b84cbb5f7a25 to your computer and use it in GitHub Desktop.
Save KylePalko/2c515d18b84cbb5f7a25 to your computer and use it in GitHub Desktop.

Revisions

  1. KylePalko created this gist Jul 17, 2015.
    12 changes: 12 additions & 0 deletions debug.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #!/bin/bash
    export XDEBUG_CONFIG="idekey=PHPSTORM remote_host=localhost remote_port=9000 remote_handler=dbgp remote_enable=On"
    php vendor/bin/kahlan

    # This is for debugging KahLan Unit Tests in PHP.
    # You'll need to install both XDebug and PHP on your machine to run.

    # You can run the following if you have Homebrew to install:
    ## brew install php54-xdebug
    ## brew install php54

    # I Put this file in my spec/ directory and run it from the root of my project (so it has proper access to the vendor/ directory)