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
067d734f
Kaydet (Commit)
067d734f
authored
Ara 12, 2002
tarafından
Chui Tey
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Prevent debugger from stepping into Idle rpc code
üst
de333791
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
Debugger.py
Lib/idlelib/Debugger.py
+17
-5
No files found.
Lib/idlelib/Debugger.py
Dosyayı görüntüle @
067d734f
...
@@ -13,13 +13,23 @@ class Idb(bdb.Bdb):
...
@@ -13,13 +13,23 @@ class Idb(bdb.Bdb):
bdb
.
Bdb
.
__init__
(
self
)
bdb
.
Bdb
.
__init__
(
self
)
def
user_line
(
self
,
frame
):
def
user_line
(
self
,
frame
):
# get the currently executing function
##print>>sys.__stderr__, "*function: ", frame.f_code.co_name
##print>>sys.__stderr__, "*file: ", frame.f_code.co_filename
##print>>sys.__stderr__, "*line number: ", frame.f_code.co_firstlineno
co_filename
=
frame
.
f_code
.
co_filename
co_filename
=
frame
.
f_code
.
co_filename
co_name
=
frame
.
f_code
.
co_name
co_name
=
frame
.
f_code
.
co_name
## print>>sys.__stderr__, "*function: ", frame.f_code.co_name
## print>>sys.__stderr__, "*file: ", frame.f_code.co_filename
## print>>sys.__stderr__, "*line number: ", frame.f_code.co_firstlineno
## print>>sys.__stderr__, "*name: ", co_name
## print>>sys.__stderr__, "*function: ", frame.f_locals.get(co_name,None)
try
:
try
:
# XXX 12 Dec 2002 CGT TO DO: Find way to get a reference to the
# XXX currently running function. If the function has an
# attribute called "DebuggerStepThrough", prevent the debugger
# from stepping through Idle code. The following doesn't work
# in instance methods. Hard coded some workarounds.
func
=
frame
.
f_locals
[
co_name
]
func
=
frame
.
f_locals
[
co_name
]
if
getattr
(
func
,
"DebuggerStepThrough"
,
0
):
if
getattr
(
func
,
"DebuggerStepThrough"
,
0
):
print
"XXXX DEBUGGER STEPPING THROUGH"
print
"XXXX DEBUGGER STEPPING THROUGH"
...
@@ -27,7 +37,9 @@ class Idb(bdb.Bdb):
...
@@ -27,7 +37,9 @@ class Idb(bdb.Bdb):
return
return
except
:
except
:
pass
pass
if
co_filename
in
(
'rpc.py'
,
'<string>'
):
# workaround for the problem above
if
co_filename
in
(
r'.\rpc.py'
,
'rpc.py'
,
'<string>'
):
self
.
set_step
()
self
.
set_step
()
return
return
if
co_filename
.
endswith
(
'threading.py'
):
if
co_filename
.
endswith
(
'threading.py'
):
...
...
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