hugo icon indicating copy to clipboard operation
hugo copied to clipboard

Breakpoints not hit on annotated methods

Open nathanielwolf opened this issue 11 years ago • 8 comments
trafficstars

This makes sense since hugo is generating new classes, but what is the work around? using Android Studio

nathanielwolf avatar Dec 03 '13 19:12 nathanielwolf

Well it's rewriting your existing classes so the line numbers likely don't line up. Dunno if there's a way to fix this. I'll have to investigate at some point.

JakeWharton avatar Dec 03 '13 19:12 JakeWharton

manually commenting out the annotation is working fine for now. Well worth the inconvenience for this great tool.

nathanielwolf avatar Dec 03 '13 19:12 nathanielwolf

If memory serves, there should be a way to tell the AspectJ compiler to preserve the line number hints in the code that will fix this.

JakeWharton avatar Dec 03 '13 19:12 JakeWharton

The bottom of this page mentions -XnoInline. Is that the flag you were mentioning?

http://wiki.eclipse.org/AspectJMaven/cobertura

matt-oakes avatar Dec 28 '13 10:12 matt-oakes

Possibly. I'll try this weekend or early next week.

JakeWharton avatar Dec 28 '13 10:12 JakeWharton

Gradle 1.9 broke mavenLocal() so this has been hard to test...

http://gradle.1045684.n5.nabble.com/mavenLocal-regression-in-1-9-td5712124.html

JakeWharton avatar Jan 12 '14 10:01 JakeWharton

https://github.com/JakeWharton/hugo/compare/master...jw;debugging

JakeWharton avatar Jan 12 '14 11:01 JakeWharton

Ever get a chance to try -XnoInline? Source code seems to show it's not in yet...

kenyee avatar Jan 19 '15 15:01 kenyee