Rule Documentation CPM NOOP 004 - rpapub/WatchfulAnvil GitHub Wiki

CPM-NOOP-004 - Debugger Attachment Wait Rule

Rule ID: CPM-NOOP-004 Scope: Project


Description

The Debugger Attachment Wait Rule is a development-only utility used to introduce a controlled delay in Workflow Analyzer execution. This rule pauses analysis for 10 seconds, allowing developers to attach a debugger to UiPath Studio or a custom rule host.

It’s a no-operation (noop) rule and does not evaluate the contents of the project or flag any errors. It's primarily used for debugging custom rules during development and troubleshooting.


Recommendation

This rule is disabled by default and should only be enabled during active rule development or debugging sessions.

Why is this important?

🛠️ Helps developers attach debuggers to diagnose rule behavior. 🕐 Prevents missed breakpoints during dynamic rule loading. 🧪 Facilitates controlled execution pauses in testing environments.

How to Use It

  1. Enable the rule temporarily in Workflow Analyzer settings.
  2. Trigger analysis in Studio or another host.
  3. Use the 10-second delay to attach a debugger (e.g., Visual Studio).
  4. Step into the rule’s execution logic as needed.

Example Usage

1. Enable CPM-NOOP-004 in Project Settings > Workflow Analyzer.
2. Run Workflow Analyzer on a project.
3. Attach debugger while the rule pauses for 10 seconds.

Modifying the Rule

This rule is disabled by default to avoid unnecessary delays during routine analysis.

Steps to Enable in UiPath Studio

  1. Open Project Settings.
  2. Go to the Workflow Analyzer tab.
  3. Locate CPM-NOOP-004 - Debugger Attachment Wait Rule.
  4. Check the rule to enable it.

Use Cases for Debugging Pause

Scenario Why a Debugger Pause is Useful?
Debugging custom rules Gives time to attach debugger before logic executes.
Verifying rule behavior on startup Useful when analyzing execution flow or rule registration.
Development in CI environments Enables inspection during automated testing and diagnostics.

Reset to Default Values

By default, CPM-NOOP-004 is disabled to ensure optimal analysis speed.

To restore default settings, right-click the rule in the Project Settings window and select Reset to default.


Rule Behavior Summary

Rule Behavior Result
Rule enabled ⏳ Waits 10 seconds, logs to console.
Rule disabled (default) ✅ Skipped during analysis.
Always returns no errors ✅ No errors are ever triggered by this rule.

This rule is ideal for internal testing and should be excluded from production environments. 🧩