在浏览Understand the .NET debugger in Visual Studio Code时one of the learning modules from MSFT Docs 部分,我发现了以下说法:
Global variables are accessible from everywhere in your program. System objects from the JavaScript runtime are also included, so don't be surprised if you see a lot of stuff in there.
编译和执行 C# 代码时 JavaScript 运行时在哪里出现?
之前的学习模块中都没有提及 JSRE,而是谈论了 .NET 运行时环境和 .NET 编译器。
最佳答案
Where does the JavaScript runtime come into picture while compiling and executing C# code?
事实并非如此。 --- 异常(exception)无处不在Blazor , WebAssemblies , SignalR .
这篇文章是关于调试器的 - 为了方便起见,它显然能够从多个源获取数据。
我必须说我还没有使用特定的调试器调试 JavaScript - 我主要坚持使用 Visual Studio。我很好奇它能做什么。如果它不起作用:它一定是一个拼写错误。
关于c# - JavaScript 运行时与 C# 有何关系?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70520117/