Debugger/DebugUI.py

changeset 788
5b1b59777460
parent 768
df2dbf3072be
child 791
9ec2ac20e54e
equal deleted inserted replaced
786:06290d4db8ab 788:5b1b59777460
764 exts = self.debugServer.getExtensions(language) 764 exts = self.debugServer.getExtensions(language)
765 if fn.endswith(exts): 765 if fn.endswith(exts):
766 cap = self.debugServer.getClientCapabilities(language) 766 cap = self.debugServer.getClientCapabilities(language)
767 break 767 break
768 else: 768 else:
769 if editor.isPyFile(): 769 if editor.isPy2File():
770 cap = self.debugServer.getClientCapabilities('Python') 770 cap = self.debugServer.getClientCapabilities('Python')
771 elif editor.isPy3File(): 771 elif editor.isPy3File():
772 cap = self.debugServer.getClientCapabilities('Python3') 772 cap = self.debugServer.getClientCapabilities('Python3')
773 elif editor.isRubyFile(): 773 elif editor.isRubyFile():
774 cap = self.debugServer.getClientCapabilities('Ruby') 774 cap = self.debugServer.getClientCapabilities('Ruby')
803 @param editor editor window 803 @param editor editor window
804 """ 804 """
805 if editor is None: 805 if editor is None:
806 return 806 return
807 807
808 if editor.isPyFile() or editor.isPy3File() or editor.isRubyFile(): 808 if editor.isPy2File() or editor.isPy3File() or editor.isRubyFile():
809 if editor.curLineHasBreakpoint(): 809 if editor.curLineHasBreakpoint():
810 self.dbgEditBpAct.setEnabled(True) 810 self.dbgEditBpAct.setEnabled(True)
811 else: 811 else:
812 self.dbgEditBpAct.setEnabled(False) 812 self.dbgEditBpAct.setEnabled(False)
813 if editor.hasBreakpoints(): 813 if editor.hasBreakpoints():

eric ide

mercurial