Anonymous avatar Anonymous committed 82b6c9a

Exposed method to clear break markers. Changed Run to cursor to run the application if it is defined

Comments (0)

Files changed (1)

Views/PySourceView.py

             else: mrk = brkPtMrk
             self.MarkerAdd(brk['lineno'] - 1, mrk)
 
+    def deleteBreakMarkers(self, lineNo):
+        self.MarkerDelete(lineNo - 1, brkPtMrk)
+        self.MarkerDelete(lineNo - 1, tmpBrkPtMrk)
+
     def deleteBreakPoint(self, lineNo):
         self.breaks.deleteBreakpoints(lineNo)
         debugger = self.model.editor.debugger
             # Try to apply to the running debugger.
             filename = self.model.assertLocalFile()
             debugger.deleteBreakpoints(filename, lineNo)
-        self.MarkerDelete(lineNo - 1, brkPtMrk)
-        self.MarkerDelete(lineNo - 1, tmpBrkPtMrk)
-
+        self.deleteBreakMarkers(lineNo)
+        
     def addBreakPoint(self, lineNo, temp=0, notify_debugger=1):
         filename = self.model.assertLocalFile()
 
         self.addBreakPoint(line, temp=1, notify_debugger=0)
         # Avoid a race condition by sending the breakpoint
         # along with the "continue" instruction.
-        temp_breakpoint = (os.path.normcase(os.path.abspath(
-            self.model.assertLocalFile())), line)
-        self.model.debug(cont_if_running=1, cont_always=1,
+        temp_breakpoint = (self.model.assertLocalFile(), line)
+        if self.model.app:
+            model = self.model.app
+        else:
+            model = self.model
+        model.debug(cont_if_running=1, cont_always=1,
                          temp_breakpoint=temp_breakpoint)
 
     def OnContextHelp(self, event):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.