[Release] Builtin Debug Formatter

  • Builtin Debug Formatter

    A simple debug class which is used for output the messages for debugging.
    The class doesn't need to be called, we've added the functions into built-in functions.
    The purpose was to ease the work of developers.

    What's the difference between them?

    • Using the new method:
    Python
    1. TraceError("str", 1, 4.0, (31, 22), [100, 200], True)
    2. Tracef("str", 1, 4.0, (31, 22), [100, 200], True)
    3. LogBox("str", 1, 4.0, (31, 22), [100, 200], True)
    4. sys_err("str", 1, 4.0, (31, 22), [100, 200], True)
    5. # No import needed, is a built-in function, you can call it everywhere.
    6. # The function sys_err or TraceError doing the same thing.
    7. # Allow to pass unlimited argument-lines, no data types check, can be everything you want: <int, float, string, tuple, list, boolean>.
    • Using the old method:
    Python
    1. import dbg
    2. dbg.TraceError("just_one_string_allowed")
    3. dbg.Tracef("just_one_string_allowed")
    4. dbg.LogBox("just_one_string_allowed")
    5. # Need to import the module dbg every time in every file where you want to use it.
    6. # Allow to pass just one argument-line which need to be string, otherwise nothing happen.

    Built-In-Functions:

    Built in or inbuilt function are that type of functions which are already defined or created in a program or in programming framework. User don’t need to create these type of functions. User or developer can directly use built in function by only call it. This function is built into an application and can it can be accessed by end-users with simply call it.

    How-It-Works:

    • TraceError(args) - function prints the given arguments to the text stream file syserr.txt
    • Tracef(args) - function prints the given arguments to the console window (screen) while executable is compiled in a debug mode.
    • LogBox(args) - function prints the given arguments to the dialog box that contains a system icon, a set of buttons, and a brief application-specific message, such as status or error information.
    • sys_err(args) - same as TraceError.

    How-To-Call-Ex :

    GitHub repository:

    .

    7 Mal editiert, zuletzt von VegaS ()