Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Breakpoint changes inside Ballerina services are not reflected after starting a debug session #43738

Closed
NipunaRanasinghe opened this issue Jan 8, 2025 · 3 comments · Fixed by #43739
Assignees
Labels
Area/Debugger Issues related to the ballerina debugging tools Priority/Blocker Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Bug
Milestone

Comments

@NipunaRanasinghe
Copy link
Contributor

Description

When debugging Ballerina services, modifications to breakpoints (adding/ removing) after the debug session has started are not captured.

This issue results in the debugger not responding to the updated breakpoints, leading to debugging inconsistencies.

Steps to Reproduce

import ballerina/http;
import ballerina/io;

service on new http:Listener(8080) {
    resource function get hello() returns string {
        io:println("Hello World");
        return "Hello, World!";
    }
}
  1. Use the above code and add a breakpoint on the println line.
  2. Once its hit, add another breakpoint on the return statement and continue to the next breakpoint.
  3. The debugger will not stop at the new breakpoint

Affected Version(s)

2201.11.0-beta

OS, DB, other environment details and versions

No response

Related area

-> Debugger

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@NipunaRanasinghe NipunaRanasinghe added this to the 2201.11.0 milestone Jan 8, 2025
@NipunaRanasinghe NipunaRanasinghe self-assigned this Jan 8, 2025
@NipunaRanasinghe NipunaRanasinghe added the Area/Debugger Issues related to the ballerina debugging tools label Jan 8, 2025
@ballerina-bot ballerina-bot added the Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) label Jan 8, 2025
@NipunaRanasinghe
Copy link
Contributor Author

Seems to be a regression added with 56348e3

@NipunaRanasinghe
Copy link
Contributor Author

Closing with #43739

Copy link

github-actions bot commented Jan 9, 2025

This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.

      - Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
      - Reason/Regression - The issue has introduced a regression.
      - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
      - Reason/Complex - Issue occurred due to complex scenario.
      - Reason/Invalid - Issue is invalid.
      - Reason/Other - None of the above cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Debugger Issues related to the ballerina debugging tools Priority/Blocker Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Bug
Projects
None yet
2 participants