1

Have anyone known where is the output of console.log in the InspectorBackend.js of devtools code. I found the console panel in the chrome have no any output.

for example, I have set dumpInspectorProtocolMessages = true, and and also add console.error in the function _wrapCallbackAndSendMessageObject as following:

   console.error("show error on console");
   if (this.dumpInspectorProtocolMessages)
        console.log("frontend: " + JSON.stringify(messageObject));

I think the console panel in the chrome was loaded after above function, so where is the output, how to check it?

Btw, the function above is devtools source code, and what i want to see is the log output of devtools source code.

thanks

4 Answers 4

4

In order to see output of console.log's located right into DevTools own source code, you need to open DevTools on DevTools. It's pretty easy:

  1. Undock DevTools window. (This is important: otherwise step 2 won't be possible)
  2. Right-click inside undocked devtools and click "inspect element".

This will open a second DevTools window which will be inspecting first DevTools; all the output from the first devtools frontend could be found there.

Sign up to request clarification or add additional context in comments.

2 Comments

Hi, I right-click on the undocked devtools panel but I don't get "Inspect Element"! Please, give me more information about reproducing step 2. Thanks. Chrome v31.0.1650.57
I pressed Ctrl + Shift + J and got the second console. Thank you
0

In Google Chrome Hit F12 on your keyboard and navigate to console tab or right click on your page and click inspect element

Comments

0

You can use shift+ctrl+i, it open Developer Tools in Bottom and Find the Console tab click to view the console logs

Comments

0

In Google chrome use F12. For more check this link Opening DevTools.

2 Comments

it can't work, and when use F12, it don't show any output of devtools source code.
go through this link and i think you will get your answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.