Could someone help me?

Do you have a question? This is not clear.

I wouldn’t try and mix inspection and the line trace, because they are separate functions.

Either you are already inspecting something OR you can do a line trace, and pick it up…