Debug: How do I see variables just above the breaking point at the top in debug window?

I'm on latest version of phpStorm (2016.2). I'm not sure the following problem is a result of me tweaking some setting unknowingly. But would really appreciate your help.

Problem: Debug window orders the variables alphabetically. So the variables I wish to track go down the list. Earlier, the variables just above the breaking point would appear at the top of the debug window. See -

 

The variables in the 'Variables' pane are arranged alphabetically. Earlier, I'd get variables:-

$aPageCount = $wp_query->max_num_pages;
$total_pages = $wp_query->max_num_pages;
$post_count2 = $query->post_count;
$found_posts2 = $query->found_posts;
$bmax_num_pages = $query->max_num_pages;

at the top of other variables so that I could quickly see their contents. 

How do I fix this? 

 

 

8 comments
Avatar
Vladimir Luchansky
Comment actions Permalink

Hello,

I checked PhpStorm versions up to 10 but behavior was always the same.

Can you remember what version did you use?

By the way, there is Settings > Sort values alphabetically option in the Debug tool window. Could you check if it helps you or not?

0
Comment actions Permalink

Thank you for your response, Vladimir. The option "Preferences -> Build, Execution, Deployment -> Debugger -> Data Views : 'Sort values alphabetically" is unchecked (by default). I tried turning it on and off but no success. 

Could this be a bug? I'm on phpStorm: 2016.2.1, Build #PS-162.1889.1, built on August 23, 2016. I believe it's the latest. 

Could this be related to xdebug, anyway? 

0
Comment actions Permalink

I checked that in the Xdebug log, that's the way Xdebug sends us the data:

<property name="$abc" fullname="$abc" type="int"><![CDATA[1]]></property><property name="$bcd" fullname="$bcd" type="int"><![CDATA[2]]></property><property name="$cde" fullname="$cde" type="int"><![CDATA[3]]></property>
0
Comment actions Permalink

Update

I noticed that the variables are shown at the top when I'm editing a wordpress 'plugin' file. But when I'm editing a 'theme' file, the variables get arranged alphabetically. 

Not sure what the problem is. 

0
Comment actions Permalink

Could you please attach the Xdebug log for a session where the variables are not arranged?

0
Comment actions Permalink

Above to give up!

 

I keep getting [15-Oct-2016 05:16:46 UTC] XDebug could not open the remote debug file '/Users/CE/IO/logs/xdebug/xdebug.log'. error. Have already tried setting its permissions to 777 . Have referred this : https://github.com/Varying-Vagrant-Vagrants/VVV/issues/621 , but no use. 

Is there any other way go get the xdebug log?

0
Comment actions Permalink

Where's your webserver located? Is it a vagrant box? Is there any difference between your wordpress 'plugin' & 'theme' files? Are they stored locally/deployed to a webserver?

0
Comment actions Permalink

Hello Dmitry,

It's a local webserver created using PressMatic. Apparantly there's no difference between the plugin and theme; just that I'm using OOP concepts (objects, classes etc.) for my plugin and simple function based code for my theme.

0

Please sign in to leave a comment.