Skip to content

Conditional breakpoint only stops the first time #268

Closed
@rei-vilo

Description

@rei-vilo

Describe the bug

Conditional breakpoint only stops the first time.

Adding i%2 to line 8 only stops the first time when i=1, but not after when i=3 or 5.

To Reproduce

Same example as for #120 but with modified shown below.

Expected behavior

Debugger stops at 1, 3 and 5.

Screenshots

Capture 2021-03-25 08-25-06

Capture 2021-03-25 08-28-37

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: 2.0.0 beta 4
  • SAMD core 1.8.11

Additional context

  • Modified LocalLibrary.cpp
#include "LocalLibrary.h"

// Code
void blinkLED(uint8_t pin, uint8_t times, uint16_t ms, bool level)
{
    for (uint8_t i = 0; i < times * 2; i++)
    {
        digitalWrite(pin, (level ^(i%2)) ? HIGH : LOW);
        delay(ms >> 1);
    }
}

Metadata

Metadata

Assignees

Labels

conclusion: resolvedIssue was resolvedtopic: codeRelated to content of the project itselftopic: debuggerRelated to the integrated debuggertype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions