-
-
Notifications
You must be signed in to change notification settings - Fork 652
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
support debug mode for experimental_test_shell_command
target type
#21957
support debug mode for experimental_test_shell_command
target type
#21957
Conversation
|
||
return TestDebugRequest( | ||
InteractiveProcess.from_process( | ||
shell_process, forward_signals_to_process=False, restartable=True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More of a question about pants test --debug
in general: Should restartable
be configurable somehow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. It's occasionally annoying if I forget that --debug
restarts on file change, and so I make a few edits, save, and find my in-progress debugging session interrupted.
I don't know if I'd remember to pass an extra flag like pants test --debug --no-debug-restart
or whatever.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe such a flag should be specific to the kind of test then (and then configured in pants.toml
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In any event, going to land this PR since I'm just matching existing behavior of our test --debug
impls here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Good idea!
|
||
return TestDebugRequest( | ||
InteractiveProcess.from_process( | ||
shell_process, forward_signals_to_process=False, restartable=True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. It's occasionally annoying if I forget that --debug
restarts on file change, and so I make a few edits, save, and find my in-progress debugging session interrupted.
I don't know if I'd remember to pass an extra flag like pants test --debug --no-debug-restart
or whatever.
Support debug mode for the
experimental_test_shell_command
target type so that users can execute the tests in interactive mode.