https://twitter.com/MagdyMak Debugging Commands
mac bloger

Through the Mac blog, we publish all information in various fields of knowledge in various disciplines

آخر الأخبار

جاري التحميل ...

Debugging Commands

 

Here are some common commands used in GDB (GNU Debugger):

  • run: starts the program being debugged
  • break [file:]line: sets a breakpoint at the specified line in the current file or in the specified file
  • info breakpoints: lists all breakpoints
  • delete [breakpoint-number]: deletes a breakpoint
  • continue: continues execution until the next breakpoint or the end of the program
  • next: executes the next line of the program, stepping over function calls
  • step: executes the next line of the program, stepping into function calls
  • backtrace: displays a stack trace of the current execution state
  • print [variable-name]: prints the value of the specified variable
  • help: displays a list of commands or information about a specific command
  • quit or q: exits GDB

Note: gdb has a lot more command to debug and inspect, These are the most common and useful command which is used to debug C/C++ programs.

عن الكاتب

mac

التعليقات


اتصل بنا

إذا أعجبك محتوى مدونتنا نتمنى البقاء على تواصل دائم ، فقط قم بإدخال بريدك الإلكتروني للإشتراك في بريد المدونة السريع ليصلك جديد المدونة أولاً بأول ، كما يمكنك إرسال رساله بالضغط على الزر المجاور ...

جميع الحقوق محفوظة

mac bloger