From UBot Playground
Jump to: navigation, search

The UBot Studio Debugger allows you to watch variables, tables and lists while the script is running.

This is an excellent way to isolate any issues you might encounter during scripting.

To help organize and sort tables, lists, and variables in large scripts, the debugger has a search and sort feature.


The Auto Refresh option is excellent for pulling large amounts of information at a time.

Un-check the check box next to Auto refresh to prevent application slow-down as a result of pulling large amounts of data.

Hit the refresh button once the process is complete to view the items in the table.


For example, a script script is scraping the names of each result in the the search engine.

Running the script and watching the debugger, we will be able to watch each item being added to the list.

The debugger also allows us to know how many items are in a list, as well as exactly what is in the list.

navigate("", "Wait")
type text(<name="q">, "kiran ahluwalia", "Standard")
click(<name="btnK">, "Left Click", "No")
loop(4) {
    add list to list(%mylist, $scrape attribute(<href=w"http://*/">, "innertext"), "Delete", "Global")
    click(<id="pnnext">, "Left Click", "No")


For tables, the Debugger is able to display the number of items in the table. It also displays each item in each cell.

navigate("", "Wait")
scrape table(<innertext="AliceBlue ">, &my table)


For variables, the debugger will simply display the variable name and whatever the value is for the variable.

If the value for the variable changes, the debugger will reflect that change in the debugger window.

navigate("", "Wait")
set(#colours, $scrape attribute(<innertext="AliceBlue">, "innertext"), "Global")