6

I am unable to debug remote applications due to: No executable code at line

I am running ultimate edition of Intellij, version 14.0.3. My application is running inside tomcat 8 and i'm building it from the command line using Maven. This problem appeared after i switched from the community edition to the ultimate edition.

Project sources are the same and I am able to connect to tomcat for remote debugging. The only issue is that all my breakpoints are invalidated.

Please advice on how to fix this issue.

Cheers.

simonaco
  • 346
  • 2
  • 4
  • 15

6 Answers6

4

Remove all IDEA related project files and open the project by the .pom file.

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
eigil
  • 96
  • 4
2

I've had the same problem. Simply compile the directory that the class resides, and the debugger will pick up the break point.

1

The solution that worked for me is much more embarrassing. I put the breakpoint on the wrong line.

enter image description here

You see two breakpoints, first one is working and the second one is complaining about "no executable code ...".

It turns out there really is no executable code, just a string.

Martin Drozdik
  • 12,742
  • 22
  • 81
  • 146
0

I had the same problem and I implemented a similar solution.

Remove all IDEA related project files and open the project by the .pom file.

I use Gradle for my projecto, so i removed the project from intellij and then reimported it.

I hope others could read it and helps them

Martin Larizzate
  • 702
  • 1
  • 12
  • 30
  • Also on gradle… worked for me: open the Gradle panel and "Reload all gradle projects" – ptim Jul 20 '21 at 08:00
0

if you are developing an Atlassian plug-in and connected to the server via remote debug, run atlas-package to sync deployed plug-in and your source code.

Turgay Celik
  • 651
  • 5
  • 11
0

If you are running a maven project execute the following commands in cmd prompt.

mvn clean install

mvn compile

This will resolve the problem.

shashika11
  • 179
  • 2
  • 5