Skip to content

Basic pdb debugging for actor mesh #217

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

Closed
wants to merge 1 commit into from

Conversation

samlurye
Copy link

Summary:
This diff fleshes out suo's work in D75023066 to provide a basic pdb debugging experience for python actor meshes. The basic flow is:

  • Call init_debugging(python_actor_mesh) to get a debug_client
  • Call debug_client.enter() to enter a debugging session
  • Input list to show the set of currently active breakpoints across your mesh
  • Attach to a specific actor by inputting attach, then run arbitrary pdb commands for the attached actor
  • Input detach to exit back into the outer debug loop, where you can attach to another rank
  • Cast pdb commands to multiple actors at once, either via a comma separated list like cast r0,r1,r2 <command> or to all actors via cast * <command>
  • Input quit to exit the debug session and continue

Differential Revision: D76086980

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 10, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76086980

samlurye pushed a commit to samlurye/monarch-1 that referenced this pull request Jun 10, 2025
Summary:

This diff fleshes out suo's work in D75023066 to provide a basic pdb debugging experience for python actor meshes. The basic flow is:
- Call `init_debugging(python_actor_mesh)` to get a `debug_client`
- Call `debug_client.enter()` to enter a debugging session
- Input `list` to show the set of currently active breakpoints across your mesh
- Attach to a specific actor by inputting `attach`, then run arbitrary pdb commands for the attached actor
- Input `detach` to exit back into the outer debug loop, where you can attach to another rank
- Cast pdb commands to multiple actors at once, either via a comma separated list like `cast r0,r1,r2 <command>` or to all actors via `cast * <command>`
- Input `quit` to exit the debug session and continue

Reviewed By: suo

Differential Revision: D76086980
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76086980

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76086980

samlurye pushed a commit to samlurye/monarch-1 that referenced this pull request Jun 11, 2025
Summary:
Pull Request resolved: pytorch-labs#217

This diff fleshes out suo's work in D75023066 to provide a basic pdb debugging experience for python actor meshes. The basic flow is:
- Call `init_debugging(python_actor_mesh)` to get a `debug_client`
- Call `debug_client.enter()` to enter a debugging session
- Input `list` to show the set of currently active breakpoints across your mesh
- Attach to a specific actor by inputting `attach`, then run arbitrary pdb commands for the attached actor
- Input `detach` to exit back into the outer debug loop, where you can attach to another rank
- Cast pdb commands to multiple actors at once, either via a comma separated list like `cast r0,r1,r2 <command>` or to all actors via `cast * <command>`
- Input `quit` to exit the debug session and continue

Reviewed By: suo

Differential Revision: D76086980
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76086980

samlurye pushed a commit to samlurye/monarch-1 that referenced this pull request Jun 11, 2025
Summary:
Pull Request resolved: pytorch-labs#217

This diff fleshes out suo's work in D75023066 to provide a basic pdb debugging experience for python actor meshes. The basic flow is:
- Call `init_debugging(python_actor_mesh)` to get a `debug_client`
- Call `debug_client.enter()` to enter a debugging session
- Input `list` to show the set of currently active breakpoints across your mesh
- Attach to a specific actor by inputting `attach`, then run arbitrary pdb commands for the attached actor
- Input `detach` to exit back into the outer debug loop, where you can attach to another rank
- Cast pdb commands to multiple actors at once, either via a comma separated list like `cast r0,r1,r2 <command>` or to all actors via `cast * <command>`
- Input `quit` to exit the debug session and continue

Reviewed By: suo

Differential Revision: D76086980
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76086980

samlurye pushed a commit to samlurye/monarch-1 that referenced this pull request Jun 11, 2025
Summary:
Pull Request resolved: pytorch-labs#217

This diff fleshes out suo's work in D75023066 to provide a basic pdb debugging experience for python actor meshes. The basic flow is:
- Call `init_debugging(python_actor_mesh)` to get a `debug_client`
- Call `debug_client.enter()` to enter a debugging session
- Input `list` to show the set of currently active breakpoints across your mesh
- Attach to a specific actor by inputting `attach`, then run arbitrary pdb commands for the attached actor
- Input `detach` to exit back into the outer debug loop, where you can attach to another rank
- Cast pdb commands to multiple actors at once, either via a comma separated list like `cast r0,r1,r2 <command>` or to all actors via `cast * <command>`
- Input `quit` to exit the debug session and continue

Reviewed By: suo

Differential Revision: D76086980
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76086980

