xdebug ... stepping toolbar inactive - PhpStorm 2016.2.2

Trying to get xdebug working ...

I set up a simple PHP program with one breakpoint. I set a variable in the watch window and then executed the debugger. The program drops right to the end, blowing right by the breakpoint. The watched variable flickers when the debugging starts. There is no output shown in the Variables window. Output in chrome is as expected. For some reason, the stepping toolbar is grayed out so obviously PhpStorm's debugger seems to not be turned on when the program runsand just ignores the breakpoint.

1. xdebug verified as installed  in phpinfo()

2. WebServer debug verification passed  - all blue ...

3. Languages & Frameworks > PHP ... Interpreter = PHP 5.4.19 ... Debugger: Xdebug 2.2.3

[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.profiler_enable=1
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.idekey=PHPSTORM

[Zend]
; all items here are commented out

Does anyone have a clue as to where I should look next? Been fighting the good fight for almost 8 hours.

 

0
3 comments

How do you run debugger? Via web browser? The app just starts and nothing happens in PhpStorm? Nothing in IDE's Event Log?

0
Avatar
Permanently deleted user

Thanks Dmitry.

I run the debugger with Shift + F9. The app just runs and it's as if the breakpoint wasn't set. Chrome opens and displays the results of the script. Variables set in the watch window show no values and the IDE Log has nothing in it.

I created a new project and wrote another very simple PHP program ... same results.

I created a 3 page PDF showing screen shots that may be of interest. It's at:     http://www.ezvariabledata.com/PhpStorm_Issue.php

Thanks for your efforts

Jim T.

0

Hi Jim,

You are doing JavaScript debug and not PHP.

Delete your existing Run/Debug Configuration (the drop-down box next to Run./Debug buttons on toolbar) and try debugging again -- choose PHP this time.

Have a look at some video/read step-by-step tutorials if you have not seen them yet (this should clarify the exact process for you): https://confluence.jetbrains.com/display/PhpStorm/Debugging+with+PhpStorm

1

Please sign in to leave a comment.