Skip to content

Remove a breakpoint wiht the debugger Atmel ICE #2015

Open

Description

Describe the problem

I set a breakpoint. The program stops as I expect. Then I remove the breakpoint. But when I continue the program still stops at the breakpoint which I removed.

To reproduce

I used the following testcode:
I set a breakpoint at line 31.
The debugger stopped. I could watch the variables.
Now I remove the breakpoint and press continue. The program proceeds, but it stopped again at the removed breakpoint.

1 /*
2  Simple Debugger Test
3
4  This example blinks the onboard LED of an Arduino board and changes 
5  the value of the variables x and y wwhile running. The purpose of 
6  this example is to test the debugging functionalities of the Arduino 
7  IDE 2.0.
8
9  The circuit:
10  - Arduino MKR WiFi 1010
11
12  Created by José Bagur
13
14  This example code is in the public domain.
15 */
16
17 // Initialize variables x and y
18 int x = 0;
19 int y = 0;
20 
21 void setup() {
22  // Initialize digital pin LED_BUILTIN as an output
23  pinMode(LED_BUILTIN, OUTPUT);
24 }
25
26
27 void loop() {
28   digitalWrite(LED_BUILTIN, HIGH);   // Turn the LED on
29   x++;                               // Increment in one unit x
30   y--;                               // Decrement in one unit y
31  delay(1000);                       // Wait for a second
32
33  digitalWrite(LED_BUILTIN, LOW);    // Turn the LED off 
34  delay(1000);                       // Wait for a second
35 }

Expected behavior

I expect that the program proceeds.
When I press the Stop button and Restart Debugging, then it works, however the program starts at the beginning and thats not what I wanted.

Arduino IDE version

IDE 2.0.4

Operating system

Windows

Operating system version

Windows 10

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    topic: 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