php - phpStorm - configure xDebug -
i seek configure phpstorm debugging according this tutorial .
my entire project located in c:\work\projects\xampp\htdocs\mycode
in phpstorm did follow -
under file > php > servers:
name: mycodedebug host:http://localhost/mycode port:80 debugger:xdebug absolute path on server: http://localhost/mycode (same project location).
i utilize apache server in ports 80,443.
my phpstrom version 7.1.3
now mark breakpoints, go chrome , navigate http://localhost/mycode/ no phpstrom debugger promted although entire website got loaded .
what missed here , how create works xdebug?
update:
following suggested in comments , followed this tutorial , have chrome extension - xdebug .
in this manual paste content of php -i , did required .
as described in xdebug generator , added 2 bookmarks - start debug , stop debug ide key = phpstorm .
in php.ini have -
[xdebug] xdebug.idekey = "phpstorm" xdebug.remote_port = 80 i work xampp port 80 .
now nail start deebug bookmark , in phpstrom press on start hear php debug , set breakpoint in php scope, set xdebug extension on debug mode , browse localhost/mycode/index.php no debugging occur in phpstrom .
how config correctly ?
update 2:
under cmd php --version have -
php 5.5.11 (cli) (built: apr 8 2014 15:07:14) copyright (c) 1997-2014 php grouping zend engine v2.5.0, copyright (c) 1998-2014 zend technologies xdebug v2.2.5, copyright (c) 2002-2014, derick rethans also in file | setting | php | servers deleted .
update 3:
[here phpinfo();] (personal details had changed xxxxxxxx) .
the first thing in php.ini seems don't have xdebug installed. first thing should go xdebug installation guide , paste here php.ini file detailed instructions how install it.
if install correctly should have below in php.ini file:
the sec thing think changing xdebug port. although apache working @ 80 port, xdebug should have set port.
in php.ini should set example:
xdebug.remote_port=10000 and of course of study restart server (i have 9000 port default getting notification in phpstorm port busy simple changed id 10000 port).
now should go phpstorm settings , take php -> servers. should have here server , port 80 , should have here "validate remote environment". click , in new window should have "validate" button. should click create sure it's fine. should have here illustration xdebug info displayed.
now should in phpstorm go setting (again) , take php -> debug. here need have same port set in php.ini file (10000).
i have next setting in phpstorm in debug settings:
now assume have project open , created breakpoints. should click icon "start hear php debug connections) in toolbar - 2nd debug icon in toolbar.
now can go browser , if have plugin installed correctly , take debug , refresh page in browser, should info in phpstorm take connection debug , able debug site.
if still have problem should @ http://www.jetbrains.com/phpstorm/marklets/ - may utilize instead of using browser addon (simple add together generated links toolbar/favorites in browser).
what advise @ phpstorm xdebug tutorial - it's 1 hr should able larn lot it.
php apache debugging xampp phpstorm
No comments:
Post a Comment