The 'Trainspotting' author, who was born in Edinburgh and is a staunch pro-independence campaigner, lamented the spat that broke out late last night between Unionist Rowling and separatist McGarry.
He derided the "troll" account's secret owner, saying he "must have wanked himself blind by now" over the furore that broke out after Rowling threatened legal action for being called minsogynst sympathiser.
'Brian Spanner', a prolific tweeter on political affairs in Scotland with a self-admitted history of sending abusive tweets to SNP politicians, was the subject of an argument between Rowling and McGarry on Thursday.
The MP called out Rowling for posting messages in support of Spanner, alleging she "defends abusive misogynist trolls".
After a heated exchange between the pair, McGarry deleted several of her tweets and made her account 'private' - meaning members of the public were barred from accessing her profile.
Rowling meanwhile issued a strongly worded legal threat to the former SNP MP, who resigned her party whip in November.
"You don't appear to understand how Twitter or defamation works. I'm going to help you out with the latter," the 50-year-old longstanding Edinburgh-resident wrote.
.@NatalieMcGarry You don't appear to understand how Twitter or defamation works. I'm going to help you out with the latter.— J.K. Rowling (@jk_rowling) January 28, 2016
But in his own intervention the following day, Welsh hit out at Spanner, writing: "The anon[ymous] troll coward whose misogynistic tweets precipitated feud b[etween] JK Rowling and Natalie McGarry must have wanked himself blind by now."
One Twitter user took contention with his phrasing, calling Welsh out for using language similar to that of the 'troll' he was attacking.
Welsh hit back, admitting he had presumed the gender of anonymous tweeter Spanner to be male, correcting himself by substituting the "wanked himself blind" to "frigged herself demented", using a regional term for masturbation.
Okay, assumptive of me as most anon trolls abusing women online are men. '...or frigged herself demented.' Better? https://t.co/cVnKnWVvVU— Irvine Welsh (@IrvineWelsh) January 29, 2016
Spanner retorted by asking whether Welsh would apologise for having taken exception to his own sexually graphic posts.
I wonder if @IrvineWelsh will choose to apologise for his choice of words?
He seemed very concerned about that word earlier.— Brian Spanner QC (@BrianSpanner1) January 29, 2016
Comment was sought by The Huffington Post UK from representatives for Rowling and McGarry but both refused to give any statement on the fallout of Thursday's debate.
READ MORE:Suggest a correction