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
e498083b
Kaydet (Commit)
e498083b
authored
Ock 22, 2007
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug #1627316: handle error in condition/ignore pdb commands more gracefully.
üst
62634952
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
pdb.py
Lib/pdb.py
+12
-2
No files found.
Lib/pdb.py
Dosyayı görüntüle @
e498083b
...
...
@@ -474,7 +474,12 @@ class Pdb(bdb.Bdb, cmd.Cmd):
def
do_condition
(
self
,
arg
):
# arg is breakpoint number and condition
args
=
arg
.
split
(
' '
,
1
)
bpnum
=
int
(
args
[
0
]
.
strip
())
try
:
bpnum
=
int
(
args
[
0
]
.
strip
())
except
ValueError
:
# something went wrong
print
>>
self
.
stdout
,
\
'Breakpoint index
%
r is not a number'
%
args
[
0
]
try
:
cond
=
args
[
1
]
except
:
...
...
@@ -489,7 +494,12 @@ class Pdb(bdb.Bdb, cmd.Cmd):
def
do_ignore
(
self
,
arg
):
"""arg is bp number followed by ignore count."""
args
=
arg
.
split
()
bpnum
=
int
(
args
[
0
]
.
strip
())
try
:
bpnum
=
int
(
args
[
0
]
.
strip
())
except
ValueError
:
# something went wrong
print
>>
self
.
stdout
,
\
'Breakpoint index
%
r is not a number'
%
args
[
0
]
try
:
count
=
int
(
args
[
1
]
.
strip
())
except
:
...
...
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