Say we get a massive and very messy script that contains many lines that aren't in use.
How can we find out which lines are in use?
If the script is very short we can go with debugger step by step and see what is used but this is impractical in most cases.
Is there any tool or trick to get the lines that are not in use?
IDEs mark variables not in use, but what about function definitions that are not executed at all?
Basically how to get the lines that weren't executed in a python script specific run?
Maybe something to plot a list of numbers of lines not in use