XDebug not showing in PHPStorm 7
Hey Guys
My XDebug isn't swhowing in my PHPStorm, but it is showing in my php_info().

I have been using this guide: http://confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+Xdebug+and+PhpStorm
I have restarted PHPStorm, nginx and PHP5-fpm multiple times and I also have a normally configured php. I have read up that on the Mac version sometimes the interpreter is pointing to the wrong php.ini, but PHPStorm doesn't pick any PHP's in /etc/php5 or my /usr/local/php5 .
What am I missing???
请先登录再写评论。
Also here is my php.ini:
zend_extension = /usr/lib/php5/20121212/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
Hi there,
Please attach output of phpinfo():
1) run it via browser
2) run it in console ("php -i" will do the same)
What php.ini did you edit?
I edited /etc/php5/fpm/php.ini (the same one showing in my php_info).
PHP Version 5.5.10-1+deb.sury.org~precise+1
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
Configuration
bcmath
bz2
calendar
cgi-fcgi
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mbstring
mcrypt
memcache
mhash
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_pgsql
pgsql
Phar
Phar fully realized by Gregory Beaver and Marcus Boerger.
Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
tokenizer
wddx
xdebug
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib
Additional Modules
Environment
PHP Variables
PHP Credits
PHP License
This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.
1
And I just added the debug part as seen in the second post.
And where is the output from console (e.g. "php -i") ?
Sorry missed that, I see my XDebug isn't defined for my CLI, will add it there...
Attachment(s):
php_ino.txt.zip
IT WORKS THANK YOU!!!
So it is because PHPStorm uses the CLI? Can you perhaps elaborate on why I was an idiot?
PHP Interpreter is needed for executing LOCAL scripts in CLI environment ONLY ("PHP Script" Run/Debug configuration, PHPUnit test, CodeSniffer/MessDetector integration etc).
If you debug your script/app in a browser then it is not used and not needed (unless you use Built In simple web server or PHP's own built-in server)
So .. if you execute your code on remote server .. then you do not need to have local PHP at all (unless you want CodeSniffer/MessDetector etc integration)
Thanks a lot, that makes sense and is something I will rememebr!