February 28, 20178 yr Is there anyway to debug the script as it is being used. I like Osbot and i know with other sites it is possible to debug the code step by step as the bot runs. Is there anyway to do this is osbot?
February 28, 20178 yr Local script yes not sdn script well theoretically maybe but you wont be able to see the code of a sdn script
February 28, 20178 yr Author 8 minutes ago, Saiyan said: Local script yes not sdn script well theoretically maybe but you wont be able to see the code of a sdn script It is a local script. I try and run in eclipse but it says there is no main.
February 28, 20178 yr 7 minutes ago, Saiyan said: Local script yes not sdn script well theoretically maybe but you wont be able to see the code of a sdn script Any idea how to do this? Cause I believe you're talking about debug messages which the scripter can place anywhere in a script, and op is talking about running a "debug tool" (dunno how it's called) on the script. Like pressing next next next and it jumps though code line by line.
February 28, 20178 yr Author i meant where i can put breaks in the code, or where i can see it is in the code to see where the code is breaking
February 28, 20178 yr Just use the built in logger of osbot, or your IDE's stack outputter to debug the script, for instance if you wanted to check a certain condition was being met, and verify it, then you could do: if (some condition) { log("debug comment here"); do whatever; } Whereby if the debug text isn't then printed in the log, you can safely assume that the condition is invalid, or isn't being executed/reached in your code. Edited February 28, 20178 yr by Pseudo
February 28, 20178 yr @olstan @nosepicker See this thread: https://osbot.org/forum/topic/100378-osbot-24678-bot-farming-made-easy-cli-finished/?_fromLogin=1 In short. You run the osbot via cli java -jar "osbot.jar" -debug 5005 And in your IDE you set to debug on that port. Edited February 28, 20178 yr by Zappster