eclipse debugging shows source files with wrong line numbers -


when click f3 , drill down method definition, eclipse goes dependency jar. ----- first question: did source file? don't see jars containing actual source files, did decompile ? ---- set breakpoint, , run debug.

but debugging process never seems land on correct breakpoint, , breakpoint set executed. turns out source code shown wrong, breakpoint set @ wrong locations too.

here see eclipse window:

/*     */   public <t> t execute(uri url, httpmethod method, requestcallback requestcallback, responseextractor<t> responseextractor) /*     */     throws restclientexception /*     */   { /* 415 */     return doexecute(url, method, requestcallback, responseextractor); /*     */   }` 

the comment before each line seems show correct line number, not match true line number shown on left of eclipse window frame. i.e. above code segment occupies lines 315--319 in window, not 415.

so how can grab correct sources , display them in debugging process? have manually grab jars ? there way specify in pom file?

thanks yang

in eclipse, can specify sources debugging under run -> debug configurations. select debug configuration list , configure source lookup path in 'source' tab


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -