How to identify Debug or Run session

How to programmatically identify whether it is run session of debug session.
I want to exclude one sequence for run session but that sequence should execute in debug session. I can put that sequence in IF block but how I can identify it is run session or debug.

1 Like

We typically have an argument for DebugMode that we leave as true when running locally. But you could update before clicking run or debug.

I’m unaware of a programmatic way of obtaining this information.

You might try typing Uipath. in the right side of an assign. I’m guessing it’s in there somewhere.