Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Debug

Featured Replies

Is there anyway to debug the script as it is being used.

I like Osbot and i know with other sites it is possible to debug the code step by step as the bot runs.

 

Is there anyway to do this is osbot?

Local script yes not sdn script well theoretically maybe but you wont be able to see the code of a sdn script

  • Author
8 minutes ago, Saiyan said:

Local script yes not sdn script well theoretically maybe but you wont be able to see the code of a sdn script

It is a local script. I try and run in eclipse but it says there is no main.

 

7 minutes ago, Saiyan said:

Local script yes not sdn script well theoretically maybe but you wont be able to see the code of a sdn script

Any idea how to do this? Cause I believe you're talking about debug messages which the scripter can place anywhere in a script, and op is talking about running a "debug tool" (dunno how it's called) on the script. Like pressing next next next and it jumps though code line by line.

  • Author

i meant where i can put breaks in the code, or where i can see it is in the code to see where the code is breaking

 

Just use the built in logger of osbot, or your IDE's stack outputter to debug the script, for instance if you wanted to check a certain condition was being met, and verify it, then you could do:

if (some condition) {
    log("debug comment here");
    do whatever;
    }

 

Whereby if the debug text isn't then printed in the log, you can safely assume that the condition is invalid, or isn't being executed/reached in your code.

Edited by Pseudo

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.