1 #include <stdio.h> 2 3 #include <chrono> 4 #include <thread> 5 main(int argc,char const * argv[])6int main(int argc, char const *argv[]) { 7 int temp; 8 lldb_enable_attach(); 9 10 // Waiting to be attached by the debugger. 11 temp = 0; 12 13 while (temp < 30) // Waiting to be attached... 14 { 15 std::this_thread::sleep_for(std::chrono::seconds(2)); 16 temp++; 17 } 18 19 printf("Exiting now\n"); 20 } 21