Results 1 to 5 of 5

Thread: Debugging

  1. #1
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default Debugging

    is there a tut that tells/shows people how to properly report a bug in a script? i was gonna put the process on my page but if someone doesnt have a tut i might aswell make a tut out of it :P

    sorry if wrong section, didnt know where to put as i couldnt find a tut

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

  2. #2
    Join Date
    Mar 2013
    Location
    The Netherlands
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    70 Post(s)

    Default

    Simba Code:
    if (Dosomething) then
    begin
      WriteLn('Doing Dosomething');
      Something := something1 - something2;
     
      Writeln('something = ' + intToStr(Something));
      WriteLn(BoolTostr(something>40));
    end;

    The command writeln writes a string into the log.
    The first writeln will have a static context, but the 2nd and 3th have variables in them on which the result depends. this i my way of debugging, i dont know a different way in imba.

    Code is not checked, i wrote this in the browser.
    Last edited by jelknab; 05-09-2013 at 05:52 AM.
    Nothing to do here :l.

  3. #3
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    thanks but not what I meant lol. im saying is there a tut that "noobs" can read so when they get an error in the script they can properly report it to the scripters thread rather then flame and troll which doesnt solve anything

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

  4. #4
    Join Date
    Sep 2008
    Posts
    754
    Mentioned
    8 Post(s)
    Quoted
    275 Post(s)

    Default

    You can try to look at Ashman's agility script (i think thats what your looking for right?), the way he has it - is that he has a boolean for debug mode, and if players enable it, it will display all the writeln sentences under all the functions, that way people can report exactly where the script got stucked/failed/crashed

    something like

    DebugMode = False;

    if DebugMode then
    writeln('We are doing .....');

    I think it should all errors where ever the script stops/fails.

  5. #5
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    no, no, you guys are over complicating what im saying lol thatnks though. i went ahead and made a guide. feel free to post it on your scripts front page.

    http://villavu.com/forum/showthread.php?t=102849

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •