Not powering via the USB

I want to use the USB connector for debugging etc , but don’t want the Arduino powered via this connection.
I had thought of just making up an adapter with the 5v line disconnected . I’m unsure if this will work , in that data will still transfer , also bothered that the data connection may try to backfeed the Arduino and power it ( I guess I could put a couple of 10k resistors in the data lines to stop this ).

I’ve seen mention of removing components from the board , but would rather avoid that . This is not a board specific question as it’s come up a couple of times in projects ( Mega2560, nano, Uno).

Any thoughts or pointers ?

Thx

Did find this tip on Google for DATA ONLY.

And this topic from a different location which would suggest it may well be worth the effort.

If it works splice in and fit a switch then you have best of both worlds.

Bob.

And another hit via google