开发者

How do I tell Intellij which module to debug?

开发者 https://www.devze.com 2023-02-20 18:33 出处:网络
I have an Intellij project ope开发者_如何学运维n with multiple modules. When I hit ctrl+d it runs and debugs one of my modules. How do I change it so that it runs/debugs a different module?You should

I have an Intellij project ope开发者_如何学运维n with multiple modules. When I hit ctrl+d it runs and debugs one of my modules. How do I change it so that it runs/debugs a different module?


You should create the Run/Debug configuration and specify which module to use for the classpath (Use Classpath and JDK of the Module). Then just select it and press Debug button on the main toolbar or you can use a nice chooser via keyboard shortcut.


I found it. There is a drop down in the toolbar where you decide which module to run/debug. See in the image where it says "Unnamed"

How do I tell Intellij which module to debug?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号