Skip to content

Debug utility to track operations on a specific table - #7275

Draft
lL1l1 wants to merge 3 commits into
developfrom
tooling/debug-utils
Draft

Debug utility to track operations on a specific table#7275
lL1l1 wants to merge 3 commits into
developfrom
tooling/debug-utils

Conversation

@lL1l1

@lL1l1 lL1l1 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Description of the proposed changes

  • Clean up logging/comments
  • Hook setmetatable only when needed
  • Handle merging metatables fully/handle all table operations
  • Format output spacing better for log
  • Output chronological order of all operations instead of by-type
  • Use error text that matches the engine for __call (and other operations)
  • Add annotations
  • Custom cleaned up traceback function (localize paths and such)?
  • Split logic into functions for possible reuse (for example, creating a new tracked table targeting the given table instead of replacing a given table's contents)
  • Limit the repr output of tables.
  • Options for what to track, for example not using repr on tables, or setting repr options.

Testing done on the proposed changes

See #7256 (comment) for usage of the tool in-action, and the used branch with an example output

Checklist

@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants