NicolasPetton / Indium

A JavaScript development environment for Emacs
https://indium.readthedocs.io
GNU General Public License v3.0
1.13k stars 61 forks source link

Continuous Interactive Mode Workflow #244

Open mokanfar opened 4 years ago

mokanfar commented 4 years ago

Hello I was under the impression indium was like quokka (it is first result in google when searching for "quokka emacs").

Is interactive indium mode like quokka or not? Having a hard time getting a basic example to work such as:

test file test.js:

var a = 1;
var b = 2;
function c(num1,num1) {
    return num1+num2;
}
console.log(c(a,b));

indium json:

{
    "configurations":
    [
        {
            "name": "test",
            "type": "node",
            "command": "node ./test.js",
            "port": 5864
        }
    ]
}

running separate command in bash:

$ node --inspect=localhost:5864 ./test.js 

problem is after running bash command node outputs and exits. if i run:

$ node --inspect-brk --inspect=localhost:5864 ./test.js

It is not continuous workflow, just a debugging session where the variables get evaluated inline (like quokka) of the emacs buffer test.js Am I missing something here?