반응형
Linux 개발 환경에서 gdb 로 서비스 디버깅 시 자식 프로세스를 디버깅하는 방법
]# gdb ./service
(gdb) set follow-fork-mode child
(gdb) r -start
...
- gdb 수행 전 "set follow-fork-mode child" 설정 후 run
이후 gdb 는 서비스의 자식 프로세스를 따라감
반응형
'개발 노트 > Linux' 카테고리의 다른 글
[EC2] Linux code-server 개발환경 구축하기 (2) | 2020.10.06 |
---|---|
[Kernel] 리눅스 서버의 TCP 네트워크 성능을 결정짓는 커널 파라미터 (0) | 2020.05.14 |
[Linux] CentOS 7 GUI 에 Wireshark 설치하기 (0) | 2019.05.15 |
[Linux] VMware Virtual Machine list export / import (0) | 2019.05.14 |
[Linux] error while loading shared libraries: libcrypto.so.1.0.0 (0) | 2019.04.12 |