themuffinman32 Posted July 19, 2018 Posted July 19, 2018 Hi guys, new user here! I'm interested in writing scripts and I've so far successfully setup an environment where I can run some skeleton scripts! Because the OSBot client spawns a new process post login, I'm relatively confident I'm not able to debug using breakpoints with intellij (correct me if i'm wrong please :)). Does anyone know if I can launch OSBot so that I can see logs that I write to stdout? Thanks
themuffinman32 Posted July 19, 2018 Author Posted July 19, 2018 Nevermind, I figured out how to use the debugger! You can actually run the client with a remote debug entry port ie: java -jar "osbot 2.4.145.jar" -debug 5005 You can then setup a remote debug process in intellij to connect to that port!@ 1
Apaec Posted July 19, 2018 Posted July 19, 2018 2 hours ago, themuffinman32 said: Nevermind, I figured out how to use the debugger! You can actually run the client with a remote debug entry port ie: java -jar "osbot 2.4.145.jar" -debug 5005 You can then setup a remote debug process in intellij to connect to that port!@ Alternatively, you can use the MethodProvider log method to write a message to the in-client logger accessible through the client options menu. -Apa
themuffinman32 Posted July 20, 2018 Author Posted July 20, 2018 I don't see the option to use the in-client logger, sorry. This is what I see https://i.imgur.com/X5uLHJc.png
JioMy Posted July 20, 2018 Posted July 20, 2018 25 minutes ago, themuffinman32 said: I don't see the option to use the in-client logger, sorry. This is what I see https://i.imgur.com/X5uLHJc.png go to settings->toggle logger.