Trace for Scripts

Would it be possible to get the “Trace” into scripts as well? I mean the same trace that you currently implemented into Automations.
I currently have a button in the UI that calls a script, which has lots of A/B conditions and triggers other scripts/automations based on the conditions, so I’d like to “debug” this as well, the same way I currently am able to debug any of the automations.

Of course currently I could just convert my script into an automation, which the UI button would call, but nevertheless, I feel like adding the Trace into scripts as well would bring more value for the HA.

I’m very confused.
It looks like script tracing is added: Add support for tracing script execution by emontnemery · Pull Request #48276 · home-assistant/core · GitHub
But I can’t figure out a way to see it.

2 Likes

It’s a bit bulky but couldn’t you take your script, but it in automation and run it manually to test it?

That appears to be in the Dev branch. Any idea when this will be released into the production version of Home Assistant?

Scripts now have this feature:

1 Like

Is this available form the Logbook screen like it is for Automations?
If yes why don’t I see it?
If no, why not?