#123 EclEmma does not work with "Debug when breakpoints are set"

Version 2.1.1
closed-fixed
nobody
5
2012-04-26
2012-04-23
No

This problem took me quite some time to figure out. To ease debugging (since I often forget to explicitly launch the debug-mode), I've enabled the Eclipse setting to always launch in Debug mode if there are breakpoints set. Unfortunately eclemma does not seem to work with the Eclipse debug launch mode, which means the Coverage view stays empty no matter how often you execute your coverage-run.

I understand that Debug mode and Coverage mode are not going to work well together since both require a java agent to be set in the JVM args, but the combination of the setting and the seemingly-working execution of the test (the breakpoints were simply not hit) leaves users easily confused why the coverage view stays empty. I guess some kind of FAQ entry should be made available in the documentation, unless there's a way that eclemma got enforce that the debug-jvm-arguments are not added to the launch..

Discussion

  • Marc R. Hoffmann

    Thanks for figuring this out! I wasn't aware of this configuration option. Technically there's not much we can do about it in EclEmma, but I'll add an FAQ entry.

     
  • Andreas Pakulat

    Andreas Pakulat - 2012-04-23

    As I said, a FAQ entry thats easily findable via $searchengine - bonus points if you can mention "Coverage view stays empty", which is what I searched for in $searchengine - is just fine in my opinion. I did find a few forum posts, but all the solutions were "drop the workspace and use a new one", which is kinda annoying to do twice a day (or more often).

     
  • Marc R. Hoffmann

    Fixed in trunk, will be published with next EclEmma release.

     
  • Marc R. Hoffmann

    • milestone: --> Version 2.1.1
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks