Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
3a98e78a
Kaydet (Commit)
3a98e78a
authored
Eyl 17, 1998
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Richard Wolff's additional changes; some layout nits, and change the
alias delimiter to ';;'.
üst
1d2e9d19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
pdb.py
Lib/pdb.py
+11
-11
No files found.
Lib/pdb.py
Dosyayı görüntüle @
3a98e78a
...
@@ -69,7 +69,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
...
@@ -69,7 +69,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
self
.
forget
()
self
.
forget
()
self
.
stack
,
self
.
curindex
=
self
.
get_stack
(
f
,
t
)
self
.
stack
,
self
.
curindex
=
self
.
get_stack
(
f
,
t
)
self
.
curframe
=
self
.
stack
[
self
.
curindex
][
0
]
self
.
curframe
=
self
.
stack
[
self
.
curindex
][
0
]
self
.
execRcLines
()
;
self
.
execRcLines
()
# Can be executed earlier than 'setup' if desired
# Can be executed earlier than 'setup' if desired
def
execRcLines
(
self
):
def
execRcLines
(
self
):
...
@@ -128,7 +128,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
...
@@ -128,7 +128,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
print
'***'
,
exc_type_name
+
':'
,
v
print
'***'
,
exc_type_name
+
':'
,
v
def
precmd
(
self
,
line
):
def
precmd
(
self
,
line
):
# Handle alias expansion and ';' separator
# Handle alias expansion and ';
;
' separator
if
not
line
:
if
not
line
:
return
line
return
line
args
=
string
.
split
(
line
)
args
=
string
.
split
(
line
)
...
@@ -139,18 +139,18 @@ class Pdb(bdb.Bdb, cmd.Cmd):
...
@@ -139,18 +139,18 @@ class Pdb(bdb.Bdb, cmd.Cmd):
line
=
string
.
replace
(
line
,
"
%
"
+
str
(
ii
),
line
=
string
.
replace
(
line
,
"
%
"
+
str
(
ii
),
tmpArg
)
tmpArg
)
ii
=
ii
+
1
ii
=
ii
+
1
line
=
string
.
replace
(
line
,
"
%*
"
,
line
=
string
.
replace
(
line
,
"
%*
"
,
string
.
join
(
args
[
1
:],
' '
))
string
.
join
(
args
[
1
:],
' '
))
args
=
string
.
split
(
line
)
args
=
string
.
split
(
line
)
# split into ';' separated commands
# split into ';
;
' separated commands
# unless it's an alias command
# unless it's an alias command
if
args
[
0
]
!=
'alias'
:
if
args
[
0
]
!=
'alias'
:
semicolon
=
string
.
find
(
line
,
'
;'
)
marker
=
string
.
find
(
line
,
';
;'
)
if
semicolon
>=
0
:
if
marker
>=
0
:
# queue up everything after
semicolon
# queue up everything after
marker
next
=
string
.
lstrip
(
line
[
semicolon
+
1
:])
next
=
string
.
lstrip
(
line
[
marker
+
2
:])
self
.
cmdqueue
.
append
(
next
)
self
.
cmdqueue
.
append
(
next
)
line
=
string
.
rstrip
(
line
[:
semicolon
])
line
=
string
.
rstrip
(
line
[:
marker
])
return
line
return
line
# Command definitions, called by cmdloop()
# Command definitions, called by cmdloop()
...
@@ -641,7 +641,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
...
@@ -641,7 +641,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
self
.
help_b
()
self
.
help_b
()
def
help_b
(
self
):
def
help_b
(
self
):
print
"""b(reak) ([file:]lineno | function) [,
"condition"
]
print
"""b(reak) ([file:]lineno | function) [,
condition
]
With a line number argument, set a break there in the current
With a line number argument, set a break there in the current
file. With a function name, set a break at first executable line
file. With a function name, set a break at first executable line
of that function. Without argument, list all breaks. If a second
of that function. Without argument, list all breaks. If a second
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment