XDebug - no output in console window
I get no output in console window in "PHP Web Application" debugging mode. ("PHP script" mode is OK.)
I can step through code, I can see stack and vars, but console window is empty.
What should I check? Is there a setting I've missed?
Windows 7 64, PhpStorm 3.0 trial, php.ini debugger settings:
[XDebug]
zend_extension = "C:\serwer\php\ext\php_xdebug-2.1.2-5.3-vc9-x86_64.dll"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_log="c:\tmp\xdebug.log"
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.idekey=PHPSTORM
Please sign in to leave a comment.
Hello Szymon,
What do you expect to see in the console output when you use 'PHP Web Application' run configuration? You can see all php interpreter output in the web browser.
Thank you for feedback!
This is not acceptable answer for testing Ajax calls with a PHP backend, only passing POST data. We should be able to see an echo statements, ect in the console as well as the browser!
I was hoping to be able to use XDebug to debug production servers. Ideally I would like to see XDebug logs in the console. I certainly don't want them displayed on a production environment. And whilst I can see such messages in logs on the file system, it would be quite convienent to see them in my the IDE as I'm examining the code.
... it actually says in the guide that this is what the console is for:
"This pane enables you to view the output and error stream messages,..."
What is its purpose otherwise?
Try debugging any CLI script (e.g. normal PHP script or PHPUnit one) and you will see what's printed there.
Currently console is not in use when debugging remote/web scripts.
http://youtrack.jetbrains.com/issue/WI-13369