breakpoint is invalid source code changed

I have wasted counted hours getting my project set up correctly. I have 2 web modules and 3 java application modules installed in my project. I use the java modules as libraries for the web modules.

Depending on wheter I include libraries or not and if I restart Idea or not. I can sometimes debug either the library or my web module. Once I was able to debug both! But that was a few weeks ago.

Most often I get the message "breakpoint is invalid source code changed" when I try debug a line of code. If I remove the library and module then rebuild the module I can debug it again, but of course I end of at some point requiring the library and have to add it back in. This is the vicious cycle. Debugging stops working.

Any ideas? My team of 5 has now lost 15 (and counting) person days to setting up Idea 4.5.3, Tomcat 5.0 and JDK 1.5.

As always, please do not respond with "please send your project" as It would barely fit on a DVD.

thanks,
Mike

0
9 comments
Avatar
Permanently deleted user

Hi,

Why do you not setup web module to depend from java libs?

mcrusty wrote:

I have wasted counted hours getting my project set up correctly. I have 2 web modules and 3 java application modules installed in my project. I use the java modules as libraries for the web modules.

Depending on wheter I include libraries or not and if I restart Idea or not. I can sometimes debug either the library or my web module. Once I was able to debug both! But that was a few weeks ago.

Most often I get the message "breakpoint is invalid source code changed" when I try debug a line of code. If I remove the library and module then rebuild the module I can debug it again, but of course I end of at some point requiring the library and have to add it back in. This is the vicious cycle. Debugging stops working.

Any ideas? My team of 5 has now lost 15 (and counting) person days to setting up Idea 4.5.3, Tomcat 5.0 and JDK 1.5.

As always, please do not respond with "please send your project" as It would barely fit on a DVD.

thanks,
Mike



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Avatar
Permanently deleted user

I would like to debug both the Web module code and the library code at the same time. Is there another way other than libraries to do this?

0
Avatar
Permanently deleted user

I also get
ERROR: schema change not implemented
ERROR: Operation not supported by VM

when I try to reload classes on the fly.

My goal is to have 2 web modules share a common library and be able to debug all three. I want to be able to debug web module 1 with the shared library and web module 2 with the same library.

0
Avatar
Permanently deleted user

Hi,

For the web module in Dependencies tab add java module as dependency.
The break point works in java module then.

mcrusty wrote:

I would like to debug both the Web module code and the library code at the same time. Is there another way other than libraries to do this?



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Avatar
Permanently deleted user

Hi,

VM does not allow reload classes after any change. Restart debugging
after that.

mcrusty wrote:

I also get
ERROR: schema change not implemented
ERROR: Operation not supported by VM



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Avatar
Permanently deleted user

thanks for the quick responsed.

2 questions as outlined below:

I was able to reload clasess yesterday - this is a new message. I understand that I can only change methods. I am getting this message if I just add a line inside a method, again I was able to do this before adding the libraries.

As for adding the web module in as a dependancy - it does not work. I cannot debug at all when using dependencies. Well OK sometimes but only first time after restart. Then the modules stop working. It may be because the java module has an include of the classes that make up part of the web module. When Idea deploys, it copies the jar to the webapp - even though it is not needed since those classes are part of the webapp source and are compiled to web-inf/classes - which should override the jar in lib. This jar being present appears to mix up idea and causes it to complain about the source code changing even though it hasn't.

0
Avatar
Permanently deleted user

mcrusty wrote:

thanks for the quick responsed.

2 questions as outlined below:

I was able to reload clasess yesterday - this is a new message. I understand that I can only change methods. I am getting this message if I just add a line inside a method, again I was able to do this before adding the libraries.

Changing methods inside inner classes still often leads to problems of
not supported class reloading


As for adding the web module in as a dependancy - it does not work. I cannot debug at all when using dependencies. Well OK sometimes but only first time after restart. Then the modules stop working. It may be because the java module has an include of the classes that make up part of the web module. When Idea deploys, it copies the jar to the webapp - even though it is not needed since those classes are part of the webapp source and are compiled to web-inf/classes - which should override the jar in lib. This jar being present appears to mix up idea and causes it to complain about the source code changing even though it hasn't.

In Web Module Settings set 'Packaging option' for dependent module to
'Do not package'




--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Avatar
Permanently deleted user

Incase it can help anyone having this issue… I dealt with this problem for months before eliminating it completely. The key for me was that no jars or classes where included in the project twice. So if you have a dependency checked (i.e., multi-module project). Those classes cannot be included in the module/project/global libraries or any of the jars… good luck

0
Avatar
Permanently deleted user

where s/b were

0

Please sign in to leave a comment.