Breakpoints with multiple files

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

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
devtools

調査の方向性

Windows 10 上で CPython 3.11.1 を使用し、a.py から b.py の bar() を呼び出してレポートを再現し、その後、デバッガーの breakpoint とステップ実行のエントリーポイントをたどります。a.py で実行を開始したときに b.py の breakpoint に到達することを確認し、想定されるファイル間の動作に対する回帰テストのカバレッジを追加します。

索引モデルが issue の本文から書いたものです。

説明

stdlib type-bug

Bug report

Consider the following structure:
a.py (foo())
'- b.py (bar())
meaning that a.py with foo() calls some function from b.py, namely bar().

Now, add a breakpoint to b.py and let the debugging begin. You will see that the debugger seems to simply overlook the breakpoint in b.py. In other words: Breakpoints are only accepted, if the next line to be executed before clicking on "Go" is in the same file.

This is rather bothersome and does work correctly in other IDEs like Qt for C++.

The solution

Please "step down" to a breakpoint by design.

Your environment

  • CPython versions tested on: 3.11.1
  • Operating system and architecture: Windows 10
主要言語
Python
スター
77.2k
フォーク
36k
平均マージ
1日 9時間
マージ済み PR(30日)
558

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

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

はじめの一歩

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

python/cpython のほかの issue

python/cpython の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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