Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- why error
- ecma
- error
- idapro
- ida
- Analysis
- MySQL
- commandline
- mock.patch
- x64
- open office xml
- Rat
- Ransomware
- h5py.File
- error fix
- ida pro
- Python
- Injection
- 포인터 매핑
- malware
- hex-rays
- TensorFlow
- data distribution
- javascript
- pytest
- idapython
- NumPy Unicode Error
- idb2pat
- debugging
- svn update
Archives
- Today
- Total
13 Security Lab
debug print 코드의 흐름을 파악, 프로그램이 죽는 위치 찾기 본문
코드의 흐름을 파악하기 어렵거나, 프로그램이 죽는 위치를 찾기 어려울때
#define DBG_CHECK printf("(%s:%s:%d)n",__FILE__,__FUNCTION__,__LINE__);
int main()
{
DBG_CHECK;
return 0;
}
DBG_CHECK가 위치하는 파일,함수명,라인번호의 정보가 화면에 출력
Comments