Debug

one line:

const x = 2

no editor:

function foo() {
return 2
}

one file editor:

foo.js
function foo() {
return 2
}

two files:

foo.js
bar.js
function foo() {
return 2
}

two panels:

foo.js
function foo() {
return 2
}
bar.js
function bar() {
return 2
}