Skip to content

建设增加 使用文件来调试正在运行程序 #18

@csdchen

Description

@csdchen

-pid number
-p number
连接到进程ID 号
-command file
-x file
从file文件执行命令

ex:ps -x | grep 进程名
获取进程id 例: 2018
ex: gdb -pid 2018 -x gdb.txt

gdb.txt文件内容格式如:
b main.cpp:20
c
p a
q

本来想自己写一个md文件上传到分支的, 但创建一看, 编辑格式没找到, 上传了一个空文档

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions