Sarangan
Sarangan

Reputation: 967

Break points are not setting up for some lines in intellij

While setting break points in intellij for debugging a java project . I couldn't set line break points at some places.

Methods I followed for debugging .

enter image description here

As you can see above, for some lines the break points get added and for some line it is not . WHY ?

Upvotes: 0

Views: 746

Answers (1)

Farzad
Farzad

Reputation: 1142

It most likely is because the remote code that you are debugging is different than the source code and the lines that are you are putting a break point on are not code lines. You have to make sure your source code matches the binary that's on your remote host by checking out exactly the same revision from your source control.

Upvotes: 4

Related Questions