Debug doesn't start in current workflow

When we run debug on a single workflow, it opens Main.XAML and runs the entire process. We are looking to debug the current workflow only.

Also, when debug completes, it closes the browser (even though we set Use Application/Browse close setting to “Never”)

@rob.bennett can you try opening the workflow which needs to be debug and then click on debug file directly instead of debug (don’t click on drop down)

Hi @rob.bennett
Welcome to UiPath

Pls click on >>Debug File Click or use F6 to debug the current file.

For more action check below link.

If found helpful mark as solution. Happy Automation

  1. Issue 1: Debug the current workflow only
    Open only the current workflow file which you want to debug and Click Debug File or use F6 to debug the current file. Screenshot attached below
  2. Issue 2: Browser Close. Once verify below settings as well
    Project Settings:
    a. In the Project panel, go to Project Settings.
    b. Navigate to Activities Settings > UI Automation Modern.
    c. Modify the Application/Browser – Close [Run Value or Debug Value] based of requirement [Screenshot attached below].
    d. Click OK to save changes.

@rob.bennett

Welcome to community!!

  1. while debugging make you are on the exact workflow file which needs to debug. and click on only play icon or F6
  2. under use application browser set the Open property as always.

and try