How to Debug Variables values in browser dev tools

Hi all wapplers !

Is there a way to see what’s in my variables with the dev tool of chrome or firefox ?
I’d like to to check with values are setted in.
image

Thank’s

Well just open the browser dev tools, go to the console and enter:

dmx.app.data

And you can expand all the app connect data on the page and explore it.

2 Likes

so easy, thanks a lot!

@George that’s just what I needed to know as well. Thanks.

Are there any other simple little tricks like this that you can share with us?

That does look like useful information!

And if you have a variable called my_var, you can type

dmx.app.data.my_var

which is super useful.

QUESTION: Is there a way for the display of my_var to be continuously updated without needing to keep typing in dmx.app.data.my_var...?

Yes, use live expressions in your dev tools :slight_smile:
https://developers.google.com/web/tools/chrome-devtools/console/live-expressions

2 Likes

Wow… that is super useful @Teodor… thank you! :slight_smile:

2 Likes

Been working with a node design and it seems to need the word content inserting…

dmx.app.data.content.my_var

If you want to access the components on a node content page, then you need to enter content to inspect it. Components on the main page are outside the content:

But this can easily be found by entering dmx.app.data in the console and exploring its content.