Lines Matching refs:path
21 def watch_is_active(watch_info: StepExpectInfo, path, frame_idx, line_no): argument
24 if watch_path and os.path.isfile(watch_path):
27 if not (path and os.path.isfile(path) and
28 os.path.samefile(path, watch_path)):
198 frame.loc.path = self._debug_to_external_path(frame.loc.path)
221 def _external_to_debug_path(self, path): argument
223 return path
225 if not root_dir or not path:
226 return path
227 assert path.startswith(root_dir)
228 return path[len(root_dir):].lstrip(os.path.sep)
230 def _debug_to_external_path(self, path): argument
232 return path
233 if not path or not self.options.source_root_dir:
234 return path
236 if path.endswith(self._external_to_debug_path(file)):
238 return path
267 loc=LocIR(path=path, lineno=0, column=0)) for path in paths
272 return [frame.loc.path for frame in step.frames]
277 path = os.path.join(os.path.sep + 'root', 'some_file')
278 self.dbg.add_breakpoint(path, 12)
279 self.assertEqual(path, self.dbg.breakpoint_file)
283 self.options.source_root_dir = os.path.sep + 'my_root'
284 path = os.path.join(self.options.source_root_dir, 'some_file')
285 self.dbg.add_breakpoint(path, 12)
290 self.options.source_root_dir = os.path.sep + 'my_root' + os.path.sep
291 path = os.path.join(self.options.source_root_dir, 'some_file')
292 self.dbg.add_breakpoint(path, 12)
297 path = os.path.join(os.path.sep + 'root', 'some_file')
298 self.dbg.step_info = self._new_step([path])
299 self.assertEqual([path],
304 self.options.source_root_dir = os.path.sep + 'my_root'
311 self.options.source_root_dir = os.path.sep + 'my_root'
312 path = os.path.join(self.options.source_root_dir, 'some_file')
313 self.options.source_files = [path]
314 other_path = os.path.join(os.path.sep + 'other', 'file')
315 dbg_path = os.path.join(os.path.sep + 'dbg', 'some_file')
318 self.assertEqual([None, other_path, path],