Debug Intellij using Classpath with Project

Asked

Viewed 31 times

0

Hello, could someone help me?

I’m starting with Intellij, today I have a project where I use other projects, and to debug the subprojects, in the eclipse added in Classpath "User Entries", if not add I can not use breakpoint. How to do this in Intellij?

Exemplo eclipse:

1 answer

0

In your case, follow these steps:

  1. Abra Project Structure, basically the Project Settings.
  2. Select Modules.
  3. You must be seeing this screen: Project
  4. In Sources, you can add to your other application using Add Content Root.

How about using Maven or Gradle?

I usually use Maven/Gradle to manage my dependencies. It’s much simpler. In that case you would only locate the src when I was debugging.

More details:

  1. Maven
  2. Gradle

Interesting

Another way is to use the -Xbootclasspath. More details can be found here. Basically you will add a new variable to the VM when you boot.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.