FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-59013: Set breakpoint on the first executable line in pdb when using `break func` by gaogaotiantian · Pull Request #112470 · python/cpython · GitHub

Repository navigation

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Next Next commit
Add line number to the code
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
  • Loading branch information
gaogaotiantian and iritkatriel authored Jan 30, 2024
commit bb1f81ac501f47f4750496d29a33533ce20ddeec
6 changes: 3 additions & 3 deletions Lib/test/test_pdb.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -2622,15 +2622,15 @@ def test_find_function_first_executable_line(self):
def foo(): pass

def bar():
pass
pass # line 4

def baz():
# comment
pass
pass # line 8

def mul():
# code on multiple lines
code = compile(
code = compile( # line 12
'def f()',
'<string>',
'exec',
Expand Down

Back | FazBrowse Home | New Git URL