Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Boost.Asio C++ Network Programming

You're reading from   Boost.Asio C++ Network Programming Learn effective C++ network programming with Boost.Asio and become a proficient C++ network programmer

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781785283079
Length 200 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Wisnu Anggoro Wisnu Anggoro
Author Profile Icon Wisnu Anggoro
Wisnu Anggoro
Arrow right icon
View More author details
Toc

Summary


The debugging process is an essential thing that we can do to analyse our program by running it step-by-step. When our program produces unexpected results or it crashes in the middle of an execution, there is no other choice than to run the debugging process. GDB is our choice since it is compatible with the C++ language, as it comes with MinGW-w64 installer packages and is lightweight when loaded.

GDB can only run an executable file that compiles using the -g option. This option will add the debugging information and symbol, which are important in the debugging process. You will be unable to debug the executable files that are compiled without the -g option.

After we successfully load our program under GDB, we can choose either the run or start command to execute the debugging process. The run command will execute our program as usual but will stop if the debugger finds a breakpoint, while the start command will stop at the main block of program at the first execution.

When the debugger...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image