[RLS]Metin2 Debug trace - Used by developers.

  • Hi, I was bored to always use sys_err when troubleshooting systems and problems.
    So I decided to write a printer




    METIN2_DEBUG_TRACE

    C: char.cpp
    1. void CHARACTER::Destroy()
    2. {
    3. METIN2_DEBUG_TRACE("CHARACTER::Destroy");


    When the Destroy function is called, DEBUG_TRACE will print that text intro the putty console.
    In this way you can see if your function is really called and when is called.

    • Debug_Trace can't have arguments


    METIN2_DEBUG_TRACE_ARGS

    C
    1. void CClientManager::SendShps(DWORD pid)
    2. {
    3. METIN2_DEBUG_TRACE_ARGS("CClientManager::SendShops", pid);
    • It's same as DEBUG_TRACE but you can add arguments.
    • This will print intro Putty console the CClientManager::SendShops and the pid number.


    METIN2_DEBUG_SAY


    C
    1. void CHARACTER::Destroy()
    2. {
    3. METIN2_DEBUG_SAY() << "It works one line ";
    4. METIN2_DEBUG_SAY() << "It works two line:";
    • Say it's same as these two, but you can add it more times in a function body (debug_trace and debug_trace_args can be added just one in a function)


    Bitte melden Sie sich an, um dieses Bild zu sehen.
    Here i used to debug some login issues.


    Bitte melden Sie sich an, um diesen Link zu sehen.


    Good luck with developing,. :love::thumbup::thumbup:
    For any issue message me.

    4 Mal editiert, zuletzt von Ira™ () aus folgendem Grund: Updated with a working link.

  • Dieses Thema enthält 6 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind, bitte registrieren Sie sich oder melden Sie sich an um diese lesen zu können.