Ticket #680 (closed Bugs: fixed)

Opened 2 years ago

Last modified 13 months ago

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;

} ?>

2. Set breakpoint to the "print $i" 3. Open "Variables" views. 4. Start debugging. 5. 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

Changed 2 years ago by ed_mann

  • milestone set to 1.3.0

Changed 21 months 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;

}

}

?>

2. 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.

Changed 19 months ago by incastrix

  • owner set to incastrix
  • version changed from 1.2.0-nightly to 1.2.x

Changed 14 months ago by incastrix

  • priority changed from 1 to 7
  • milestone changed from 1.3.0 to 1.2.2

Changed 13 months ago by incastrix

  • status changed from new to closed
  • resolution set to fixed

(In [1638]) Fix #680.

Note: See TracTickets for help on using tickets.