How to run ROOT Macros in VS Code

Is there anyway to change the behaviour of the F5/run button, ideally, I’d want to disable GDB attaching or change how it operates. I’ve been trying to figure this out and it doesn’t seem as simple as using the run without debugging option, which keeps trying to attach GDB anyway.

Originally I’d said the snap package of ROOT wouldn’t really work with IDE’s generally. This is mostly due to the non standard include paths and the complications of trying to work in the container vs out of it, but following this blog, VSCode can be made to get 99% of the way there, with intellisense support, but I can’t get F5 to work because GDB needs to be handled specially for snaps.

Perhaps I’m being blind to something obvious, but otherwise this does fill a huge problem with the snap package so I’d be really keen to have suggestions.