How do I tell Intellij which module to debug?
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"
精彩评论