Skip to content

Commit b0e842a

Browse files
committed
Rename confusingly named function
1 parent c6e8a19 commit b0e842a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

swi.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ def run(self):
664664
channel.send(webkit.Debugger.setBreakpointByUrl(int(row), scriptUrl), self.breakpointAdded, view_name)
665665
else:
666666
logger.info('Pending breakpoint for %s at %s' % (view_name, row))
667-
set_breakpoint_by_full_path(view_name, row)
667+
record_breakpoint_by_full_path(view_name, row)
668668

669669
update_overlays()
670670

@@ -694,9 +694,9 @@ def breakpointAdded(self, command):
694694

695695
# If this breakpoint is in TS file, then store the column number as well for future restoration
696696
if projectsystem.DocumentMapping.MappingsManager.is_generated_file(file_name):
697-
set_breakpoint_by_full_path(file_name, str(lineNumber), -1, 'enabled', breakpointId)
697+
record_breakpoint_by_full_path(file_name, str(lineNumber), -1, 'enabled', breakpointId)
698698
else:
699-
set_breakpoint_by_full_path(file_name, str(lineNumber), columnNumber, 'enabled', breakpointId)
699+
record_breakpoint_by_full_path(file_name, str(lineNumber), columnNumber, 'enabled', breakpointId)
700700

701701
logger.info('Breakpoint set in %s %s at (%s,%s)' % (scriptId, file_name, lineNumber, columnNumber))
702702

@@ -1329,7 +1329,8 @@ def save_breaks():
13291329
def full_path_to_file_name(path):
13301330
return os.path.basename(os.path.realpath(path))
13311331

1332-
def set_breakpoint_by_full_path(file_name, line, column=-1, status='disabled', breakpointId=None):
1332+
def record_breakpoint_by_full_path(file_name, line, column=-1, status='disabled', breakpointId=None):
1333+
""" Add breakpoint to our persisted settings """
13331334
breaks = get_breakpoints_by_full_path(file_name)
13341335

13351336
if not line in breaks:

0 commit comments

Comments
 (0)