Skip to content

Added enableDebug FX #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 28, 2025
Merged

Added enableDebug FX #8

merged 2 commits into from
Apr 28, 2025

Conversation

eelcoj
Copy link
Contributor

@eelcoj eelcoj commented Apr 20, 2025

This PR adds a enableDebug FX. It will provide/provides extended debugging capabilities to Stimulus, by listing your values and targets.

extended-debugging

Usage

// app/javascript/controllers/application.js
+import { enableDebug } from "stimulus-fx"

-const application = Application.start()
+const application = enableDebug(Application.start())

Then enable per controller:

 export default class extends Controller {
+  static debug = true
+
  // …
}

TODO

  • Extend README (need separate sections for FX now)
@eelcoj eelcoj merged commit 6d5add3 into main Apr 28, 2025
@eelcoj eelcoj deleted the bugger branch April 28, 2025 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant