Jump to content

New osbot user debugging help?


themuffinman32

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...