console.debug is not working in Chrome

Asked

Viewed 997 times

2

I’m using the version 58.0.3029.110 (64-bit) browser (the last one available here when creating this question), and when trying to execute the following code:

console.debug("Teste", 1);

The result is just:

undefined

And nothing is printed on the screen.

Chrome:inserir a descrição da imagem aqui

The same code works normally in other browsers.

Firefox: inserir a descrição da imagem aqui

IE: inserir a descrição da imagem aqui

  • This is the expected result: https://console.spec.whatwg.org/#logger

  • Yes, but he’s not printing the requested message, despite the return undefined. I edited the question by adding images.

  • 2

    They changed the filters, in the combo where it is written "Info" in the screenshot you can choose the log level, if you put it as "Verbose" the messages of console.debug appear, but I would say to use the console.log even

  • @Leandrogodoyrosa only convert in reply I accept, haha... Thank you very much!

2 answers

6


In the latest version of Chrome some changes were made to the console filters.

Now it has a combo with log level options, by default it comes as Info, which hides any log created by calls to console.debug(), to view these logs just need to change the level to Verbose.

Exemplo de uso

  • 1

    Excellent +1, I added the image to make it more intuitive.

2

Browser other questions tagged

You are not signed in. Login or sign up in order to post.