Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Conditional breakpoint only stops the first time #268

Closed
Assignees
Labels
conclusion: resolvedIssue was resolved topic: codeRelated to content of the project itself topic: debuggerRelated to the integrated debugger type: imperfectionPerceived defect in any part of project
@rei-vilo

Description

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 resolved topic: codeRelated to content of the project itself topic: debuggerRelated to the integrated debugger type: 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

      AltStyle によって変換されたページ (->オリジナル) /