Skip to content

Debugging

Debugging is running your playbook to see what it really does, find where it fails, and fix it. The Designer lets you run the playbook on your own machine as many times as you want before publishing it to Zoan Cloud — so you catch problems while you can see them with your own eyes.

Local execution uses Agent installed on your same machine, so make sure it is running first.

  1. Verify that Zoan Agent is active (its icon appears in the system tray, next to the clock).
  2. In the Designer toolbar, click Run (button with play icon).
  3. The playbook starts running and the logs panel (bottom) shows the messages in real time.

Designer running, with the log panel below showing messages and nodes highlighted.

As it runs, the Designer highlights the activity in progress, so you see exactly where the flow is going.

During and after the execution, the logs panel shows you:

  • The messages that you issue with the Log activity.
  • The activity that is being executed at each moment.
  • The errors and their detail (stack trace) when something fails.
  • The time of execution.
[INFO] Iniciando ejecución
[INFO] browser-open: chrome → erp.cliente.com
[INFO] page-fill: #usuario
[WARN] page-wait-for: reintentando (1/3)
[ERROR] page-click: selector "#guardar" no encontrado tras 10000ms
[FAIL] Ejecución detenida — 8.7s

The Log activity lets you write messages with a level of severity. Use them to leave “footprints” that explain what is happening:

NivelWhen to use it
debugFine detail for deep diagnosis
infoNormal process milestones (“10 invoices read”)
warningSomething unexpected but not fatal (“client without mail, skipped”)
errorA failure that prevents you from continuing

Upon completion of an execution—whether it was successful or not—the variables panel displays the final value of each variable. This is key for debugging: if the playbook failed to write an Excel, check what the variable actually had with the table; Maybe it arrived empty or with unexpected information.

variables panel showing the final values after a run.

Not all errors should bring down execution. For those you wait (an email without an attachment, a page that sometimes takes a while), use these two activities from the Core package:

Executes the activities of lane try; if any failure, the flow jumps to lane catch, where you can log the error and continue with a plan B instead of stopping. See Try / Catch.

Try/Catch errorVariable = error
├─ try:
│ Excel Read Range → tabla
├─ catch:
│ Log level = error message = = "No se pudo leer el Excel: " + error

errorVariable saves the error message as text, so it is read directly with = error (not error.Message).

You retry a group of activities several times before giving up. Ideal for actions that fail intermittently (the network, a slow page). See Retry.

Retry attempts = 3 delay = 2000
└─ body:
Page Click selector = "#guardar"
ErrorCausa probableSolution
Agent no disponibleAgent is not runningOpen it from the start menu and wait for it to connect
Package not installedThe activity uses a package missing from the AgentInstall it from Zoan Cloud → Packages
Variable no declaradaA variable was used without declaring itDeclare it on the panel or correct the name
Incompatible typeThe result of one activity is not of the type expected by the nextCheck the types in the variables panel; converts with toNumber, toString, etc.
Selector no encontradoThe page/app changed, or had not finished loadingAdd a Page Wait For before, or adjust the selector
TimeoutThe action took longer than the time limitRaise parameter timeout or wait for a precondition