c# - JavaScript 运行时与 C# 有何关系?

标签 c# .net

在浏览Understand the .NET debugger in Visual Studio Codeone 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/

相关文章:

C# 异步调用垃圾回收

c# - 业务逻辑层应该访问数据库/数据访问层吗?

c# - 如何使用 if 语句创建属性

c# - .NET 中的可空类型

.net - 覆盖 MEF 中的 dll

.net - SSIS 包错误 - 无法将 unicode 转换为非 unicode

c# - 我不认为我正在修改这个集合

c# - 从母版页获取列表项

c# - Process.Start for system32 applications - 系统找不到指定的文件

c# - 如何使用 JavaScript 创建带有字典选项的可编辑下拉列表?