Chrome dev tools console completely blank - google-chrome

The problem is not that my console.log is not printed in the console. The problem is that the console is initially blank. I need to switch the tabs back and forth to get it working. Steps to reproduce:
1. Open Google chrome
2. Open some page
3. Open the console with Ctrl+Shift+I or F12
I even reinstall the browser (I kept the settings, because I can't afford to delete everything). Of course I removed all the extensions and disabled all the plugins. Still the same thing. Is there any application cache which I could delete to fix the problem.
Here is a screenshot:
P.S.
The error which you see is actually from the current page. It is not from the console. Here is what I see when open dev tools inside dev tools:
Uncaught TypeError: Cannot call method 'statusBarResized' of undefined inspector.js:2181
And all this happen after the latest big update of the browser.

Your preferences have probably become corrupted. If you can reproduce the bug, please open a ticket at http://crbug.com/new.
Reset the preferences to resolve the issue. These are saved in localStorage on chrome-devtools://devtools, so you need to open the devtools of the devtools (step 1-2 of https://stackoverflow.com/a/21149275/938089), and either:
Run localStorage.clear() (switch to the Console tab or press Esc to open a drawer)
OR Go to Resources, Local Storage and delete all items of the dev tools one by one.

The suggestion of clearing localStorage either didn't work or only worked temporarily for me. As mentioned in some of the comments, the solution that worked for me was to:
Open developer tools
Open settings pane from top right (or F1)
Click the 'Restore defaults and reload' button
I should also mention that I'm using Google Chrome 53.0.2754.0 canary (64-bit).

Related

Why Chrome devtools console log automatic

When i using devtools in chrome the devtools console log things by him self, The devtools console.log exactly what i have on Local storage.
every single time when i open the devtools it is display automatically, I would love to disable this issue, I add image to clarify my problem.
[1]
[1]: https://i.stack.imgur.com/N8rBK.png
it was checked on all folder and file in my project and there is nothing about it.
as you can see it's came from contentscript.js.
I think contentscript.js is part of the Chrome extensions library which gets loaded everytime an extension loads. Most likely you have an extension installed that is logging those statements.
Try disabling extensions one at a time, to find the extension causing those log statements.

Facing issue while trying to run Robot framework script in google chrome browser

I am facing a Chrome popup while trying to run Robot Frame work script:
Microsoft Security Essentials wants to restore your Chrome settings to their
original defaults.
This will reset your homepage, new tab page and
search engine, disable your extensions, and unpin all tabs. It will
also clear other temporary and cached data, such as cookies, content
and site data.
In chrome extension, my developer mode is unchecked, whereas it should be checked.
The Robot Framework automation script is just to open the google Chrome browser and load google search page.
I am using Win 7 Home Basic OS.
I have attached screenshots.
It appears that most Chrome support specialists will ask you to run an anti-malware tool to verify that your system is running normally. These can be found by searching on the popup message.
One Reddit user commented that in his case the problem was resolved by altering the Windows registry:
I finally found a fix for this. There is a setting in the registry
that's causing it.
In the registry it's under
HKEY_CKU\CURRENT_USER\Software\Google\Chrome\TriggeredReset
Delete the TriggeredReset key and then close regedit. Fixed.
This is an API for 3rd party programmers who want to create cleaning
tools. But if the tool isn't written properly, the triggered reset
never gets deleted and we have it always asking.

How to turn off windows integrated authentication in Chrome

I used to be able to disable windows integrated authentication by updating the settings in IE. Recently this no longer works. Has something changed in recent versions of chrome? Is there a new way to turn this off?
Chrome version 46.0.2490.71
I used to use this setting in IE
Internet Options -> Advanced -> uncheck 'Enable Windows Integrated Authentication'
I got this response from an internal admin and it seems to work.
I think the best we came up with was to create a shortcut to
chrome.exe on your desktop and modify the target of the shortcut to be
something like:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --auth-server-whitelist="_"
Edit: Corrected the path for misplaced backslashes. Note also the (x86), just in case.
Expanding on Daniel Trimble's answer, which worked for me:
I would like to help more people find this useful answer by adding a little more context. What is Integrated Windows Authentication, and why would you want to disable it?
Basically, Integrated Windows Authentication allows a browser such as Chrome to access credentials that are stored on your computer (for example, the password you use to log into your office computer) and use those same credentials to log you into a website (for example, a password-protected portion of your company's website). This occurs behind the scenes, without a visible password prompt.
The problem is that you may not want to be automatically logged into a particular website.
Example: I like to use Chrome as a test browser to see the "public" view of my company's website. Generally I log into our site in Firefox or IE, make changes there, and then view the site in Chrome to make sure my changes were "published" as intended.
Suddenly, one day, I could no longer stay signed out of my company's website in Chrome. Whenever I navigated to a password-protected page, instead of giving me a login prompt, Chrome would automatically sign me in to Microsoft SharePoint (my company's content-management system) and show me the "logged in" version of that page.
If something similar is happening to you, there are other, more obvious things you should try first. Start by clearing your saved passwords (Chrome menu button > Settings > Show advanced settings > Passwords and forms > Manage passwords).
Clearing my saved passwords didn't work for me, so I tried other things: cleared the cache, removed all cookies, reset Chrome's settings, uninstalled and reinstalled Chrome. I even visited a password-protected page in an Incognito window, but Chrome still signed me in automatically.
Finally I found this Stack Overflow page, which solved the problem. (Thank you, Daniel Trimble!) Integrated Windows Authentication was the culprit. IWA used to be turned off by default in Chrome; you had to enable it via a checkbox in your Internet Options (shared with IE). At some point in the recent past, Google apparently decided to enable IWA by default. The unfortunate part is that they did not provide an option under Chrome's Settings panel to disable it. At least there's this workaround!
How to disable Integrated Windows Authentication (IWA) for Chrome via Windows' Control Panel:
(This applies to both Internet Explorer and Chrome since Chrome uses system settings that are managed using Internet Explorer.)
Press Windows' Start button, type "Internet Options" to search, and click the one result, from the control panel
Go to the "Security" tab
Select "Local Intranet" and click on "Custom Level" button
Scroll to the "User Authentication" section at the bottom of the list and select "Prompt for user name and password"
Click Ok, Apply, and Ok to save changes
Close all instances of the IE browser to make the changes effective. Launch the browser again and access the application. A basic authentication challenge will be served.
Source: https://sso.cisco.com/autho/msgs/disable_IWA.htm
I found out we had a windows policy that set the following registry key:
HKEY_CURRENT_USER\Software\Policies\Google\Chrome\AuthServerWhitelist
Deleting this key made Chrome prompt for a username and password for me.
More information about the registry keys.
Great and all the above answers work perfect.!
To add more -- I found that google chrome (version 68.0.3440.106) has the GUI option for Windows integrated authentication, just like in IE, this worked for me :)
goto chrome://settings/
Show advanced settings...
In the "Network" section, click on "Change proxy settings..."
Chrome opens the internet properties window
in the security tab
Select Local Intranet and Click on "Custom Level" button
Scroll to bottom of the window to User Authentication section, select "Prompt for user name and password"
Click Ok, Apply and Ok to save changes.
close existing session and start a new chrome session.

Has offscreen-tabs been removed from Chrome browser?

I'm looking at the offscreen-tabs experimental API here.
Then I tried to enable this but I don't see it in the chrome://flags/ part of the browser. Has it been removed from the browser as an experimental API or has it become a real API?
Yes Chrome OffScreen Tabs API was deleted from chrome extensions code base on 13 Dec 2012 as shown in this Patch / Changelist. This Chrome Issue asked to delete the specific API.
Chrome Extension Dev Page for Offline Tabs API also gives 404 that means corresponding document was also removed.
try this ref: https://support.google.com/chrome/answer/2765944#browsersettings
On your Windows computer, visit the Chrome Cleanup Tool website.
Click Download now.
Read the terms of service, and click Accept and Download.
When the file is downloaded, you'll see it at the bottom. Click the filename (chrome_cleanup_tool.exe).
Windows will ask if you want to run the file. Click Run.
The Chrome Cleanup Tool will scan your computer. You'll see a list of any malicious software found.
Click Remove suspicious programs.
Chrome will open a new tab, and ask you to reset your settings. Click Reset.

How to view or edit localStorage?

I created a Chrome extension and am using localStorage for storing data.
I am accessing localStorage through "background_page".
It works fine but how can I manually view its values? In Firefox you can use Firebug.
Anyone have any suggestions?
It's simple. Just go to the developer tools by pressing F12, then go to the Application tab. In the Storage section expand Local Storage. After that, you'll see all your browser's local storage there.
Open the Developer Tools by pressing F12.
Click on the Application tab and you will see localStorage's content. From there you can add/edit/delete the entries manually.
On OS X the keys are: ⌥ + ⌘ + i
Another combination: Ctrl + Shift + i
In Chrome it looks like this:
You can go to chrome://chrome/extensions and there will be a link to your background page that once you launch you can use the Dev Tools to see the localStorage stuff.
I am using chrome Version 52.0.2743.82 m currently. In this lastest version of chrome as of now, you can see the local storage values by launching "Developer Tools" and then looking into "Application" tab.
Either I don't understand what people here are trying to do, and it's not what I'm doing, and/or the Chrome developer tools have changed, and are broken in this regard.
My extension's content-script stores data like this:
chrome.storage.local.set(packet);
When I view the Application tab of the extension's background page, and expand Storage > Local Storage, I see my extension listed, but clicking on it shows no data.
The only solution I've found is to run this in the background page's console:
chrome.storage.local.get(null, function(data) {console.log(data);})
That's similar to how the extension reads it (except passing null to get all keys instead of a key name to get just the one I want) and it works fine, it's just awkward to type it out every time. It's also weird that there are all these answers here that don't work for me.
I'm using Chrome 73.0.3683.103 (Official Build) (64-bit) on Windows 10. The extension is still unpacked, if that's relevant, but that's the most likely time you'd want to do this, i.e., in development.