How gdb gets connected to the live boxes and it provides exception if happens?

Please explain your question better. One sentence is not enough to describe a problem to us. It appears that English is not your main language, so I can understand that, but you have shown no effort, and have not given us enough detail to help you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.