简体   繁体   English

运行调试控制台时出现 Vscode 致命错误

[英]Vscode fatal error when running debug console

I keep getting this error我不断收到此错误在此处输入图像描述 whenever I try to console log any code.每当我尝试控制台记录任何代码时。

I think you might need some form of an extension like Javascript debugger (It's available on the vscode extension store ).我认为您可能需要某种形式的扩展,例如Javascript 调试器(可在 vscode 扩展商店中找到)。 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如果您使用的是 node.js ,这可以很好地解决您的问题Fatal JavaScript invalid size error 169220804

Otherwise, reinstalling vscode from scratch might be another good option for you if everything else fails.否则,如果其他一切都失败了,从头开始重新安装 vscode 可能是另一个不错的选择。

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.这是我的代码在 for 循环迭代中的错误 :(。显然 for 循环没有断点。我修复了它并且控制台没有问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 运行 console.log("Hello world") 时 VSCode 返回退出代码 1 时出错; 在 javascript - Error in VSCode returning exit code 1 when running console.log("Hello world"); in javascript 从 vscode 调试控制台访问 javascript 变量(运行 node.js) - Accessing javascript variables from the vscode debug console (with node.js running) VSCODE 在尝试调试 javascript 时出错:“vscode listen eacces: permission denied 127.0.0.1:53942” - VSCODE gives error, when trying to debug javascript: "vscode listen eacces: permission denied 127.0.0.1:53942" Javascript调试没有控制台错误 - Javascript debug no console error VSCode 调试 C# _ 如何防止打开内部调试控制台 - VSCode debug C# _ How to prevent opening internal debug console vscode运行js时弹出错误信息 - Error message is popping up when running js in vscode 在vscode中运行代码时如何让js代码显示在chrome开发者控制台下 - How to get js code to display under chrome developer console when running the code in vscode 在 vscode 中使用 Node.js 进行调试时,console.timeEnd() 从未知的 constructor.js 被欺骗。 这是什么? - console.timeEnd() duped from unknown constructor.js when Debug with Node.js in vscode. What is this? 在 node.js 应用程序中以调试模式 (VSCode) 使用可选链接 (ES2020) 时出现语法错误 - Syntax error when using optional chaining (ES2020) in debug mode (VSCode) in node.js app 在vscode中调试时导入和导出不起作用 - import and export not working when debug within vscode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM