-
Notifications
You must be signed in to change notification settings - Fork 114
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
How to get source line number in JQF #206
Comments
Yes, it is the line number from source code. There is no concept of line number in bytecode. There is a bytecode offset (in bytes) from the method start, but that is not recorded. Line number will only be available if the Java classes are compiled with debug info enabled, otherwise they will be missing (I think it defaults to -1 or something). I don't see why it matters whether the program is launched from console or elsewhere. JQF does not track basic blocks. It only instruments branch coverage by logging conditional jumps, calls, and returns. |
I should clarify: JQF still gets the line number info from the |
@rohanpadhye Thank you for your quick reply. |
I have read issue #186.But I still feel a little puzzled. TraceEvent has a field lineNumber. Does this lineNum in TraceEvent mean byte code line number? How can get source line number? How can byte code line number match corresponds to source line when running program not from console?
In JQF, can we get covered basic block? Thank you for your help!
The text was updated successfully, but these errors were encountered: