3. 3
Introduction to Debugging
What is debugging ?
Debugging is a process of detecting
and resolving errors in a project that
would cause it to behave
unexpectedly or crash.
When should we debug ?
It is usually recommended to perform
debugging during the design stage of
the automation project, at activity,
file, and project level.
Why should we debug ?
It plays a significant role in ensuring
the reliability, accuracy, and
efficiency of automation workflows.
5. 5
Debug File
Stop
The UiPath Studio Debug panel
Step Into
Step Over
Step Out
Retry
Ignore
Restart
Focus
Breakpoints
Slow step
Execution Trail
Highlight elements
Log elements
Continue on exptn
Picture in Picture
Remote Deb
Profile execution
Open logs
6. 6
And the right click options ..
Tip :
Click Debug or use F5 to debug the whole project.
Click Debug File or use F6 to debug the current file.
8. 8
How does debugging help developers?
Identifying and Fixing Errors : Debugging allows developers to
identify and locate errors, enabling them to fix the issues and
ensure the automation runs smoothly.
Optimizing Performance: Developers can identify bottlenecks,
areas of inefficiency, and resource-intensive activities.
Testing Different Scenarios: Debugging enables developers to
test various scenarios and conditions that may arise during the
execution of the automation.
9. 9
Other benefits of debugging!!
Enhancing Code Understanding : As developers step through
the automation during debugging, they gain a deeper
understanding of the code and its behaviour.
Building Confidence : Debugging provides developers with the
confidence that their automation is robust and reliable. By
thoroughly testing and resolving issues during development, they
can trust that the automation will function correctly in a production
environment.