Skip to content

行号不一致和Frame缺失 #23

Description

@yangrudan

问题:

  • 行号不一致:traceback 和 probing 的行号差了很多(差8-12行)
  • probing frames 缺失 foo:只显示了 bar,没有显示完整调用链

https://github.com/DeepLink-org/probing/blob/master/tests/ext/test_python_tracer.py

Image
方法 bar 位置 foo 位置
traceback 第13行 第2行
probing stacks 第5行 第1行
probing frames 第5行 - (缺失)

预期结果

# 三种方式的行号应该一致
call stacks with traceback:
        Frame: bar in . ../test_python_tracer.py:13
        Frame: foo in . ../test_python_tracer. py:2

call stacks with probing stacks: 
        Frame: bar in .../test_python_tracer.py:13  # ← 应该和 traceback 相同
        Frame: foo in . ../test_python_tracer. py:2   # ← 应该显示完整调用链

call stacks with probing frames: 
        Frame: bar in .../test_python_tracer.py:13
        Frame: foo in .../test_python_tracer.py:2   # ← 不应该缺失

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions