Jump to content

Search the Community

Showing results for tags 'debugging'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • OSBot
    • News & Announcements
    • Community Discussion
    • Bot Manager
    • Support Section
    • Mirror Client VIP
    • Script Factory
  • Scripts
    • Official OSBot Scripts
    • Script Factory
    • Unofficial Scripts & Applications
    • Script Requests
  • Market
    • OSBot Official Voucher Shop
    • Currency
    • Accounts
    • Services
    • Other & Membership Codes
    • Disputes
  • Graphics
    • Graphics
  • Archive

Product Groups

  • Premium Scripts
    • Combat & Slayer
    • Money Making
    • Minigames
    • Others
    • Plugins
    • Agility
    • Mining & Smithing
    • Woodcutting & Firemaking
    • Fishing & Cooking
    • Fletching & Crafting
    • Farming & Herblore
    • Magic & Prayer
    • Hunter
    • Thieving
    • Construction
    • Runecrafting
  • Donations
  • OSBot Membership
  • Backup

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


MSN


Website URL


ICQ


Yahoo


Skype


Location:


Interests

Found 2 results

  1. Debugging scripts in osbot is pretty simple once you learn abut debugging localprocesses. Here are the basic steps you will need 1. Add a breakpoint into your local script you have create 2. Set your build output to go to your OSBOT scripts folder 3. Create a debug configuration that starts an application with the entry point of org.osbot.boot 4. Run your configuration (do not debug it) to bring up osbot so your local processes in intellij can see it. 5. log into your account and then you are ready to attach to the local script process through intellij. Once you have attached run your script and you should now be debugging your script so any breakpoints that the code hits will now stop and allow you to see the variables. 6. you can also add watches to quickly look up things without using print lines and make debugging much easier now. 7. if you need to do more complex statements you can use evaluate expression to have multiple lines. Looks like images got deleted from site so to view the gifs that explain each step use this google cache link https://webcache.googleusercontent.com/search?q=cache:zre9YWkp3WsJ:https://osbot.org/forum/topic/133159-using-the-debugger-with-osbot-local-scripts/+&cd=1&hl=en&ct=clnk&gl=us or this imgur link: https://imgur.com/a/smwr5lu
  2. Hi All, This is my first post, so first off, nice to meet you all. This seems like a great community and im hoping to contribute by creating some scripts. Im a software developer by profession so fingers crossed i should be able to get the hang of scripting. My question is how do i make debugging easier. I have 2 main issues 1) So im using IntelliJ, as you can see above when i make a change to my script and rebuild, IntelliJ cannot replace the .jar file in my scripts directory. Im guessing this is because the script has been loaded OSBot so its technically being used by that process. Every time i make a modification to my script i need to completely close OSBot client, then build. Then start up OSBot and log into my account again. (Just to confirm i have stopped my script). As you can imagine time is very time consuming, and may look a bit dodgy (level 3 account logging in and out non stop...) - Any tips here? 2) Is there any way i can debug from IntelliJ, like insert breakpoints, check variable values, stack trace etc? (this isnt a major, would just be super helpful). Apologies if these are obvious questions, im somewhat experienced in OOP (C#) but i've only just started using Java / IntelliJ today. EDIT : Questions answered. Thanks guys and gals
×
×
  • Create New...