Opened 5 years ago

Closed 4 years ago

#680 closed Bugs (fixed)

Actual variable value did not refreshed in variables views

Reported by: zhil Owned by: incastrix
Priority: 7 Milestone: 1.2.2
Component: XDebug Version: 1.2.x
Keywords: debugger, xdebug Cc:

Description

Steps to reproduce

  1. Create new php file

<?php
for ($i=1;$i<100;$i++) {

print $i;

}
?>

  1. Set breakpoint to the "print $i"
  2. Open "Variables" views.
  3. Start debugging.
  4. After script will stop, if you will use F5/F6 (Step debug) to debug - variables values will be refreshed correctly. But if you will hit F8 (RUN) script will run, break in the same line, but $i value will not be refreshed. You may press F8 any times - $i will be the same, however script is executed.

Change History (5)

comment:1 Changed 5 years ago by ed_mann

  • Milestone set to 1.3.0

comment:2 Changed 5 years ago by AntoineSolutions

Seeing a very similar issue, only F6 does not refresh variables.

Steps to reproduce:

  1. Create new php file

<?php

$numbers = array(1,2,3,4,5,6,7,8,9,10);
foreach ($numbers as $number) {

if (isEven($number)) {

print $number;

}

}

?>

  1. When stepping through the loop with F6, when at an odd number, if statement is false, print statement is skipped, and $number is not updated in variables view. When at an even number, if statement is true, print statement is hit, and $number is updated in variables view.

comment:3 Changed 5 years ago by incastrix

  • Owner set to incastrix
  • Version changed from 1.2.0-nightly to 1.2.x

comment:4 Changed 4 years ago by incastrix

  • Milestone changed from 1.3.0 to 1.2.2
  • Priority changed from 1 to 7

comment:5 Changed 4 years ago by incastrix

  • Resolution set to fixed
  • Status changed from new to closed

(In [1638]) Fix #680.

Note: See TracTickets for help on using tickets.