Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Print to debugger peripheral (on craftos) #89

@Commandcracker

Description

@Commandcracker

Describe the feature.

debugger-peripheral

code snippets:

local debugger = peripheral.find("debugger")
function debug(...)
    if args.verbose then
        print(...)
    end
    if debugger then
        debugger.print(...)
    end
end
if periphemu then
    periphemu.create("right", "debugger")
end

local debugger = peripheral.find("debugger")
function debug_print(...)
    if debugger then
        debugger.print("[" .. os.date("%H:%M:%S") .. "] " .. table.concat({ ... }, " "))
    else
        print(...)
    end
end
if periphemu then
    periphemu.create("top", "speaker")
    -- Fuck the max websocket message police
    config.set("http_max_websocket_message", 2 ^ 30)
    -- create debugger
    if args.verbose then
        periphemu.create("right", "debugger")
    end
end

local debugger = peripheral.find("debugger")
function debug(...)
    if args.verbose then
        libs.youcubeapi.debug_print(...)
    end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    clientIssues related to YouCube's clientfeature requestNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions