I think you might need some form of an extension like Javascript debugger(It's available on the vscode extension store ). You do need to check if it does the job for you or not. Sharing your main code here might also help in better understanding the problem.
If you are using node.js , this is a good fix for your problem Fatal JavaScript invalid size error 169220804
Otherwise, reinstalling vscode from scratch might be another good option for you if everything else fails.
I found the solution. It was an error in my code in a for loop iteration :(. Apparently the for loop had no break point. I fixed it and the console worked with no issues.