Skip to content

Comments

Make sure to get break numbers correctly in CDP server#359

Merged
ko1 merged 1 commit intoruby:masterfrom
ono-max:patch-01
Nov 4, 2021
Merged

Make sure to get break numbers correctly in CDP server#359
ko1 merged 1 commit intoruby:masterfrom
ono-max:patch-01

Conversation

@ono-max
Copy link
Member

@ono-max ono-max commented Nov 2, 2021

Fixes #361

The reason why the error occurs is that the breakpoint number is wrong. Current CDP server have breakpoint numbers in the origin array of breakpoints even though they change every time the item is removed from the array. This PR fixes it.

@ono-max ono-max marked this pull request as draft November 2, 2021 11:22
@ono-max ono-max changed the title Make sure to delete the breakpoint when receiving "Debugger.removeBreakpoint" Make sure to get break numbers correctly Nov 2, 2021
@ono-max ono-max changed the title Make sure to get break numbers correctly Make sure to get break numbers correctly in CDP server Nov 2, 2021
@ono-max ono-max marked this pull request as ready for review November 2, 2021 13:03
@ko1 ko1 merged commit 04cd5e7 into ruby:master Nov 4, 2021
@ono-max ono-max deleted the patch-01 branch November 4, 2021 23:29
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.

Breakpoints still left even though they are removed in Chrome

2 participants