Skip to content
Snippets Groups Projects
Commit bbcab3a3 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

ENH: added the condition that breakpoint must be set to a true value

parent 328cce1c
No related branches found
No related tags found
1 merge request!188Allow to set breakpoints in crawler definitions
Pipeline #59569 passed
......@@ -348,7 +348,11 @@ def scanner(items: list[StructureElement],
if (converter.typecheck(element) and (
restricted_path is None or element.name == restricted_path[0])
and converter.match(element) is not None):
if "breakpoint" in converter.definition:
# Set a breakpoint that opens pydb if "breakpoint" is defined for this converter
# and set to a true value:
if ("breakpoint" in converter.definition and
bool(converter.definition["breakpoint"])):
breakpoint()
path_found = True
general_store_copy = general_store.create_scoped_copy()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment