vshaxe / hashlink-debugger

Visual Studio Code Debugger for Haxe/HashLink applications
https://hashlink.haxe.org/
MIT License
57 stars 23 forks source link

New exception when stepping code #134

Open gregdenness opened 1 week ago

gregdenness commented 1 week ago

I'm getting a strange exception when trying to step through code (the code is called on a mouse event listener). I'm sure this is a new issue as the debugger is usually very good and stable when stepping code. Here's the error:

***** ERRROR ***** TypeError: Cannot read properties of undefined (reading 'vars') Called from module TypeError: Cannot read properties of undefined (reading 'vars') Called from .new hld_CodeGraph (c:\Users\GregWorkHome\.vscode\extensions\haxefoundation.haxe-hl-1.4.24\adapter.js line 4692 column 17) Called from hld_Module.getGraph (c:\Users\GregWorkHome\.vscode\extensions\haxefoundation.haxe-hl-1.4.24\adapter.js line 12902 column 7) Called from hld_Debugger.step (c:\Users\GregWorkHome\.vscode\extensions\haxefoundation.haxe-hl-1.4.24\adapter.js line 7636 column 27) Called from module at c:\Users\GregWorkHome\.vscode\extensions\haxefoundation.haxe-hl-1.4.24\adapter.js:1401:33 Called from HLAdapter.safe (c:\Users\GregWorkHome\.vscode\extensions\haxefoundation.haxe-hl-1.4.24\adapter.js line 1388 column 4) Called from HLAdapter.nextRequest (c:\Users\GregWorkHome\.vscode\extensions\haxefoundation.haxe-hl-1.4.24\adapter.js line 1400 column 8) Called from HLAdapter.dispatchRequest (c:\Users\GregWorkHome\.vscode\extensions\haxefoundation.haxe-hl-1.4.24\node_modules\vscode-debugadapter\lib\debugSession.js line 408 column 22) Called from HLAdapter.handleMessage (c:\Users\GregWorkHome\.vscode\extensions\haxefoundation.haxe-hl-1.4.24\node_modules\vscode-debugadapter\lib\protocol.js line 61 column 18) Called from HLAdapter._handleData (c:\Users\GregWorkHome\.vscode\extensions\haxefoundation.haxe-hl-1.4.24\node_modules\vscode-debugadapter\lib\protocol.js line 155 column 34) Called from module at Socket.<anonymous> (c:\Users\GregWorkHome\.vscode\extensions\haxefoundation.haxe-hl-1.4.24\node_modules\vscode-debugadapter\lib\protocol.js:80:44)