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

[Improvement]: Add Support for Restart Requests in the Ballerina Debug Server #43679

Closed
NipunaRanasinghe opened this issue Dec 3, 2024 · 0 comments · Fixed by #43686
Closed
Assignees
Labels
Area/Debugger Issues related to the ballerina debugging tools Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Improvement

Comments

@NipunaRanasinghe
Copy link
Contributor

NipunaRanasinghe commented Dec 3, 2024

Description

Currently, the Ballerina debug server does not support handling restart requests as per the Debug Adapter Protocol (DAP). When users initiate a restart request during a debugging session in VS Code, the following behavior is observed:

  • VS Code sends a terminate request, shutting down the active debug server instance.
  • A new debug server process is spawned and initialized to continue the debugging session.

This approach leads to increased startup time, negatively affecting the user experience during iterative debugging workflows.
Therefore this improvement aims to support restart requests from the Ballerina debug server side, which will reduce startup time during debug session restarts for enhanced efficiency and user experience for developers using the Ballerina debug server with VS Code.

Describe your solution(s)

  • Implement support for restart requests in the Ballerina debug server.
  • Allow the debug server to reset its state and reinitialize the debugging session without requiring a full termination and reinitialization process.

Challenges:

The current design of the Ballerina debug server supports only a single session per instance. Implementing restart request support will require significant changes to the existing implementation.

Related area

-> Debugger

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@NipunaRanasinghe NipunaRanasinghe added Type/Improvement Area/Debugger Issues related to the ballerina debugging tools labels Dec 3, 2024
@NipunaRanasinghe NipunaRanasinghe self-assigned this Dec 3, 2024
@ballerina-bot ballerina-bot added the Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) label Dec 3, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Ballerina Team Main Board Dec 5, 2024
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 Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Improvement
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants