Output of code defined in "JS file" action

Hello,

I was just setting up a new page where I need some JS functions available for all actions on that page/application. So I created a new JS file “action” and defined my functions. For debugging purposes I always write out some console.log(...)s and here is my issue:

When invoking these functions from an action, it seems like the console.log(...)s are lost to whatever JS runtime is running them. They are present in the global logs tab, but I’d like to see them in the specific action that invoked them.

Is there some workaround, or is it even expected behaviour?

E.g.

JS file action

function test() {
  console.log("This is only visible in the global logs tab");
}

Action with code step

test();

Logs in that action
image

Global logs
image

2 Likes

Hello @Max

At the moment of an action call, there is no information about the called action, so it’s only displayed in the global logs.
I’ve shown this to the product team, and we can confirm this is a valid feature request, so I’ll put it on our roadmap and backlog. Once I confirm the ETA with the team, I’ll let you know.

Thank you!

1 Like