Results 1 to 8 of 8

Thread: How can I enable the Debug Button?

  1. #1
    Join Date
    Apr 2014
    Posts
    323
    Mentioned
    0 Post(s)
    Quoted
    131 Post(s)

    Default How can I enable the Debug Button?

    I remember this button used to work and be SUPER useful. You could press it and watching the Simba program go through the script line by line; It made it really easy to see what exactly was happening and where things where messing up.

    At the moment, it's disabled and I can't press it. How can I enable it?

    debug button.png
    If all pork-chops were perfect, we wouldn't have hot-dogs.

  2. #2
    Join Date
    Apr 2013
    Posts
    680
    Mentioned
    13 Post(s)
    Quoted
    341 Post(s)

    Default

    i may be wrong... but i only remember the debug working in pascal. since we move to lape.. its obsolete

    <------------------>



  3. #3
    Join Date
    Apr 2014
    Posts
    323
    Mentioned
    0 Post(s)
    Quoted
    131 Post(s)

    Default

    Quote Originally Posted by AFools View Post
    i may be wrong... but i only remember the debug working in pascal. since we move to lape.. its obsolete
    Awe man. Any reason that it would work in Pascal and not Lape?
    If all pork-chops were perfect, we wouldn't have hot-dogs.

  4. #4
    Join Date
    Mar 2013
    Posts
    1,010
    Mentioned
    35 Post(s)
    Quoted
    620 Post(s)

    Default

    Quote Originally Posted by hakishakataki View Post
    Awe man. Any reason that it would work in Pascal and not Lape?
    Since it needs changes in lape for it to be implemented in simba
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  5. #5
    Join Date
    Apr 2013
    Posts
    680
    Mentioned
    13 Post(s)
    Quoted
    341 Post(s)

    Default

    Alternatively make a debug function and have fail safes that debug(break) from a function. I use reflection which i think is alot easier to debug than areolib...

    <------------------>



  6. #6
    Join Date
    Apr 2014
    Posts
    323
    Mentioned
    0 Post(s)
    Quoted
    131 Post(s)

    Default

    Quote Originally Posted by Harrier View Post
    Since it needs changes in lape for it to be implemented in simba
    I see. Any idea how we can go about that?
    If all pork-chops were perfect, we wouldn't have hot-dogs.

  7. #7
    Join Date
    Apr 2014
    Posts
    323
    Mentioned
    0 Post(s)
    Quoted
    131 Post(s)

    Default

    Quote Originally Posted by AFools View Post
    Alternatively make a debug function and have fail safes that debug(break) from a function. I use reflection which i think is alot easier to debug than areolib...
    I use reflection too. I SORT of do that with (exit) and (WriteLn). It works okay but it's tedious.
    If all pork-chops were perfect, we wouldn't have hot-dogs.

  8. #8
    Join Date
    Apr 2013
    Posts
    680
    Mentioned
    13 Post(s)
    Quoted
    341 Post(s)

    Default small example

    honestly when i first started to grasp the reflection include i crossed referenced with Fittas include it gave me something to compare and learn from.

    i suggest having a look through his include... i wouldn't "use" it as Kyle's include is far more inclusive. Also beware there are a couple hooks missing...

    ie. Playerhealth and isunderattack - check for animation instead GetInteractingIndex > 0

    Code:
    Procedure Debug(Comment: String; Error: Boolean);
    var
      S: String;
    begin
      Failed := Error;
    
      If Error then
      begin
        Debug_screen(Comment);
        S := '[ERROR] ';
      end else
        S := '[' + msToTime(GetTimeRunning, TIME_SHORT) + '] ';
    
      Writeln(S + Comment);
    end;
    Code:
      if Not isLoggedIn then
      begin
        Debug('Failed quickLogin', True);
        TerminateScript;
      end else
        Debug('Welcome online!', False);
    Kyle include may have a debug i havent actually checked. =|

    <------------------>



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
  •