Skip to content

Conversation

OCHyams
Copy link
Contributor

@OCHyams OCHyams commented Aug 8, 2025

No description provided.

Copy link

github-actions bot commented Aug 8, 2025

✅ With the latest revision this PR passed the Python code formatter.

@OCHyams OCHyams requested review from jmorse and SLTozer August 8, 2025 13:36
@OCHyams OCHyams marked this pull request as ready for review August 8, 2025 13:36
@OCHyams OCHyams force-pushed the users/OCHyams/2d54aad7d403 branch from 73804d1 to 2bb714e Compare August 12, 2025 09:53
@OCHyams OCHyams marked this pull request as draft August 12, 2025 11:05
@OCHyams OCHyams changed the base branch from users/OCHyams/2d54aad7d403 to main August 12, 2025 11:06
@OCHyams OCHyams force-pushed the users/OCHyams/dexter-new-bps branch from f537f45 to 7089cfd Compare August 12, 2025 11:08
@OCHyams OCHyams marked this pull request as ready for review August 12, 2025 11:10
self.dap_id_to_dex_ids[dap_bp_id] = [dex_bp_id]
visited_dap_ids.add(dap_bp_id)
self.pending_breakpoints = False
# Is this right? Are we guarenteed the order of the outgoing/incoming lists?
Copy link
Contributor

@SLTozer SLTozer Aug 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically the specification only explicitly says "The breakpoints returned are in the same order as the elements of the breakpoints (or the deprecated lines) array in the arguments." for source breakpoints*. However, I'd be very surprised if any debugger chose to do it differently, given that the response is not guaranteed to contain sufficient information to otherwise map the requested breakpoints to the received breakpoints - it would effectively be a useless feature otherwise.

*Function and instruction breakpoints have the wording "The [response] array elements correspond to the elements of the breakpoints array.", which I take to mean that the ordering should be the same, but it's not as explicit as the source breakpoints case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah cool, thanks for the info. I've updated the comments to be more certain

@walter-erquinigo
Copy link
Member

This LGTM overall. I'll let @SLTozer do the final approval

Copy link
Contributor

@SLTozer SLTozer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with some nits!

@@ -606,7 +693,13 @@ def _get_launch_params(self, cmdline):
""" "Set the debugger-specific params used in a launch request."""

def launch(self, cmdline):
assert len(self.file_to_bp.keys()) > 0
# FIXME: This should probably not a warning, not an assert.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment, the reason it's an assert is that IIRC Dexter should always have either added a breakpoint or exited early at this point - so at the very least it would be a raise, rather than a warning.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may have instructed dexter to set a breakpoint, but the debugger fail to bind any. In that case, dexter asserting isn't very user friendly... in any case, I've reworded the fixme (I still believe it should be fixed at some point).

@OCHyams OCHyams merged commit 3bc05d4 into main Aug 27, 2025
9 checks passed
@OCHyams OCHyams deleted the users/OCHyams/dexter-new-bps branch August 27, 2025 13:34
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.

3 participants