If you have an old (or new) incandescent bulb, you can wire it in series with the live mains input.
Obviously 240v bulb!. 100 watts or so.
It’ll light up bright indicating a short. Then with power disconnected, lift a leg or remove the diode then transistor until the short goes and the bulb will...