[英]How to perform grunt remote debug in IntelliJ IDEA?
I build and run my typescript application by Grunt and connect(grunt-contrib-connect) and livereload plugins. 我通过Grunt和connect(grunt-contrib-connect)和livereload插件构建并运行我的打字稿应用程序。 While grunt compile .ts files, it also generate sourcemap. 当grunt编译.ts文件时,它还会生成sourcemap。 My application is oppening on google chrome. 我的应用程序正在使用谷歌浏览器。 How can I remotely connect by Intellij Idea to this application that was run by Grunt and oppened in Chrome for perform debug? 如何通过Intellij Idea远程连接到此应用程序,该应用程序由Grunt运行并安装在Chrome中用于执行调试?
This post is my last hope, that it is possible. 这是我最后的希望,那就是可能。 Thanks 谢谢
http://localhost:9001/index.html
or whatever it looks like) 在“ URL”字段中,指定客户端应用程序的URL( http://localhost:9001/index.html
或任何类似的形式) <project_root>/public
folder), specify remote URL mappings (see http://confluence.jetbrains.com/display/WI/Starting+a+JavaScript+debug+session#StartingaJavaScriptdebugsession-Startingadebugsessionwhenusingadifferentwebserver ) 如果您的本地项目结构与服务器上的应用程序结构不完全匹配(例如,静态文件是从<project_root>/public
文件夹提供的),请指定远程URL映射(请参阅http://confluence.jetbrains.com/display/ WI / Starting + a + JavaScript + debug + session#StartingaJavaScriptdebugsession-使用不同的网络服务器时启动调试会话 ) that should be enough... Start grunt, and, when the server is up and running, debug the configuration above 这应该足够了...开始咕unt,然后在服务器启动并运行时,调试上面的配置
Thank you. 谢谢。 I found solution. 我找到了解决方案。
Since I use typescript, ability to debug in IDE was very important. 由于我使用打字稿,因此在IDE中进行调试的能力非常重要。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.