Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add debug flag on run #405

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

Merged
merged 1 commit into from
Jun 17, 2025
Merged

feat: add debug flag on run #405

merged 1 commit into from
Jun 17, 2025

Conversation

radu-mocanu
Copy link
Contributor

@radu-mocanu radu-mocanu commented Jun 13, 2025

For step-by-step debugging with breakpoints and variable inspection (supported from 2.0.66 onward):

# Install debugpy package
[uv] pip install debugpy
# Run agent with debugging enabled
uipath run [ENTRYPOINT] [INPUT] --debug

For vscode: add the debug configuration in your .vscode/launch.json file.
Place breakpoints in your code where needed.
Use the shortcut F5, or navigate to Run -> Start Debugging -> Python Debugger: Attach

Upon starting the debugging process, one should see the following logs in terminal:

🐛 Debug server started on port 5678
📌 Waiting for debugger to attach...
  - VS Code: Run -> Start Debugging -> Python Debugger: Attach
✓  Debugger attached successfully!

ToDo:

  • ❌ add pycharm support pydevd-pycharm (delayed scope)

@radu-mocanu radu-mocanu self-assigned this Jun 13, 2025
@radu-mocanu radu-mocanu force-pushed the feat/CLI-debug-mode branch from 78d7151 to bee1ed7 Compare June 17, 2025 09:56
@radu-mocanu radu-mocanu changed the title [WIP] feat: add debug flag on run feat: add debug flag on run Jun 17, 2025
@radu-mocanu radu-mocanu force-pushed the feat/CLI-debug-mode branch 3 times, most recently from e2e1ead to 7c36795 Compare June 17, 2025 10:07
@radu-mocanu radu-mocanu requested review from cristipufu and gheorghitahurmuz and removed request for cristipufu June 17, 2025 10:07
@radu-mocanu radu-mocanu force-pushed the feat/CLI-debug-mode branch from 7c36795 to bea162a Compare June 17, 2025 10:10
@radu-mocanu radu-mocanu force-pushed the feat/CLI-debug-mode branch from bea162a to 468430c Compare June 17, 2025 10:12
@radu-mocanu radu-mocanu merged commit edf9949 into main Jun 17, 2025
13 checks passed
@radu-mocanu radu-mocanu deleted the feat/CLI-debug-mode branch June 17, 2025 10:15
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.

2 participants