Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-93696: Fixed the breakpoint display error for frozen modules#132862

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

gaogaotiantian
Copy link
Member

@gaogaotiantiangaogaotiantian commentedApr 24, 2025
edited
Loading

#93697 attempted to extract the actual file of a frozen module, but it only did it forlist, notlonglist orwhere. With#131638, we can get source code of frozen modules without any extra efforts, so we should remove this piece of code now.

Also, this code introduced a small error - it does not show breakpoints correctly. When we set breakpoints, we use theco_filename (<frozen XXX>) as the key. Breakpoints can't be found if the filename is converted to real file, so theB indicator will not be there.

Some extra tests were added.

self.assertIn('x = "Sentinel string for gh-93696"', stdout, "Sentinel statement not found")
self.assertIn('4 B', stdout, "breakpoint not found")
self.assertIn('-> def func():', stdout, "stack entry not found")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

These two tests look identical as l. Make a loop?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Good point! I used loop for it.

@gaogaotiantiangaogaotiantian merged commiteef49c3 intopython:mainApr 24, 2025
43 checks passed
@gaogaotiantiangaogaotiantian deleted the fix-frozen-bp-display branchApril 24, 2025 20:07
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@iritkatrieliritkatrieliritkatriel approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@gaogaotiantian@iritkatriel

[8]ページ先頭

©2009-2025 Movatter.jp