can cloud9 debug html/javascript?

懵懂的女人 提交于 2019-12-08 17:38:12

问题


Is it possible to use debug in cloud9 for javascript in HTML? I know it's possible to debug node.js, but what if the javascript is in a <script> block in the HTML, or is being loaded from an external script?

This works in Webstorm, but you have to have a browser plugin, and the IDE and the browser (via the plugin) talk to each other.

Thanks!


回答1:


Cloud9 not provide a great visualization for debug but even so it doesn't a big problem. You need open your application in another tab of the browser.

You have two ways:

  1. If you use a "preview" mode for run an application, Cloud9 provide a URL that you can write in your bar browser.
  2. If you use a server and this have the config for that it send your static files, when you run the server Cloud9 provide a URL in the console so you can write in your bar browser too. You need to consider the different routes in your server if it has not a single page application.

    Once you will open the application in your browser, you can make your debugging.



来源:https://stackoverflow.com/questions/26642016/can-cloud9-debug-html-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!