MCPcopy Index your code
hub / github.com/ipython/ipython / parse_breakpoint

Function parse_breakpoint

IPython/core/magics/execution.py:1678–1684  ·  view source on GitHub ↗

Returns (file, line) for file:line and (current_file, line) for line

(text, current_file)

Source from the content-addressed store, hash-verified

1676
1677
1678def parse_breakpoint(text, current_file):
1679 '''Returns (file, line) for file:line and (current_file, line) for line'''
1680 colon = text.find(':')
1681 if colon == -1:
1682 return current_file, int(text)
1683 else:
1684 return text[:colon], int(text[colon+1:])
1685
1686
1687def _format_time(timespan, precision=3):

Callers 1

runMethod · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…