Only $this and PHP Post variables shown in Debug Variables

I have no idea what I've done wrong but I'm working on the same code from two machines and when debugging on my Mac when PhpStorm hits the relevant breakpoint, there are only the $this and PHP Post variables available. At the same point in the application on my Win PC I have the other PHP variables available that I expect to see. I've compared the settings and not seen any difference. However, I'm not an expert at Php so I'm not sure where to look. I'm not 100% sure those variables have ever been displayed on my Mac.

Does anybody know a solution to this?



I've changed to MAMP since it has been updated much more recently on OS x and my problems have disappeared. It's likely that my problems had nothing to do with PhpStorm to begin with.

=> on OS x use MAMP instead of XAMPP if you don't know the ins&outs of debug configuration

Comment actions Permalink

Hi there,

You can start with providing screenshots from your Mac and Windows machines when debugging the same code (the debugger part).

If the difference is in your settings somewhere .. then try deleting (backup first) your IDE config folder (while IDE is closed) and start from scratch (most of the files can be copied back)

Comment actions Permalink

I've spent all day messing with this problem, to no avail. Here is what I've tried:

  • start new project
  • reset PhpStorm profile
  • completely remove everything related to PhpStorm, fresh install, no imports, not even theme

And I'm exactly where I started:
Screen Shot 2013-05-13 at 15.28.17.png
This is my config in php.ini (part of xampp, maybe I should try MAMP, if this isn't cause by PhpStorm?):

;xDebug Configuration starts


xdebug.profiler_output_dir = "/tmp/xdebug/"
xdebug.profiler_enable = On

xdebug.default_enable = 1
xdebug.max_nesting_level = 200
xdebug.scream = 1
xdebug.cli_color = 1
xdebug.collect_includes = 1
xdebug.collect_params = 4
xdebug.collect_return = 1
xdebug.dump_globals = 1
xdebug.idekey = PHPSTORM
xdebug.remote_port = 9000
xdebug.remote_handler = "dbgp"
;xdebug.remote_host = ;set your local network IP here
xdebug.remote_enable = 1
xdebug.show_local_vars = 1
xdebug.collect_params = 4

;xDebug Configuration ends

I'd appreciat any tips. This problem is driving me crazy. My guess now would be that it's a problem on the server / config side outside PhpStorm but I don't have any experience with the details on that end.


Comment actions Permalink

Well ... this info is not enough for me to come up with anything useful.

1) What is your xdebug version? Try upgrading to the latest stable version, which is 2.2.2 (2.2.1 is also fine; not 2.2.0).

2) You can collect debug logs as seen by both xdebug itself ( ) as well as PhpStorm side ( ) -- it should give you the idea of what may be wrong, in particular: what is the root of the problem: PhpStorm or xdebug itself. (better if you collect such logs when debugging the SAME script on both OS -- easier to compare and spot the difference)

Obviously, I'm expecting that you have the same xdebug config on both OSs


Please sign in to leave a comment.