Lines Matching full:path
22 def watch_is_active(watch_info: StepExpectInfo, path, frame_idx, line_no): argument
25 if watch_path and os.path.isfile(watch_path):
26 # If the current path does not match the expected file, this watch is
28 if not (path and os.path.isfile(path) and os.path.samefile(path, watch_path)):
197 frame.loc.path = self._debug_to_external_path(frame.loc.path)
220 def _external_to_debug_path(self, path): argument
222 return path
224 if not root_dir or not path:
225 return path
226 assert path.startswith(root_dir)
227 return path[len(root_dir) :].lstrip(os.path.sep)
229 def _debug_to_external_path(self, path): argument
231 return path
232 if not path or not self.options.source_root_dir:
233 return path
235 if path.endswith(self._external_to_debug_path(file)):
237 return path
265 loc=LocIR(path=path, lineno=0, column=0),
267 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], self._step_paths(self.dbg.get_step_info([], 0)))
303 self.options.source_root_dir = os.path.sep + "my_root"
309 self.options.source_root_dir = os.path.sep + "my_root"
310 path = os.path.join(self.options.source_root_dir, "some_file")
311 self.options.source_files = [path]
312 other_path = os.path.join(os.path.sep + "other", "file")
313 dbg_path = os.path.join(os.path.sep + "dbg", "some_file")
316 [None, other_path, path], self._step_paths(self.dbg.get_step_info([], 0))