Skip to content

[Debugger] Clarify that only one paused task can be debugged at a time#48415

Merged
pcmoritz merged 6 commits intomasterfrom
distributed-debugger-next-step
Oct 30, 2024
Merged

[Debugger] Clarify that only one paused task can be debugged at a time#48415
pcmoritz merged 6 commits intomasterfrom
distributed-debugger-next-step

Conversation

@pcmoritz
Copy link
Contributor

Why are these changes needed?

I was initially confused that I couldn't join another paused task while a debugger was in "continue" mode.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@pcmoritz pcmoritz requested a review from a team as a code owner October 29, 2024 20:21
pcmoritz and others added 2 commits October 29, 2024 13:27
Co-authored-by: bhuang <bhuang@anyscale.com>
Copy link
Contributor

@angelinalg angelinalg left a comment

Choose a reason for hiding this comment

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

Mind making these style changes?

pcmoritz and others added 2 commits October 29, 2024 18:10
Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com>
Signed-off-by: Philipp Moritz <pcmoritz@gmail.com>
Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com>
Signed-off-by: Philipp Moritz <pcmoritz@gmail.com>
@pcmoritz
Copy link
Contributor Author

pcmoritz commented Oct 30, 2024

Updated, thanks :)

@pcmoritz pcmoritz added the go add ONLY when ready to merge, run all tests label Oct 30, 2024
Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com>
Signed-off-by: Philipp Moritz <pcmoritz@gmail.com>
@pcmoritz pcmoritz enabled auto-merge (squash) October 30, 2024 02:32
@scottsun94
Copy link
Contributor

scottsun94 commented Oct 30, 2024

Screenshot 2024-10-30 at 11 05 16 AM

Is there a way to add a tooltip saying something like Unable to start because you are debugging another task

Would be nice if we can disconnect automatically after clicking continue and the task is done, but this will require more investigation

Any plan for this?

@pcmoritz pcmoritz merged commit 1e5c582 into master Oct 30, 2024
@pcmoritz pcmoritz deleted the distributed-debugger-next-step branch October 30, 2024 03:18
@pcmoritz
Copy link
Contributor Author

pcmoritz commented Oct 30, 2024

The tooltip would be great! @brycehuang30 feel free to do that when you have time :)

The automatic disconnect most likely has lower ROI and would only be worth it if we are very sure that's what the user wants (and it is not brittle).

JP-sDEV pushed a commit to JP-sDEV/ray that referenced this pull request Nov 14, 2024
ray-project#48415)

<!-- Thank you for your contribution! Please review
https://github.com/ray-project/ray/blob/master/CONTRIBUTING.rst before
opening a pull request. -->

<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->

## Why are these changes needed?

I was initially confused that I couldn't join another paused task while
a debugger was in "continue" mode.

## Related issue number

<!-- For example: "Closes ray-project#1234" -->

## Checks

- [ ] I've signed off every commit(by using the -s flag, i.e., `git
commit -s`) in this PR.
- [ ] I've run `scripts/format.sh` to lint the changes in this PR.
- [ ] I've included any doc changes needed for
https://docs.ray.io/en/master/.
- [ ] I've added any new APIs to the API Reference. For example, if I
added a
method in Tune, I've added it in `doc/source/tune/api/` under the
           corresponding `.rst` file.
- [ ] I've made sure the tests are passing. Note that there might be a
few flaky tests, see the recent failures at https://flakey-tests.ray.io/
- Testing Strategy
   - [ ] Unit tests
   - [ ] Release tests
   - [ ] This PR is not tested :(

---------

Signed-off-by: Philipp Moritz <pcmoritz@gmail.com>
Co-authored-by: bhuang <bhuang@anyscale.com>
Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants