Skip to content

Auto技术

专注于汽车制造技术分享

Primary Menu
  • 文章首页
  • 汽车制造
    • 制造体系
    • 工业仿真
    • 工业控制
    • 工业设备
    • 工艺方案
  • 杂七杂八
  • 技术干货
  • 项目管理
  • 营销技术
  • 网赚联盟
  • 读书学习
  • 文章合集
  • 社交媒体
    • 知乎
    • 微信小程序
    • 微信公众号
  • Home
  • 技术干货
  • 技术干货八:GNU Project Debugger (GDB) 简介
  • 技术干货

技术干货八:GNU Project Debugger (GDB) 简介

Auto 2019-08-20
2609

GNU Project Debugger (GDB) 简介

Let’s have a look at debugger tools for C/C++. So, what is a debugger? A debugger is a program that runs and controls another program, examining each line of code to detect problems or bugs.

让我们看一看C/C++的调试器工具。什么是调试器?调试器是运行和控制另一个程序的程序,检查每一行代码以检测问题或错误。

The Ubuntu Linux comes with a debugger called GNU Debugger, which is also called GDB (www.gnu.org/software/gdb/). It is one of the popular C and C++ program debuggers for the Linux system.

Ubuntu Linux附带了一个名为GNU debugger的调试器,也称为GDB(www.gnu.org/software/gdb/)。它是Linux系统中流行的C和C++程序调试器之一。

GDB.jpg

1 Ubuntu Linux 安装 GDB

Here is the command to install GDB in Ubuntu. It’s already installed on the latest version of Ubuntu. If you are using other versions, you can use the following command to install it.

下面是在Ubuntu中安装GDB的命令。GDB已经安装在最新版本的Ubuntu上。如果您使用的是其他版本,则可以使用以下命令进行安装。

sudo apt-get install gdb

GDB Installation.jpg

2 GDB 安装后验证

To check whether GDB is installed properly on your PC, use the following command. Once you type gdb in your terminal, the message in Figure is shown.

要检查GDB是否正确安装在你的电脑上,请使用以下命令。在终端中键入gdb后,将显示图中的消息。

gdb

You can verify the gdb version by using the following command.
你也可以使用以下命令验证gdb版本。

gdb version

GDB Test.jpg

Continue Reading

Previous: 技术干货七:Ubuntu GCC/C++编译器简介
Next: 技术干货九:WSL Ubuntu Linux gedit富文本编辑器

智能推荐

公众号流量主那些事儿(一)

    公众号流量主那些事儿(一)

    Auto 2019-12-14 3708
    世界上最小的焊装线/ 1982

      世界上最小的焊装线/ 1982

      Auto 2019-09-25 4557
      Friction Stir Welding (FSW) 搅拌摩擦焊

        Friction Stir Welding (FSW) 搅拌摩擦焊

        Auto 2019-09-24 4327
        Friction Welding 摩擦焊

          Friction Welding 摩擦焊

          Auto 2019-09-23 3868
          Exothermic welding 铝热焊

            Exothermic welding 铝热焊

            Auto 2019-09-17 3810
            Follow Us
            • 猜你喜欢
            • 随机文章
            • 热门文章
            • Friction Stir Welding (FSW) 搅拌摩擦焊
              • 工艺方案

              Friction Stir Welding (FSW) 搅拌摩擦焊

            • Friction Welding 摩擦焊
              • 工艺方案

              Friction Welding 摩擦焊

            • Exothermic welding 铝热焊
              • 工艺方案

              Exothermic welding 铝热焊

            • 技术干货八:GNU Project Debugger (GDB) 简介
              • 技术干货

              技术干货八:GNU Project Debugger (GDB) 简介

            • 技术干货十三:WSL Ubuntu Linux OOP基本概念
              • 汽车制造

              技术干货十三:WSL Ubuntu Linux OOP基本概念

            • 工业设备二:Automotive Industry Conveyors System 汽车工业输送系统
              • 工业设备

              工业设备二:Automotive Industry Conveyors System 汽车工业输送系统

            • 工业仿真二:Tecnomatix PDPS软件安装
              • 工业仿真

              工业仿真二:Tecnomatix PDPS软件安装

            • 工业设备一:柔性主焊线工艺及关键设备
              • 工业设备

              工业设备一:柔性主焊线工艺及关键设备

            • 技术干货一:Win10 开启WSL(Windows Subsystem for Linux)并安装Ubuntu 18.04 LTS
              • 技术干货

              技术干货一:Win10 开启WSL(Windows Subsystem for Linux)并安装Ubuntu 18.04 LTS

            文章精选

            公众号流量主那些事儿(一)2 min read
            • 网赚联盟

            公众号流量主那些事儿(一)

            Auto2019-12-14 2 3708
            世界上最小的焊装线/ 19822 min read
            • 汽车制造

            世界上最小的焊装线/ 1982

            Auto2019-09-25 2 4557
            Friction Welding 摩擦焊2 min read
            • 工艺方案

            Friction Welding 摩擦焊

            Auto2019-09-23 2 3868
            Resistance Welding 电阻焊2 min read
            • 工艺方案

            Resistance Welding 电阻焊

            Auto2019-09-12 2 3357
            Copyright © 2019. | Auto技术 | 鄂ICP备17030239号-1.