Green
Green

Reputation: 30795

Chrome console doesn't work for variables in node-inspector browser UI. How to enable?

Steps to reproduce.

  1. Filename is index.js and its contents:

    'use strict';
    
    debugger;
    let a = 10; // doesn't mean anything in regards to the issue.
    
  2. Run node-debug against the file.

    $ node-debug index.js
    Node Inspector v0.12.8
    Visit http://127.0.0.1:8080/?port=5858 to start debugging.
    Debugging `index.js`
    
    Debugger listening on [::]:5858
    
  3. It opens UI in Chrome and the execution is stopped on debugger line. Set a watch variable process in a Watch Expression section. It is possible to examine it easily here. But only here, in Watch Expression section.

process_index js - google chrome 2016-12-11 13 17 07

  1. Now try to examine process variable in console. It doesn't work. You can type a variable, but hitting [Enter] key doesn't reveal process variable. It just adds new lines:

process_index js - google chrome 2016-12-11 13 25 46

What behavior is this? How to make it work?

Upvotes: 2

Views: 1010

Answers (1)

Related Questions