A Node.js import walks through eight hundred rental records. Only R-0412 is being marked late incorrectly. Reproduce the discrepancy with a small local fixture containing the failing item and one control. Put a breakpoint inside the loop after the item is available and before the late flag is assigned.

Right-click the breakpoint and edit it as an expression-based condition. For an in-scope TypeScript or JavaScript variable called record, try record.id === 'R-0412'. Start the usual debug configuration. The debugger should stop at that line for the named record. If the condition never triggers, inspect one iteration with an ordinary breakpoint to verify the variable name and whether the ID is a string.

When it stops, compare the raw due timestamp, the parsed value, and the clock the code uses for comparison. If both records share a parser, the control is a quick way to check whether the value or the comparison is wrong. Once you've found the discrepancy, add a regression case that can run with a fixed clock. Verify that it fails with the old calculation and passes with the correction.

Use two records that fall on either side of the cutoff

Fix the test clock at 2026-02-03T12:00:00Z. Give R-0412 a due time of 2026-02-03T12:05:00Z and its control a due time of 2026-02-03T11:55:00Z. Under a rule that marks a record late once its due time is past, the first is still on time and the control is late. At the breakpoint, inspect the parsed timestamp and test the comparison the code actually uses. If the parsed values are correct, step through assignment and check for a swapped operator. After fixing it, rerun both cases and check the two resulting flags.

Sources