simple trick, self debugs your own process preventing debuggers like x64dbg from attaching
- include attachment.hxx
- call the "start" function at the very start of your program, example below:
int main(int argc, char* argv[])
{
c_already_debugged->dispatch(argc, argv);
std::printf("attachment disabled\n");
std::cin.get();
return 0;
}