Debugging JavaScript, variables are undefined but code works
First off, I'm 95% sure this is a local configuration issue and not a IJ bug.
I'm trying to debug some JavaScript code (using very old vue.js) in IJ Ultimate.
When I hit a break point, after variables have been set, the variables all show up as undefined.
The variables are being set the create() method.
If I drill deeper into the variable pane of the debugger & expand the ‘this’ variable, I can find the variable and click on the ‘(invoke getter)’ link to view the value.
The values at the top of the variable pane (that are prefixed with ‘this.', all show undefined.
Any suggestions on what I could try?
TIA
请先登录再写评论。
Unfortunately we can’t investigate this problem without a sample/test project from your side. Would it be possible to share it? In most cases, such issues indicate problems with source maps (missing name mappings, etc.).