View Issue Details

IDProjectCategoryView StatusLast Update
0002269XdebugStep Debuggingpublic2024-06-19 19:54
ReporterVincent T Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
PlatformPHP 8.3.8OSWindows 10 / 64OS Version22H2
Product Version3.3.2 
Summary0002269: Unable to make conditional breakpoint work
Description

Hi,
I try to add a conditional breakpoint in a loop :
8<-----------------------------------------------------------
foreach ($lignes as $kLigne => $ligne) {
// Suppression des lignes vides
if (ctype_space($ligne)) {
unset($lignes[$kLigne]);
}
8<-----------------------------------------------------------
where $lignes is an array and $kLigne is an integer. The breakpoint is on the "if" line.
In the properties on the breakpoint I added
8<-------------------
$kLigne == 210
8<-------------------
I use Apache Netbeans 22.
When I press the F5 (continue) button, the script stops each time on the breakpoint, incrementing $kLigne by 1. The array contains 406 elements.
I also tried multiple variants of the test : surrounded by simple or double quotes, single equal instead of double, >=, ...
The condition is checked "on".
It seems the test is simply ignored.
What did I miss ?

TagsNo tags attached.
Operating System
PHP Version8.2.0-8.2.9

Activities

derick

2024-06-17 23:27

administrator   ~0006976

Please provide an Xdebug log as is described at https://xdebug.org/reporting-bugs#step-debugger

Vincent T

2024-06-19 19:54

reporter   ~0006981

Hi,
I just made a very simple script and everything works like a charm.
So, I closed everything, discovered that some breakpoints were still active (don't know why), cleared them, restarted and everything is ok.
BTW, I use Apache Netbeans on Docker and Xdebug is just perfect : I expected problems with port numbers, but nada !!!

Thanks and apologies !

Issue History

Date Modified Username Field Change
2024-06-07 01:11 Vincent T New Issue
2024-06-17 23:27 derick Assigned To => derick
2024-06-17 23:27 derick Status new => feedback
2024-06-17 23:27 derick Note Added: 0006976
2024-06-17 23:35 derick Severity feature => minor
2024-06-19 19:54 Vincent T Note Added: 0006981
2024-06-19 19:54 Vincent T Status feedback => assigned