简体   繁体   English

如何在IntelliJ IDEA上调试由Jhipster生成的React项目?

[英]How to debug react project generated by jhipster at intellij-idea?

How do I debug a react application generated by jhipster at intellij-idea? 如何在intellij-idea调试jhipster生成的React应用程序?

Using built in debug at intellij-idea I can debug only the backend. 使用intellij-idea的内置调试功能,我只能调试后端。 I want to debug the front-end at same time 我想同时调试前端

You can debug it using instructions from https://blog.jetbrains.com/webstorm/2017/01/debugging-react-apps/ : 您可以使用https://blog.jetbrains.com/webstorm/2017/01/debugging-react-apps/中的说明进行调试:

  • start your app in a way you normally do this ( ./mvnw , npm start or whatever way you normally use) 以通常的方式启动应用程序( ./mvnw npm start或通常使用的任何方式)
  • create a Javascript Debug with your server URL, like: 使用服务器URL创建Javascript调试 ,例如:

在此处输入图片说明

  • add breakpoints in your client code 在客户端代码中添加断点
  • debug the configuration above 调试上面的配置

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

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