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.
Please sign in to leave a comment.
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
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)
tar -xvzf xdebug-2.5.4.tgzcd xdebug-2.5.4Run:
phpize(See the FAQ if you don't havephpize.As part of its output it should show:
If it does not, you are using the wrong
phpize. Please follow this FAQ entry and skip the next step../configuremakecp modules/xdebug.so /Applications/DevDesktop/php7_0/ext/Applications/DevDesktop/php7_0/bin/php.iniand add the linezend_extension = /Applications/DevDesktop/php7_0/ext/xdebug.soThe 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.
Hi,
As tutorial suggests, it should be executed in
xdebug-2.5.4directory.Did you install phpize according to the FAQ?
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!
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)?