0

有时我需要在 javascript 上编写几行代码来检查它是如何工作的或尝试一些算法。我使用 VS 作为主要工具,我无法在 VS 中以 REPL 方式运行 javascript 代码,例如 Ruby,这对我来说很烦人。

所以我的问题是:是否可以直接从 VS 运行 javascript,也许可以通过一些插件或添加编译器来实现。

4

1 回答 1

0

Its really simple to do so. IE provides debugger tools. There are many ways to do this.

Here is a list of things I would possibly do

  1. Use Chrome by simply pressing F12 and clicking on console for REPL (The debugged and REPL have fantastic features)
  2. Use IE by simple pressing F12 too. It support breakpoints and the feel is very similar to Visual studio.
  3. Use visual studio immediate window.

Hope this helps. Regards.

于 2013-07-24T19:47:59.357 回答