samlurye pushed a commit to samlurye/monarch-1 that referenced this pull request Jun 11, 2025
Summary:
Pull Request resolved: pytorch-labs#217

This diff fleshes out suo's work in D75023066 to provide a basic pdb debugging experience for python actor meshes. The basic flow is:
- Call `init_debugging(python_actor_mesh)` to get a `debug_client`
- Call `debug_client.enter()` to enter a debugging session
- Input `list` to show the set of currently active breakpoints across your mesh
- Attach to a specific actor by inputting `attach`, then run arbitrary pdb commands for the attached actor
- Input `detach` to exit back into the outer debug loop, where you can attach to another rank
- Cast pdb commands to multiple actors at once, either via a comma separated list like `cast r0,r1,r2 <command>` or to all actors via `cast * <command>`
- Input `quit` to exit the debug session and continue

Reviewed By: suo

Differential Revision: D76086980
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76086980

samlurye pushed a commit to samlurye/monarch-1 that referenced this pull request Jun 12, 2025
Summary:
Pull Request resolved: pytorch-labs#217

This diff fleshes out suo's work in D75023066 to provide a basic pdb debugging experience for python actor meshes. The basic flow is:
- Call `init_debugging(python_actor_mesh)` to get a `debug_client`
- Call `debug_client.enter()` to enter a debugging session
- Input `list` to show the set of currently active breakpoints across your mesh
- Attach to a specific actor by inputting `attach`, then run arbitrary pdb commands for the attached actor
- Input `detach` to exit back into the outer debug loop, where you can attach to another rank
- Cast pdb commands to multiple actors at once, either via a comma separated list like `cast r0,r1,r2 <command>` or to all actors via `cast * <command>`
- Input `quit` to exit the debug session and continue

Reviewed By: suo

Differential Revision: D76086980
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76086980

samlurye pushed a commit to samlurye/monarch-1 that referenced this pull request Jun 12, 2025
Summary:
Pull Request resolved: pytorch-labs#217

This diff fleshes out suo's work in D75023066 to provide a basic pdb debugging experience for python actor meshes. The basic flow is:
- Call `init_debugging(python_actor_mesh)` to get a `debug_client`
- Call `debug_client.enter()` to enter a debugging session
- Input `list` to show the set of currently active breakpoints across your mesh
- Attach to a specific actor by inputting `attach`, then run arbitrary pdb commands for the attached actor
- Input `detach` to exit back into the outer debug loop, where you can attach to another rank
- Cast pdb commands to multiple actors at once, either via a comma separated list like `cast r0,r1,r2 <command>` or to all actors via `cast * <command>`
- Input `quit` to exit the debug session and continue

Reviewed By: suo

Differential Revision: D76086980
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76086980

samlurye pushed a commit to samlurye/monarch-1 that referenced this pull request Jun 12, 2025
Summary:
Pull Request resolved: pytorch-labs#217

This diff fleshes out suo's work in D75023066 to provide a basic pdb debugging experience for python actor meshes. The basic flow is:
- Call `init_debugging(python_actor_mesh)` to get a `debug_client`
- Call `debug_client.enter()` to enter a debugging session
- Input `list` to show the set of currently active breakpoints across your mesh
- Attach to a specific actor by inputting `attach`, then run arbitrary pdb commands for the attached actor
- Input `detach` to exit back into the outer debug loop, where you can attach to another rank
- Cast pdb commands to multiple actors at once, either via a comma separated list like `cast r0,r1,r2 <command>` or to all actors via `cast * <command>`
- Input `quit` to exit the debug session and continue

Reviewed By: suo

Differential Revision: D76086980
Summary:
Pull Request resolved: pytorch-labs#217

This diff fleshes out suo's work in D75023066 to provide a basic pdb debugging experience for python actor meshes. The basic flow is:
- Call `init_debugging(python_actor_mesh)` to get a `debug_client`
- Call `debug_client.enter()` to enter a debugging session
- Input `list` to show the set of currently active breakpoints across your mesh
- Attach to a specific actor by inputting `attach`, then run arbitrary pdb commands for the attached actor
- Input `detach` to exit back into the outer debug loop, where you can attach to another rank
- Cast pdb commands to multiple actors at once, either via a comma separated list like `cast r0,r1,r2 <command>` or to all actors via `cast * <command>`
- Input `quit` to exit the debug session and continue

Reviewed By: suo

Differential Revision: D76086980
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76086980

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in fd69509.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants