Why does Chrome Devtools show variables defined within the current scope as undefined?

Viewed 200

For example the variable mergedArray below.

My issue is that variables are often impossible to inspect even when defined within the current function.

I found other questions that ask something similar, but the answer in those questions relates to the variable being defined in a higher scope.

This issue is technically in Electron - but it uses what is essentially Chrome DevTools.

enter image description here

1 Answers

try expanding the Scope pane (below or above Call Stack pane) and see what variables are listed under Local. it could be shown as a different name e.g.

enter image description here

this could be a result of minification

Related