fix indent, and refactor
Add one testcase
Fix testcase and bin/trace_by_lldb