Skip to content
  • Nikita Shulga's avatar
    [DevX] Add tool and doc on partial debug builds (#116521) · e8a9d088
    Nikita Shulga 创作于
    Turned command sequence mentioned in https://dev-discuss.pytorch.org/t/how-to-get-a-fast-debug-build/1597 and in various discussions into a tool that I use almost daily to debug crashes or correctness issues in the codebase
    
    Essentially it allows one to turn this:
    ```
    Process 87729 stopped
    * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
        frame #0: 0x00000001023d55a8 libtorch_python.dylib`at::indexing::impl::applySelect(at::Tensor const&, long long, c10::SymInt, long long, c10::Device const&, std::__1::optional<c10::ArrayRef<c10::SymInt>> const&)
    libtorch_python.dylib`at::indexing::impl::applySelect:
    ->  0x1023d55a8 <+0>:  sub    sp, sp, #0xd0
        0x1023d55ac <+4>:  stp    x24, x23, [sp, #0x90]
        0x1023d55b0 <+8>:  stp    x22, x21, [sp, #0xa0]
        0x1023d55b4 <+12>: stp    x20, x19, [sp, #0xb0]
    ```
    into this
    ```
    Process 87741 stopped
    * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
        frame ...
    e8a9d088
在阅读这些贡献指南后,您将准备好 为此项目做出贡献。