java - Btrace not returning Anything -


so introducing myself btrace getting no output out of it. script :

package com.sun.btrace.samples;

import com.sun.btrace.annotations.*; import static com.sun.btrace.btraceutils.*;  @btrace public class alllines { @onmethod(     clazz="/.*/",     location=@location(value=kind.line, line=-1) ) public static void online(@probeclassname string pcn, @probemethodname string pmn, int line) {     print(strings.strcat(pcn, "."));     print(strings.strcat(pmn, ":"));     println(line);  }  } 

this come straight samples directory, changed "clazz="/.*/"," out of desperation printed out. no luck.

the pid pointing btrace @ simple java program developped testing purpose calls method on loop. running through eclipse.

any ideas missing ? thanks!

update: turned on debug mode find out hanging @ "debug: checking port availability: 2020 ". ideas ?

are classes trying trace compiled javac -g or @ least javac -g:lines? need in order able access line number information in bytecode.

additionally - enabling line tracing methods of classes bad idea(tm). cause huge number of class retransformations , reloadings , bit of bad luck can shoot application down (due memory problems).


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -