Wave
  • 👋Introduction
  • 🌊Getting Started
  • đŸ’ģFunctions
    • 🎮Console
    • 🌎Environment
    • 📂File System
    • đŸĒHooking
    • đŸ–ąī¸Input
    • 💡Miscellaneous
    • đŸ“ŗNetwork
    • đŸĒžReflection
    • đŸ•šī¸Script
    • 📊Table
    • đŸ“ļSignal
  • 📚Libraries
    • 👨‍🎤Actors
    • đŸ—ƒī¸Cache
    • 👾Crypt
    • 🐞Debug
    • đŸ–ī¸Drawing
    • đŸ–Ĩī¸ImGui
    • 📎WebSocket
  • âœī¸Changelogs
  • 📃Credits
Powered by GitBook
On this page
  • Get Constant
  • Get Constants
  • Get Info
  • Get Proto
  • Get Registry
  • Get Stack
  • Get Upvalue
  • Get Upvalues
  • Set Constant
  • Set Metatable
  • Set Proto
  • Set Stack
  • Set Upvalue
  1. Libraries

Debug

Get Constant

<variant> debug.getconstant(<function> f, <int> idx)
  • Returns the constant at index idx in function f or level f.


Get Constants

<table> debug.getconstants(<function> f)
  • Returns the constants in function f or at level f.


Get Info

<table> debug.getinfo(<function> f)
  • Returns a table of information about function f.

Info:

Name
Type
Description

name

String

The name of the function.

short_src

String

A shorter version of source.

what

String

What the function is: Lua = Lua function - C = C function

currentline

Integer

The line that is currently active.

nups

Integer

The number of upvalues that the function has.

func

Function

The function that is active.

source

String

Where the function was defined.


Get Proto

<table, function> debug.getproto(<function> f, <int> idx, <bool?> activated)
  • Gets the inner function of f at index.


Get Registry

<table> debug.getregistry(<void>)
  • Returns the Lua registry.


Get Stack

<table> debug.getstack(<function> f, <int> idx)
  • Gets the method stack at level or function f.


Get Upvalue

<variant> debug.getupvalue(union<function, number> f, <number> idx)
  • Returns the upvalue with name idx in function or level f.


Get Upvalues

<table> debug.getupvalues(<function> f)
  • Retrieve the upvalues in function f or at level f.


Set Constant

<void> debug.setconstant(<function> f, <int> idx, union<number, bool, string> value)
  • Set constant idx to tuple value at level or function f.


Set Metatable

<table> debug.setmetatable(<table> o, <table> mt)  
  • Set the metatable of o to mt.


Set Proto

<void> debug.setproto(<function> fi, <number> index, <function> replacement)
  • Replaces fi at index with function replacement at level or function fi.


Set Stack

<void> debug.setstack(<function> f, <int> idx, <table> value)
  • Sets the stack indice at indice to value at level or function f.


Set Upvalue

<void> debug.setupvalue(<function> f, <int> idx, <table> value)
  • Set upvalue idx to value at level or function f.


PreviousCryptNextDrawing

Last updated 5 months ago

📚
🐞