I don't believe it is necessary to clone node-red in order to step debug a contrib node. Not sure if it ultimately matters.
This is how I step debug my contrib nodes in VSCode - it might help? (Unsure because I am unfamiliar with the ide mentioned earlier)