llmhyy / microbat

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

[Instrumentation] Add Some Heuristic Rules for Specific Data Types (Closure-49) #145

Closed llmhyy closed 6 years ago

llmhyy commented 6 years ago

hi @lylytran

Would you please add the following heuristic rules in instrumentation?

When reading a variable, value, (1) if value is an array, we also get the values of all its elements (2) if value is ArrayList, we also get the values of all the elements of its elementData field (3) if value is HashMap, we also get the values of all its value field

I have finished the skeleton, you may just need to fill the code in microbat.instrumentation.runtime.ExecutionTracer.getHeuristicVarChildren(). I have left a TODO comment there. Please feel free to change the method signature if necessary. Many thanks!

llmhyy commented 6 years ago

done