从intellij构思运行多个jar文件并更改,运行和调试。

时间:2016-02-12 17:03:47

标签: debugging intellij-idea jar remote-debugging intellij-14

所以我基本上想要通过多个jar文件调试所有不同的微服务,这些微服务向/从彼此的API发送/接收消息。我现在所做的是从我的命令行运行每个jar文件,如java -jar -Xdebug -Xrunjdwp:transport = dt_socket,server = y,suspend = n,address = 5005 *** .jar并进行远程调试与我的intellij在同一个端口。

我想知道是否可以将所有jar文件放入一个配置中并在Intellij的一个调试会话中启动它们?

1 个答案:

答案 0 :(得分:0)

Are the micro services runnable on a webserver like Tomcat? If so, you can download the webserver, add it to IntelliJ and deploy these three micro services in the same run configuration. You should then be able to debug that run configuration and debug these at the same time.