Naton 1028 Posted July 6, 2021 Share Posted July 6, 2021 Note on remote debugging: One important thing to note is that remote debugging is not specific to TRiBot. You can find a lot of resources out there on remote debugging. The CLI arg `--remote-debugger` simply tells TRiBot to apply the necessary JVM arguments when launching the TRiBot client so that you can attach a debugger to it. How to use: 1) Start TRiBot with the --remote-debugger CLI argument. See the CLI Arguments section below for an example. 2) Set up a debug configuration in your IDE, and run it. See the guides below to set up a debug configuration for Eclipse/IntelliJ. It will automatically connect when you run the debug configuration, and you have a TRiBot client open that was given the --remote-debugger argument. For info on how to actually use a debugger, perform a quick google search on how to use a debugger with your specific IDE. Eclipse: Spoiler Open Eclipse Go to Run -> Debug Configurations in the menu bar at the top Search Remote Java Application Right click 'Remote Java Application' -> New Configuration You will then have a new debug configuration under Remote Java Application (empty the search for it to appear) By default, TRiBot uses port 8000 as well, so all you have to do now is click the Debug button below It will now attach to the TRiBot client you have opened with the CLI arg --remote-debugger IntelliJ: Spoiler Open IntelliJ Go to Run -> Edit Configurations Click the plus sign to add a new configuration, and select Remote JVM Debug TRiBot uses 8000 as the port for default, so switch that to 8000 (you can include an additional CLI argument to set a different port, but we won't do that here) Then click Apply, and OK Now click Run -> Debug at the menu bar again, and select the debug configuration that you just created. It will now attach to the TRiBot client you have opened with the CLI arg --remote-debugger CLI Arguments: To use remote debugging, simply launch TRiBot with the argument --remote-debugger Ex. java -jar tribot-splash.jar --remote-debugger By default, the port 8000 is used. To specify a port, include the argument --remote-debugger-port Ex. java -jar tribot-splash.jar --remote-debugger --remote-debugger-port 8001 Quote View all my bots on the TRiBot store! (premium) (free) Need assistance with any of my bots? Join the nScript support discord (link below). nScripting.com nScript Support Discord Refund Policy Automate your bot management through nRestocker and the TRiBot Bulk Launcher Link to comment Share on other sites More sharing options...
SkrrtNick 236 Posted July 7, 2021 Share Posted July 7, 2021 Thanks Naton, is remoting debugging what we'd need to use if we wanted to test a script out line by line? Quote Link to comment Share on other sites More sharing options...
Naton 1028 Posted July 7, 2021 Author Share Posted July 7, 2021 2 hours ago, gigiwest123 said: Thanks Naton, is remoting debugging what we'd need to use if we wanted to test a script out line by line? Yes this would be used to attach a debugging and step through your code line by line Quote View all my bots on the TRiBot store! (premium) (free) Need assistance with any of my bots? Join the nScript support discord (link below). nScripting.com nScript Support Discord Refund Policy Automate your bot management through nRestocker and the TRiBot Bulk Launcher Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.