Reputation: 967
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 .
Run-> Debug
in IntelliJ. It will give a dialog box and click on
Edit Configurations
.Run-> Debug Remote-debugger
in my
case) 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
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