Home  >  Article  >  Backend Development  >  phpstorm php script debugging, breakpoints

phpstorm php script debugging, breakpoints

WBOY
WBOYOriginal
2016-09-05 08:59:551690browse

phpstorm php script debugging, breakpoints

Simple script breakpoint, no matter click run or click debug at this time
Then wait for a while before the breakpoint is there..., the starting prompt is as follows
Waiting for incoming connection with ide key '14866'
Waiting for incoming connection with ide key '10627'
The ide key is different every time..

Don’t select php web application, select script, I am just debugging a script script, it has nothing to do with the web page!!!

phpstorm php script debugging, breakpoints

/usr/local/bin/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9001 -dxdebug.remote_host=127.0.0.1 /Users/name/PhpstormProjects/phptest/test.php

Reply content:

phpstorm php script debugging, breakpoints

Simple script breakpoint, no matter click run or click debug at this time
Then wait for a while before the breakpoint is there..., the starting prompt is as follows
Waiting for incoming connection with ide key '14866'
Waiting for incoming connection with ide key '10627'
The ide key is different every time..

Don’t select php web application, select script, I am just debugging a script script, it has nothing to do with the web page!!!

phpstorm php script debugging, breakpoints

/usr/local/bin/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9001 -dxdebug.remote_host=127.0.0.1 /Users/name/PhpstormProjects/phptest/test.php

  • Have you installed Xdebug or something like that

  • Is Jetbrain’s Chrome extension installed?

  • The green button with the phone number is clicked. The second one to the right of the debug key

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn