Support of breakpoint() builtin of Python 3.7 maintenance

Fri, 06 Jul 2018 20:30:36 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Fri, 06 Jul 2018 20:30:36 +0200
branch
maintenance
changeset 6406
40c49ca930b3
parent 6400
3973b57d6b99
child 6407
cee2958c2f97

Support of breakpoint() builtin of Python 3.7
(grafted from 1a0afc7f28377041b6c9c75df80327a7d768a2d6)

DebugClients/Python/DebugBase.py file | annotate | diff | comparison | revisions
changelog file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugBase.py	Wed Jul 04 19:36:17 2018 +0200
+++ b/DebugClients/Python/DebugBase.py	Fri Jul 06 20:30:36 2018 +0200
@@ -110,6 +110,8 @@
         # Use it like this:
         # if hasattr(sys, 'breakpoint): sys.breakpoint()
         sys.breakpoint = self.set_trace
+        if sys.version_info[:2] >= (3, 7):
+            sys.breakpointhook = self.set_trace
 
     def __eventPollTimer(self):
         """
--- a/changelog	Wed Jul 04 19:36:17 2018 +0200
+++ b/changelog	Fri Jul 06 20:30:36 2018 +0200
@@ -4,6 +4,8 @@
 - bug fixes
 - Checkers
   -- upgraded pyflakes to version 2.0.0
+- Debugger
+  -- Support of breakpoint() builtin of Python 3.7
 - Git Interface
   -- added capability to change the URL and/or user credentials for a
      remote repository

eric ide

mercurial