MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001383XdebugUsage problems (Wrong Results)public2017-01-03 14:172017-02-07 17:36
ReporterDevDonkey 
Assigned Toderick 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionunable to reproduce 
PlatformOSOS Version
Product Version2.2.5 
Target VersionFixed in Version 
Summary0001383: view variables at breakpoint reordering array elements
Descriptionscenario:

(when using phpstorm 2016.2)

you have an array with the following structure (note last element is indexed '0'):

array(5) {
  [1]=>
  string(5) "first"
  [2]=>
  string(6) "second"
  [3]=>
  string(5) "third"
  [4]=>
  string(5) "forth"
  [0]=>
  string(4) "test"
}


when you set a breakpoint, freeze the code and inspect the array in the debug window.

The array will be displayed as:

0 = "test"
1 = "first"
2 = "second"
3 = "third"
4 = "forth"

instead of

1 = "first"
2 = "second"
3 = "third"
4 = "forth"
0 = "test"

Steps To Reproduceset appropriate breakpoint
run code
inspect array

var_dump array instead of freezing to compare.
TagsNo tags attached.
Operating System
PHP Version5.6.25-5.6.29
Attached Files

- Relationships

-  Notes
(0004106)
derick (administrator)
2017-01-03 15:19

Can you make a remote log as per https://xdebug.org/support.php#remote [^] ?

I think this does not happen in Xdebug, but in PhpStorm instead.
(0004206)
derick (administrator)
2017-02-07 17:36

I can not reproduce this. PhpStorm 2016.3 does the right thing, as you can see at http://derickrethans.nl/files/dump/1383.png [^]

Please reopen if you can produce a short reproducible same as described at https://xdebug.org/support.php#remote [^]

- Issue History
Date Modified Username Field Change
2017-01-03 14:17 DevDonkey New Issue
2017-01-03 15:19 derick Note Added: 0004106
2017-01-03 15:19 derick Assigned To => derick
2017-01-03 15:19 derick Status new => feedback
2017-02-07 17:36 derick Note Added: 0004206
2017-02-07 17:36 derick Status feedback => resolved
2017-02-07 17:36 derick Resolution open => unable to reproduce


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker