Skip to content

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant