google-chrome-extension


How to Log to Console from Chrome Extension?


Given a Chrome extension that sets up a browser_action based on a default_icon click, how can that extension print to the console? For example, say my manifest.json includes this:
{
"name": "Testing",
"version": "1.0",
"browser_action": {
"default_popup": "testing.html",
"default_icon": "icon.png"
},
"manifest_version": 2
}
and my testing.html loads a <script> with some Javascript:
console.log("WHY DON'T I SEE THIS??");
Why doesn't this print anything to the console? And how might I go about getting something printed to the console?

Related Links

Chrome Page Action click not working
Can a chrome extension content script detect if it is running in iframe or top-level?
Google Chrome Extension Store tester accounts-but how?
Is there a limit on number of requests to Chrome history API from an extension?
when URL does not exists it shows the alert twice? Chrome Extension Developing
how to popup my google chrome extension
Upload stuck on Chrome Extension
how do i set the browseraction popup width and height?
Using a remote script in a Google Chrome extension
Chrome extension and history.onVisited event
jQuery in Google Chrome Content Script?
Can a Chrome extension monitor XHR events (or other events) from the page it's running against?
Getting current window on a popup (google chrome extension)
Accessing browser events in chrome extension - DOM events in chrome extension
Chrome extension: Attaching current tab to popup and then going through its DOM
Problem about Chrome Extension

Categories

HOME
jdo
netbeans
mean-stack
google-oauth
paw-app
amazon-ecs
dxl
webpack-2
cross-browser
blueprintjs
append
quicklook
apache-cayenne
leiningen
crystal-reports-2008
css-animations
wkwebview
subdomains
nat
fabric8
protovis
mapbox-gl
normal-distribution
android-ble
hot-module-replacement
mixture-model
withings
streamsets
theano.scan
hp-ux
pdf-reactor
checkboxlist
businessworks
auto-update
react-scripts
libusb-win32
google-perftools
nbconvert
titanium-android
angular-strap
libpng
intrusion-detection
underscore.js-templating
mikroc
gridview-sorting
simplewebrtc
prettytensor
ipconfig
independentsoft
freedesktop.org
javax.sound.midi
tcpserver
rtbkit
simple-framework
browser-bugs
apache-commons-net
csquery
gui-test-framework
java-metro-framework
websocket4net
reactfx
bundles
mysqltuner
jsctypes
html4
django-nonrel
plasma
tinn-r
multipage
code-cleanup
transactionscope
spyware
xtype
ecl
actionview
jmock
telerik-scheduler
cxxtest
preference
brewmp
kdbg

Resources

Encrypt Message