Skip to content

Commit 3b2bb11

Browse files
committed
logging setBreakpoint
1 parent 359625d commit 3b2bb11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

swi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ def add_breakpoints_to_file(self, file):
459459
if position:
460460
location = webkit.Debugger.Location({'lineNumber': position.zero_based_line(), 'columnNumber': position.zero_based_column(), 'scriptId': scriptId})
461461
params = {'authoredLocation': { 'lineNumber': line, 'columnNumber': column, 'file': file_name }}
462+
logger.info('Setting breakpoint in %s at %s,%s mapped from %s at %s,%s' % (scriptId, position.file_name, location.lineNumber, location.columnNumber, file_name, line, column))
462463
channel.send(webkit.Debugger.setBreakpoint(location), self.breakpointAdded, params)
463464

464465
# Fall back to raw file
@@ -471,6 +472,7 @@ def add_breakpoints_to_file(self, file):
471472
column = int(breakpoints[line]['column'])
472473

473474
location = webkit.Debugger.Location({'lineNumber': int(line), 'columnNumber': int(column), 'scriptId': scriptId})
475+
logger.info('Setting breakpoint in %s %s at %s,%s' % (scriptId, file, line, column))
474476
channel.send(webkit.Debugger.setBreakpoint(location), self.breakpointAdded)
475477

476478
def updateAuthoredDocument(self, command):

0 commit comments

Comments
 (0)