There is no Real Debt Issue. As Scotland has no Contracts that would Bind any UK Debt to them.
I am sure an Agreement on this would be made. But having a National Debt aint much of a Problem.
And the small Share and small Country like Scotland would take. Would be insignificant for the EU.
EU Membership Criteria would likely be no Trouble either. As Scotland is currently in the EU.
Meaning it would not have any Problems just keeping most of the Laws intact.
What Currency will be used is a Difficult one.
Some will say Euro.
Ultimately most Experts expect that Scotland will simply keep the Pound until it Introduces the Euro.
As it has no effect on the Pound regardless of being in the Union or not. There is little problem with that. And it would take time for Scotland to setup its own National Bank to a lvl of providing Currency.
Thing is. Scotland actually has at least a Year until even a Referendum on Independence would be held.
Meaning they can work out these Details.
Unlike the UK they dont have a 2 year Limit and wont be sitting on the Dry if they leave the UK