Why I can debugger .cpp and .C in macos, but torch not work

Haitao_Xiao: <p>Dear ALL, I’m debugging pytorch source code using gdb on my mac, but I’ve compiled it many times and it doesn’t work! Can anyone give me some help? <strong>sudo MACOSX_DEPLOYMENT_TARGET=14.1  CC=clang CXX=clang++ USE_DISTRIBUTED=1 python3 setup.py</strong><br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/5/e/5e7df553ff5e42d82e80360a45f5babf17ddda4f.png" data-download-href="https://discuss.pytorch.org/uploads/default/5e7df553ff5e42d82e80360a45f5babf17ddda4f" title="4b57635516142c48a2b78355a0035cbe"><img src="https://discuss.pytorch.org/uploads/default/original/3X/5/e/5e7df553ff5e42d82e80360a45f5babf17ddda4f.png" alt="4b57635516142c48a2b78355a0035cbe" data-base62-sha1="dtUKiaIW41Uc58dIfNoKiaeR3Aj" width="690" height="316" data-dominant-color="242425"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">4b57635516142c48a2b78355a0035cbe</span><span class="informations">872×400 62.3 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>

Haitao_Xiao: <p>It doesn’t go into the pytorch source.<br>
<img src="https://discuss.pytorch.org/uploads/default/original/3X/9/e/9e20f46e0eccf0d499572433e61a936ec1df328c.png" alt="image" data-base62-sha1="myS2Pzj2SuDt9Drs0kxlViZEHwg" width="574" height="252"><br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/1/8/182d83addac18d8e657c5e4faaea782c2ff5ee36.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/182d83addac18d8e657c5e4faaea782c2ff5ee36" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/1/8/182d83addac18d8e657c5e4faaea782c2ff5ee36_2_690x370.jpeg" alt="image" data-base62-sha1="3rSYlGd9SI9FzYzPF2KFlNQoMXc" width="690" height="370" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/1/8/182d83addac18d8e657c5e4faaea782c2ff5ee36_2_690x370.jpeg, https://discuss.pytorch.org/uploads/default/optimized/3X/1/8/182d83addac18d8e657c5e4faaea782c2ff5ee36_2_1035x555.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/1/8/182d83addac18d8e657c5e4faaea782c2ff5ee36.jpeg 2x" data-dominant-color="313230"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">1104×592 165 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/a/3/a3b2dd5e37df7acb57468911777031509ce79397.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/a3b2dd5e37df7acb57468911777031509ce79397" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/a/3/a3b2dd5e37df7acb57468911777031509ce79397_2_690x340.jpeg" alt="image" data-base62-sha1="nm92HvoNytZ0sbCn5Z9EYqPBsKX" width="690" height="340" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/a/3/a3b2dd5e37df7acb57468911777031509ce79397_2_690x340.jpeg, https://discuss.pytorch.org/uploads/default/original/3X/a/3/a3b2dd5e37df7acb57468911777031509ce79397.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/a/3/a3b2dd5e37df7acb57468911777031509ce79397.jpeg 2x" data-dominant-color="2C2D2B"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">992×490 98.5 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><br>
python code can run</p>