llmhyy / microbat

A feedback-based debugger for interactively recommending suspicious step in buggy program execution.
54 stars 15 forks source link

Missing ByteCode for TraceNode.getByteCode() #238

Open ykwongaq opened 2 years ago

ykwongaq commented 2 years ago

Missing ByteCode

One line of java code may require more than one byteCode to execute.

For example, trace node 10 correspond to the java code:

int c = a+b;

The correspondence byteCode are:

iload_2
iload_3
iadd
istore_4

which have four byteCode.

However, the current getByteCode method only return the first byteCode iload_2. Is it possible to concatenate those byteCode by comma, such that the getByteCode() method will return iload_2,iload_3,iadd,istore_4?

Also, it seems that trace node 5 return empty string with unknown reason (please refer to the following picture).

issue_1

Here is the complete byte code: issue_2

Thank you.