Error: ide (session key) cannot be empty

Xdebug used to work however now when setting a breakpoint and starting xdebug nothing happens. I found that my configuration says that:

Error: ide (session key) cannot be empty

What is the session key? Where can I get it and why did it got empty? I did not find any information about session keys on phpstorm.

 

 

0
5 comments

Hi there,

You must be using Run/Debug Configuration of "PHP Remote Debug" type .. as that's the only one that uses "Ide key (session id)".

If so -- just edit it -- "Run | Edit Configurations..." or via that drop-down box next to the Run/Debug buttons on main or mini toolbar.

https://www.jetbrains.com/help/phpstorm/2017.2/run-debug-configuration-php-remote-debug.html

1

Hi thanks, I found the problem was actually that I switched to php7 in the acquia devdesktop which does not support out of the box xdebug.

From the xdebug page it says. (note the following is system specific)

  1. Download xdebug-2.5.4.tgz
  2. Unpack the downloaded file with tar -xvzf xdebug-2.5.4.tgz
  3. Run: cd xdebug-2.5.4
  4. Run: phpize (See the FAQ if you don't have phpize.

    As part of its output it should show:

    Configuring for:
    ...
    Zend Module Api No:      20151012
    Zend Extension Api No:   320151012
    

     

    If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step.

  5. Run: ./configure
  6. Run: make
  7. Run: cp modules/xdebug.so /Applications/DevDesktop/php7_0/ext
  8. Edit /Applications/DevDesktop/php7_0/bin/php.ini and add the line
    zend_extension = /Applications/DevDesktop/php7_0/ext/xdebug.so
  9. Restart the webserver

The following is still my problem I need to run phpize Step 4:

Cannot find config.m4.

Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module

where do I execute this command? Lot of thanks in advance.

0
Avatar
Permanently deleted user

Hi,

As tutorial suggests, it should be executed in xdebug-2.5.4 directory.

Did you install phpize according to the FAQ?

1

Hi thanks, you were right I cd 'ed' into the wrong folder... So now I succeeded to install xdebug copied the module to the extensions map and added the link in the php.ini.

However the loaded php.ini does still says that xdebug is not loaded. (I restarted the webserver) Did I miss an additional step? Thanks in advance!

 

0

Michiel, to be honest, I personally have never succeeded in compiling PHP for macOS manually.
Why would you not use Homebrew (as suggested there as well)?

0

Please sign in to leave a comment.