blumi40 222 Posted June 16, 2013 Report Share Posted June 16, 2013 Hi folkshere i show u my methode to handle the scope of variables inside a define.it is a pain in the a.. to debug if u got really big threads with a lot of vars inside u need set every var every list in the define as "Global" if u wanna debug themand after done u have to change that for your threads again to "Local". Sure u can do that with Search/Replace in ya fav. Editor but here is an easyer methode to do that set a var outside your definesi called #theScopeset(#theScope, "Global", "Global") then instead to set the scope to Local or Global use thisdefine mydefine { set(#var1, "newval1", #theScope) set(#var2, "newval2", #theScope) set(#var3, "newval3", #theScope)} if u ready done with your Debug-things set the #theScope toset(#theScope, "Local", "Global") this save a lot of work and time hope u like this tut! 8 Quote Link to post Share on other sites
luis carlos 94 Posted June 16, 2013 Report Share Posted June 16, 2013 Thanks for all your latest threads, u really help the community. 1 Quote Link to post Share on other sites
VaultBoss 310 Posted June 16, 2013 Report Share Posted June 16, 2013 That's a smart workaround, Arno...Personally, I prefer a replace in a text editor - but your method is very good too. Kudos! 1 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted June 19, 2013 Report Share Posted June 19, 2013 Awesome, Thanks! I wish they would give us a local debugger. 1 Quote Link to post Share on other sites
seonid 4 Posted August 28, 2013 Report Share Posted August 28, 2013 Brilliant! Quote Link to post Share on other sites
LazyBotter 188 Posted September 5, 2013 Report Share Posted September 5, 2013 I already do this with a lot my bots, its a great solution when you need to debug. Quote Link to post Share on other sites
jamesfar 15 Posted December 27, 2013 Report Share Posted December 27, 2013 very smart Quote Link to post Share on other sites
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.