Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

88
Visualizações
View javascript object model in real time

Are there tools or techniques (other than repeated console.log() calls) to view the javascript object model used in a web page in real time? eg something like:

    firstUser (User)
    -- userName Joe Bloggs (String)
    -- userEmail joe.bloggs@gmail.com (String)
    -- userSelections (Array)
    ----[1,2,4]

    secondUser (User)
    -- userName John Doe (String)
    -- userEmail jogn.doe@gmail.com (String)
    -- userSelections (Array)
    ----[1,2,3]

I know this can be achieved using console.log(firstUser) and console.log(secondUser) but it would be useful to be able to display the entire data model so that I can see variables being altered in real time.

about 4 years ago · Juan Pablo Isaza
3 Respostas
Responde à pergunta

0

You can use the debugger of the development tools in Chrome or Firefox. Just set a break point and view the state of all variables under the scope header.

about 4 years ago · Juan Pablo Isaza Relatório

0

One option is using the watch panel on the right inside the source tab to help you monitor different variables

enter image description here

You could also use the console.table() method (instead of console.log) which displays tabular data as a table.

about 4 years ago · Juan Pablo Isaza Relatório

0

The best approach is configure the logger package ( I really recommend pinojs ) and configure a "log level" strategy for your application, you can read more about here

But you also can do that:

console.log(JSON.stringefy(user))
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda