-
Notifications
You must be signed in to change notification settings - Fork 960
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot print info to console #416
Comments
Can you provide more details? How often are those method called? The output is buffered not to impact the traced application with constant flushes so if the method is not frequently invoked it may not flush to console. Try |
the test was run on Windows 10 (1909 18363.752), Java version is
Those methods are called frequently because I use |
Can you try flushing? The data is sent to stdout stream regardless of whether |
Argh. I will have to install windows 10 in virtualbox to debug this. |
I have try the
|
is there any different between the
and
|
I have changed the class to
|
I also find a warning info, does that matter?
|
BTrace is such a useful tool that I used it to complete my empirical study on software runtime analysis. So the problems may be caused by the multi-thread problems or to much information that need output cause packet dropout? (I guess) following debug information may help
|
The first form is a statically defined regex matching all methods. The second form will take the user arg value to define the method filter - then you can do eg. |
Can you capture also the debug output from the traced application? It would really interesting to see which methods are instrumented and whether there are any warnings printed out. |
I wander if it's relate to the way you start the application ,i run the application with the jar package that include all third package |
The underlying problem was that one of the instrumented classes does not verify properly. Unfortunately, I am not able to figure out what is actually causing the verification problem as the JVM verifier does not provide any explanatory message and the ASM The reason you could see the output in verbose mode is that in that mode the classes are retransformed one by one - it takes more time but allows to report on progress and failures. If I get to the root of the verification error I will fix it - until then such classes will just be skipped. |
Btrace cannot print info msg on console when using
btrace pid scripts.java
.but when using
btrace -v pid scripts.java
, the msg can be printed along with debug info.the trace scripts:
The text was updated successfully, but these errors were encountered: