How to inspect - log variable from js of website u visit?

I want to see data of variables of desired website
So I tried to download full page and to add logs but then I got CORS.
Server does not have jsonp feature

Did you try to inspect the element?
Then from inside the console, check out the Sources section. It usually shows the js file.

that was my ‘very’ first attempt

Did it not work?
What site were you looking at?

No matter what target is, i asked globally

when u open js sources, u cant inspect variables, in case u dont put `debugger;` in code + i cant use browser console cause in my case vatiable doesnt have global reference nor some kind nested reference

I’m sorry. This must be beyond my scope of knowledge.
I hope someone else can provide the answer.

1 Like

I ll try soon to trace incoming data from server and somehow to change js file before it is browser

Please let me know how that is working for you.

This article may be of interest to you:
Things you probably didn’t know you could do with Chrome’s Developer Console

very useful post ty
But do not help me in my case

Here under section web proxy
burp suite can achive this
There is also how he works
I didnt try this, cause some time i will not have access to computer
But software features looks straightforward

Thank you. I will check it out.