Do I need a link cable with the Oculus Quest 2?

You can use the Oculus Debug tool like @MortThe2nd said, or update the Oculus PC software to the latest beta version. You do this by going into the settings, select the Beta tab en then set Public Test Channel to enabled.

See also this link at the top section: