Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set order on debugging variables list in PhpStorm

It is very stressful to use PhpStorm when inspecting the Variables in the Debugger. Is there any way to order them for the used arrays? I already searched a long time but it does not seem to help anything to get it in that way. So if you look on the picture I want #attached on the top and #user_category on the bottom.

enter image description here

like image 785
kwoxer Avatar asked Jan 04 '16 15:01

kwoxer


People also ask

How can I change variable value while debugging in IntelliJ?

Select a variable or a property of a complex object in the Debug window, press F2 or right-click and choose Set Value... from the context menu, and then specify a new value and press Enter .

How do I show Debug Variables in IntelliJ?

You can click on the Run icon in the gutter area and select the Debug option. You can invoke context actions on the class or main method by using Alt+Enter and choose the Debug action. You can also start it from the Run menu, or by pressing Shift F9.

How can you examine a variable while executing code?

Hover over a variable to see its value. The most commonly used way to look at variables is the DataTip. When stopped in the debugger hover the mouse cursor over the variable you want to look at. The DataTip will appear showing you the value of that variable.


1 Answers

You cannot set custom order (where you will order them as you wish) but you can activate alphabetical sorting order -- just activate appropriate option in Debug tool window settings.

enter image description here

like image 98
LazyOne Avatar answered Nov 15 '22 21:11

LazyOne