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

DAP: need to wait for connection #699

Merged
merged 1 commit into from
Jul 10, 2022
Merged

DAP: need to wait for connection #699

merged 1 commit into from
Jul 10, 2022

Conversation

ko1
Copy link
Collaborator

@ko1 ko1 commented Jul 10, 2022

At the breakpoint by debugger() method, the connection is
needed and wait for the connection if it is not connected.

With the fowllowing scenario, the debugger raises an exception
becuase the connection is kept (but disconnection violate this
assumption)

  1. run the script includes debugger call
  2. connect to DAP client
  3. disconnect from DAP client
  4. call debugger method

To solve this issue, it needs to wait for the connection.
UI_ServerBase::sock and UI_ServerBase::readline do it and we
can use them on DAP connection, so remove UI_DAP::sock and
UI_DAP::readline.

At the breakpoint by `debugger()` method, the connection is
needed and wait for the connection if it is not connected.

With the fowllowing scenario, the debugger raises an exception
becuase the connection is kept (but disconnection violate this
assumption)

1. run the script includes `debugger` call
2. connect to DAP client
3. disconnect from DAP client
4. call `debugger` method

To solve this issue, it needs to wait for the connection.
`UI_ServerBase::sock` and `UI_ServerBase::readline` do it and we
can use them on DAP connection, so remove `UI_DAP::sock` and
`UI_DAP::readline`.
@ko1 ko1 merged commit 7b062e6 into master Jul 10, 2022
@ko1 ko1 deleted the dap_wait_for_connection branch July 10, 2022 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant