|
1 | | -import asyncio |
2 | 1 | from typing import Optional, Sequence, Tuple |
3 | 2 |
|
4 | 3 | import click |
|
22 | 21 | add_help_option=True, |
23 | 22 | ) |
24 | 23 | @click.option( |
25 | | - "--debug / --no-debug", |
| 24 | + "--debug/--no-debug", |
| 25 | + is_flag=True, |
26 | 26 | default=True, |
27 | 27 | help="Enable/disable debug mode", |
28 | 28 | show_default=True, |
|
34 | 34 | show_default=True, |
35 | 35 | ) |
36 | 36 | @click.option( |
37 | | - "--wait-for-client / --no-wait-for-client", |
| 37 | + "--wait-for-client/--no-wait-for-client", |
38 | 38 | is_flag=True, |
39 | 39 | default=True, |
40 | 40 | help="Waits until a debug client is connected.", |
|
55 | 55 | show_default=True, |
56 | 56 | ) |
57 | 57 | @click.option( |
58 | | - "--debugpy / --no-debugpy", |
| 58 | + "--debugpy/--no-debugpy", |
59 | 59 | is_flag=True, |
60 | 60 | default=False, |
61 | 61 | help="Enable/disable python debugging.", |
62 | 62 | show_default=True, |
63 | 63 | ) |
64 | 64 | @click.option( |
65 | | - "--debugpy-wait-for-client", |
| 65 | + "--debugpy-wait-for-client/--no-debugpy-wait-for-client", |
66 | 66 | is_flag=True, |
67 | 67 | default=True, |
68 | 68 | help="Waits for a debugpy client to connect.", |
@@ -170,28 +170,26 @@ def debug( |
170 | 170 |
|
171 | 171 | try: |
172 | 172 | app.exit( |
173 | | - asyncio.run( |
174 | | - run_debugger( |
175 | | - ctx=ctx, |
176 | | - app=app, |
177 | | - args=list(robot_options_and_args), |
178 | | - mode=mode, |
179 | | - addresses=bind, |
180 | | - port=port if port is not None else DEBUGGER_DEFAULT_PORT, |
181 | | - pipe_name=pipe_name, |
182 | | - debug=debug, |
183 | | - stop_on_entry=stop_on_entry, |
184 | | - wait_for_client=wait_for_client, |
185 | | - wait_for_client_timeout=wait_for_client_timeout, |
186 | | - configuration_done_timeout=configuration_done_timeout, |
187 | | - debugpy=debugpy, |
188 | | - debugpy_wait_for_client=debugpy_wait_for_client, |
189 | | - debugpy_port=debugpy_port, |
190 | | - output_messages=output_messages, |
191 | | - output_log=output_log, |
192 | | - output_timestamps=output_timestamps, |
193 | | - group_output=group_output, |
194 | | - ) |
| 173 | + run_debugger( |
| 174 | + ctx=ctx, |
| 175 | + app=app, |
| 176 | + args=list(robot_options_and_args), |
| 177 | + mode=mode, |
| 178 | + addresses=bind, |
| 179 | + port=port if port is not None else DEBUGGER_DEFAULT_PORT, |
| 180 | + pipe_name=pipe_name, |
| 181 | + debug=debug, |
| 182 | + stop_on_entry=stop_on_entry, |
| 183 | + wait_for_client=wait_for_client, |
| 184 | + wait_for_client_timeout=wait_for_client_timeout, |
| 185 | + configuration_done_timeout=configuration_done_timeout, |
| 186 | + debugpy=debugpy, |
| 187 | + debugpy_wait_for_client=debugpy_wait_for_client, |
| 188 | + debugpy_port=debugpy_port, |
| 189 | + output_messages=output_messages, |
| 190 | + output_log=output_log, |
| 191 | + output_timestamps=output_timestamps, |
| 192 | + group_output=group_output, |
195 | 193 | ) |
196 | 194 | ) |
197 | 195 |
|
|
0 commit comments