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
69371d65
Kaydet (Commit)
69371d65
authored
Kas 04, 2002
tarafından
Chui Tey
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Set breakpoints on remote debugger
üst
66239068
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
Debugger.py
Lib/idlelib/Debugger.py
+1
-1
PyShell.py
Lib/idlelib/PyShell.py
+9
-8
No files found.
Lib/idlelib/Debugger.py
Dosyayı görüntüle @
69371d65
...
...
@@ -330,7 +330,7 @@ class Debugger:
for
editwin
in
pyshell_edit_windows
:
filename
=
editwin
.
io
.
filename
try
:
for
lineno
in
editwin
.
breakpoints
:
for
lineno
in
editwin
.
get_current_breaks
()
:
self
.
set_breakpoint_here
(
filename
,
lineno
)
except
AttributeError
:
continue
...
...
Lib/idlelib/PyShell.py
Dosyayı görüntüle @
69371d65
...
...
@@ -84,7 +84,7 @@ class PyShellEditorWindow(EditorWindow):
# whenever a file is changed, restore breakpoints
if
self
.
io
.
filename
:
self
.
restore_file_breaks
()
def
filename_changed_hook
(
self
,
old_hook
=
self
.
io
.
filename_change_hook
):
def
filename_changed_hook
(
old_hook
=
self
.
io
.
filename_change_hook
,
self
=
self
):
self
.
restore_file_breaks
()
old_hook
()
self
.
io
.
set_filename_change_hook
(
filename_changed_hook
)
...
...
@@ -161,18 +161,19 @@ class PyShellEditorWindow(EditorWindow):
for
line
in
lines
:
if
not
line
.
startswith
(
filename
+
"="
):
new_file
.
write
(
line
)
new_file
.
write
(
filename
+
"="
+
`self.get_current_breaks()`
)
new_file
.
write
(
filename
+
"="
+
`self.get_current_breaks()`
+
"
\n
"
)
new_file
.
close
()
def
restore_file_breaks
(
self
):
self
.
text
.
update
()
# this enables setting "BREAK" tags to be visible
filename
=
self
.
io
.
filename
lines
=
open
(
self
.
breakpointPath
,
"r"
)
.
readlines
()
for
line
in
lines
:
if
line
.
startswith
(
filename
+
"="
):
breakpoint_linenumbers
=
eval
(
line
[
len
(
filename
)
+
1
:])
for
breakpoint_linenumber
in
breakpoint_linenumbers
:
self
.
set_breakpoint
(
breakpoint_linenumber
)
if
os
.
path
.
isfile
(
self
.
breakpointPath
):
lines
=
open
(
self
.
breakpointPath
,
"r"
)
.
readlines
()
for
line
in
lines
:
if
line
.
startswith
(
filename
+
"="
):
breakpoint_linenumbers
=
eval
(
line
[
len
(
filename
)
+
1
:])
for
breakpoint_linenumber
in
breakpoint_linenumbers
:
self
.
set_breakpoint
(
breakpoint_linenumber
)
def
get_current_breaks
(
self
):
#
...
...
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