Giter Club home page Giter Club logo

crconsole's People

Contributors

bitdeli-chef avatar laseryuan avatar outatime avatar sidorares avatar yukinying avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crconsole's Issues

Pause on debugger

Does it provide a way to Pause execution on debugger; statements?

add redux-devtools integration

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?

Execution error

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

process console.log|info|warn|error message parameters client side

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

Unknown .dot command exit the REPL

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.

-h option for host overrides help option

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.

Fails on local files

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.