python / python/cpython

Add an option to include debug information in the Python executable and shared libraries in MacOS

オープン
#95,973 コメント 4 件 リアクション 1 件 担当者 1 名 GitHub で見る

@ronaldoussoren がすでに取り組んでいます。

2022年8月14日 から。

build
主要言語
Python
スター
77.2k
フォーク
36k
PR マージ指標
PR 指標を取得中

説明

Because MacOS likes to do things differently, the DWARF debugging information is not included by default in the final executables and shared libraries. Instead, MacOS has a separate linker dsymutil that can link this information in the final binary. Because by default nobody is doing this, all the python installations in MacOS have no debug information at all making debuggers like lldb almost useless.

To solve this problem, add a new --with-dsymutil configure option that ensures that we package the debug information inside. In my M1 macos this makes the Python executable 0.2M bigger.

We should maybe discuss if we want to activate this by default.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。