Skip to content

core/avm1/avm2: Remove avm_debug - #25126

Open
Lord-McSweeney wants to merge 4 commits into
ruffle-rs:masterfrom
Lord-McSweeney:debug-refactor
Open

Lord-McSweeney wants to merge 4 commits into
ruffle-rs:masterfrom
Lord-McSweeney:debug-refactor

Conversation

@Lord-McSweeney

Copy link
Copy Markdown
Member

Description

This feature was useful in the past, but we now have the Debug Tools in desktop Ruffle, which are much more comprehensive and easy to use. avm_debug support was a source of maintenance burden for us: for example, it required us to handle Op::Debug in AVM2.

Testing

No functional changes (unless you're compiling with avm_debug)

Checklist

  • I, a human, have self-reviewed this PR and fully understand the changes within.
  • I have made or updated tests where possible.
  • All of my commits are properly scoped, compile successfully, and pass all tests.
  • This PR does not make sense to split up into smaller PRs.
  • An LLM was involved in the authoring of this code.

@Lord-McSweeney Lord-McSweeney added A-core Area: Core player, where no other category fits T-refactor Type: Refactor / Cleanup labels Nov 7, 2026
@evilpie

evilpie commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

I think this is a good idea, this was never useful to me either. Please also update the CONTRIBUTING.md: https://github.com/ruffle-rs/ruffle/blob/master/CONTRIBUTING.md#debugging-actionscript-content.

…exceptions

The `avm_debug` features in AVM2 were not very useful as they were, due
to the verbosity of the output. This commit removes all of them except
for support for logging caught exceptions, which can still useful.
We already have good support for debugging through the desktop Debug
Tools.

Logging of caught exceptions is now the only remaining avm_debug-
specific feature.
The only remaining use of this feature was for logging AVM2 caught
exceptions. In the future, I plan to add more AVM2 debugging and
profiling support using this feature.
Comment thread CONTRIBUTING.md Resolved
Remove references to `avm_debug`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-core Area: Core player, where no other category fits T-refactor Type: Refactor / Cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants