Jump to content

Crashdetect Plugin


Guest RockStar

Recommended Posts

Guest RockStar

Acest Plugin a fost creat de 0x5A656578 si ajuta la depistarea crashurilor in gamemode pentru Windows si Linux.

Topicul Original.

Exemplu:

#include <a_samp>

main() {

    function1();

}

function1() {

    function2();

}

function2() {

    new buf[10];

    fread(File:123, buf);

}

Cand va ajunge la "function2" serverul se va inchide automat iar daca folosesti windows iti va da un cod necitabil in crashinfo.txt.

Cu crashdetect vei vedea urmatorul lucru in serverlog:

[12:23:12] Crash caused by fread at address 00000090 (gamemodes\test.amx)
Fiind mai informativ, iti vei da seama de unde a aparut crashul si vei putea remedia eroarea de cod. Ce este mult mai interesant de vazut este modul in care acesta functioneaza...doar compileaza scriptul acela folosind informatii simbolice si vei gasi asta:
[12:20:55] Crash caused by fread on line 13 in test.pwn (gamemodes\test.amx)
[12:20:55] Stack trace of gamemodes\test.amx (most recent call first):
[12:20:55]   function2 on line 8 in test.pwn
[12:20:55]   function1 on line 4 in test.pwn
[12:20:55]   main (entry point)

Acum vedem ce sa intamplat.

Download

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 2 weeks later...
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.