This MR implements a completely overworked and heavily improved debug tree that can be used to:
The functionality is implemented in the scanner module which receives an additional argument for the new_debug_tree
. This argument is used recursively to generate a tree structure of roughly the following form:
- SE1:
matching_converters:
- C1:
- SE1a
- SE1b
- SE1c
- ...
- SE2
- SE3
- ...
So every level of structure elements (SEx) includes all information about a specific structure element that was scanned.
The attribute matching_converters
includes all information about matching converters (which recurses in its subtree
).
There is a function in the scanner module now that allows turning this information into an HTML-file with collapsible tree elements (using CSS).
Here is an example of how the output looks like:
This MR furthermore implements a small change that allows to deactivate specific levels in the CFood using the "deactivate" key.
This should be manually tested by generating the scanner output files using the function save_debug_tree. Furthermore, there are some unit tests.
Please, prepare your MR for a review. Be sure to write a summary and a focus and create gitlab comments for the reviewer. They should guide the reviewer through the changes, explain your changes and also point out open questions. For further good practices have a look at our review guidelines
For further good practices have a look at our review guidelines.