Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger variables displays TypeError when debugging async jest test function #1824

Closed
ibl-bkoenig opened this issue Sep 26, 2023 · 3 comments · Fixed by #1825
Closed

Debugger variables displays TypeError when debugging async jest test function #1824

ibl-bkoenig opened this issue Sep 26, 2023 · 3 comments · Fixed by #1825
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@ibl-bkoenig
Copy link

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.82.2
  • OS Version: Windows 11

image

Steps to Reproduce:

  1. Debug async jest function
  2. VSCode reports the following error in the debug variables when attempting to read a class object

Error processing variables: TypeError: Cannot read properties of undefined (reading 'subtype') at new hC (c:\Users\Brett\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:114:11521) at Up.createVariable (c:\Users\Brett\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:114:3397) at Up.createVariableByType (c:\Users\Brett\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:114:3699) at Up.createPropertyVar (c:\Users\Brett\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:114:6444) at Up.createObjectPropertyVars (c:\Users\Brett\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:114:5471) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Fa.getVariables (c:\Users\Brett\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:114:16640) at async ml._onVariables (c:\Users\Brett\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:159:3583) at async Bl._onMessage (c:\Users\Brett\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:71:4859)

In logs 'sharedprocess.log'

2023-09-26 17:44:22.638 [error] [uncaught exception in sharedProcess]: Cannot read properties of undefined (reading 'then'): TypeError: Cannot read properties of undefined (reading 'then')
at v.s (c:\Users\Brett\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\node\sharedProcess\sharedProcessMain.js:26:4731)
at v.q (c:\Users\Brett\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\node\sharedProcess\sharedProcessMain.js:26:4161)
at c.value (c:\Users\Brett\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\node\sharedProcess\sharedProcessMain.js:26:3566)
at b.w (c:\Users\Brett\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\node\sharedProcess\sharedProcessMain.js:21:1902)
at b.x (c:\Users\Brett\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\node\sharedProcess\sharedProcessMain.js:21:1972)
at b.fire (c:\Users\Brett\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\node\sharedProcess\sharedProcessMain.js:21:2188)
at MessagePortMain.te (c:\Users\Brett\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\node\sharedProcess\sharedProcessMain.js:19:40559)
at MessagePortMain.emit (node:events:513:28)
at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:367)

@ibl-bkoenig ibl-bkoenig changed the title VSCode debugger errors when debugging async jest function Debugger variables displays TypeError when debugging async jest test function Sep 26, 2023
@roblourens roblourens assigned connor4312 and unassigned roblourens Sep 26, 2023
@connor4312
Copy link
Member

/jsDebugLogs

@vscodenpa
Copy link

Please collect trace logs using the following instructions:

If you're able to, add "trace": true to your launch.json and reproduce the issue. The location of the log file on your disk will be written to the Debug Console. Share that with us.

⚠️ This log file will not contain source code, but will contain file paths. You can drop it into https://microsoft.github.io/vscode-pwa-analyzer/index.html to see what it contains. If you'd rather not share the log publicly, you can email it to connor@xbox.com

@vscodenpa vscodenpa added the info-needed Issue requires more information from poster label Sep 27, 2023
@connor4312 connor4312 transferred this issue from microsoft/vscode Sep 28, 2023
@connor4312 connor4312 added the bug Issue identified by VS Code Team member as probable bug label Sep 28, 2023
@connor4312
Copy link
Member

Thanks for the emailed log, fixed in the next nightly build

@connor4312 connor4312 removed the info-needed Issue requires more information from poster label Sep 28, 2023
@connor4312 connor4312 added this to the October 2023 milestone Sep 28, 2023
@DonJayamanne DonJayamanne added the verified Verification succeeded label Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants