sidorares / crconsole Goto Github PK
View Code? Open in Web Editor NEWRemote JavaScript console for Chrome/Webkit
License: MIT License
Remote JavaScript console for Chrome/Webkit
License: MIT License
Does it provide a way to Pause execution on debugger;
statements?
Any chance to use .screen for full loaded document height + width?
adb forward tcp:9222 localabstract:chrome_devtools_remote
https://developer.chrome.com/devtools/docs/remote-debugging-legacy
see RemoteDebug/remotedebug-firefox-adapter#4 for http json api examples
adb forward tcp:9222 localabstract:chrome_devtools_remote
https://github.com/gaearon/redux-devtools
https://github.com/zalmoxisus/redux-devtools-extension
( implement window.devToolsExtension
? Does not look like it's standard / automatic hook ) Better option: use window.__REACT_DEVTOOLS_GLOBAL_HOOK__.devtoolsAgent
from react-devtools integration and get access to top level context / redux store. Might be possible to do this without requiring redux app to support devtools explicitly
maybe .redux undo
/ .redux redo
commands to navigate history ?
show / trigger actions? show / inspect state?
add ".devtools" command, that
It may be worth adding to the README that we need an extra argument for chromium >= 111:
$ google-chrome --remote-debugging-port=9222 --remote-allow-origins=*
Hi pal,
When i run the comman i get the following error:
$ crconsole
https://www.google.com.ar/?gfe_rd=cr&ei=nqPrVNtH04CpBbusgKAC&gws_rd=ssl
www.google.com.ar> repl.js:400
this.prompt(preserveCursor);
^
TypeError: string is not a function
at REPLServer.displayPrompt (repl.js:400:8)
at null.<anonymous> (/usr/local/lib/node_modules/crconsole/index.js:256:17)
at emit (events.js:104:17)
at EventEmitter.<anonymous> (/usr/local/lib/node_modules/crconsole/node_modules/chrome-remote-interface/index.js:54:48)
at EventEmitter.emit (events.js:107:17)
at WebSocket.<anonymous> (/usr/local/lib/node_modules/crconsole/node_modules/chrome-remote-interface/lib/chrome.js:114:23)
at WebSocket.emit (events.js:104:17)
at WebSocket.establishConnection (/usr/local/lib/node_modules/crconsole/node_modules/chrome-remote-interface/node_modules/ws/lib/WebSocket.js:714:8)
at ClientRequest.<anonymous> (/usr/local/lib/node_modules/crconsole/node_modules/chrome-remote-interface/node_modules/ws/lib/WebSocket.js:627:25)
at ClientRequest.g (events.js:199:16)
im running node 0.12 version on macos
atom-shell: same as chrome ( --remote-debugging-port )
phantomjs: --remote-debugging-port=9225 -w ws://localhost:9222/devtools/page/1
( see https://groups.google.com/d/msg/google-chrome-developer-tools/Xk3nH0hJ2fg/ukr0UsRGAAAJ )
When console.log("test %s", 1)
is evaluated in the browser context this results in console message sent back to crconsole with "text" property set to "test %s" and parameters to "test %s" and 1. Need to process them on the crconsole side. See some discussion in #10
Also see https://developer.chrome.com/devtools/docs/console#using-the-console-api
for example, might worth adding stack trace is level is "error".
support group() groupEnd() ? console.table() ? ( TODO: check out how they are serialized )
respect colors? https://developer.chrome.com/devtools/docs/console#styling-console-output-with-css
Hi!
When using an unknown dot command, I get this:
vincent.bernat.im> .select
Invalid REPL keyword
/home/bernat/.virtualenvs/crconsole/lib/node_modules/crconsole/index.js:192
if (output.wasThrown) {
^
TypeError: Cannot read property 'wasThrown' of undefined
at Object.ChromeREPL.writer (/home/bernat/.virtualenvs/crconsole/lib/node_modules/crconsole/index.js:192:15)
at finish (repl.js:291:38)
at Interface.<anonymous> (repl.js:256:7)
at Interface.EventEmitter.emit (events.js:95:17)
at Interface._onLine (readline.js:202:10)
at Interface._line (readline.js:531:8)
at Interface._ttyWrite (readline.js:760:14)
at ReadStream.onkeypress (readline.js:99:10)
at ReadStream.EventEmitter.emit (events.js:98:17)
at emitKey (readline.js:1095:12)
I am using node v0.10.23.
https://github.com/cronvel/terminal-kit - investigate mouseSGR()
https://github.com/facebook/react-devtools
script to inject with Page.addScriptToEvaluateOnLoad :
https://github.com/facebook/react-devtools/blob/master/shells/chrome/src/GlobalHook.js
The commandline option -h is short for both --help and --host:
crconsole --help
Usage: crconsole [options]
Options:
-h, --help output usage information
-V, --version output the version number
-p, --port <port> specify the port [9222]
-h, --host <host> developer tools host [localhost]
Help is only available by using --help.
I am sorry to bother you. I try to redirect stdin with an input file to send my javascript code to crconsole, and I am confused why the process of crconsole would not exit after it received all the input. Would you mind giving me some advice about this problem if you have any idea?
When using crconsole
with a local file file:///Users/me/index.html
I get an error:
"Parameter 'url' must be a string, not " + typeof url
It's not easy to enable debugger currently via --remote-debugging-port
switch ( command line, need browser restart etc etc ). This should be simpllified
useful for inspecting evaluate response, html tree, css properties, network json response data
https://github.com/asyncly/cdir
need to find a way to hide repl or spawn a sub repl
possible example here: https://github.com/Priezt/sub-repl/blob/master/bin/sub-repl.js
Looks like top level protocol is different ( no http://localhost:9222/json etc ) but websocket connection is using same remote debugging protocol as normal chrome. Just make your debugger connect to 'ws://localhost:9222/devtools/page/1'
https://groups.google.com/forum/#!topic/google-chrome-developer-tools/Xk3nH0hJ2fg
Reproduce with:
chrome://newtab/
newtab> .
and press Tab
here.
It's annoying when pressed by mistake.
Upon exiting the crconsole, the chrome process is left running. For example:
$ crconsole -s
Waiting for chrome to start:
chrome://newtab/
> SW registered
newtab> .exit
^C
Does not close the browser.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.