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