简体   繁体   English

没有浏览器的JavaScript独立IDE?

[英]JavaScript standalone IDE without browser?

So I have been looking for an IDE that allows me to run JavaScript just like Eclipse/VS would allow me to write Java/C#. 因此,我一直在寻找一个IDE,该IDE允许我运行JavaScript,就像Eclipse / VS允许我编写Java / C#一样。 I want to write some code and see the output on the console (possibly within the IDE itself), without having to open the browser. 我想编写一些代码,并在控制台上(可能在IDE本身内)查看输出,而不必打开浏览器。 I know you can run JS programs from command line using node file.js . 我知道您可以使用node file.js从命令行运行JS程序。 But I'm trying to avoid having to do that every time. 但是我试图避免每次都要这样做。 I want to press a run button and see the results on the console. 我想按运行按钮,然后在控制台上查看结果。 Is there something already out there. 已经有东西了。 Can I configure my IDE in certain way to achieve that? 我可以通过某种方式配置我的IDE来实现吗? Thanks in advance. 提前致谢。

看看Atom https://atom.io/ ,该编辑器具有嵌入式控制台和出色的JavaScript支持(实际上是内部浏览器)。

Try this: 尝试这个:

Is there a javaScript engine where I can run my code without being forced to use a browser? 是否有一个JavaScript引擎可在其中运行我的代码而无需被迫使用浏览器?

A lot of alternatives of command-line and engines to try js without the need of a browser. 无需浏览器即可使用多种命令行和引擎替代方法尝试js。

You can debug browser js with any jetbrains IDE, however I find chrome to be much better for debugging browser code than the jetbrains plugin. 您可以使用任何jetbrains IDE调试浏览器js,但是我发现chrome在调试浏览器代码方面比jetbrains插件要好得多。 You can easily debug node by editting your debug configurations in any jetbrains IDE. 您可以通过在任何jetbrains IDE中编辑调试配置来轻松调试节点。 Just download the node plugin https://www.jetbrains.com/help/idea/2016.1/running-and-debugging-node-js.html 只需下载节点插件https://www.jetbrains.com/help/idea/2016.1/running-and-debugging-node-js.html

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM