j**t 发帖数: 439 | 1 dbx是怎么运行的,基本步骤是哪些?
看了半天man page,还是不着边际.上面只是介绍各个参数的用法,
却没讲怎么起步. 只知道用stop可以设断点,但是在哪儿加呢?
是在源代码里吗?
哪位给讲讲?thanks. | c*****t 发帖数: 1879 | 2 1. You must compile and link your program w/ debugging information
on. On Unix, the flag is usually -g for most C/C++ compilers.
2. dbx your-program
3. stop at main (or stop at file:line, may not be exact)
4. run args (if any)
5. s (for step)
Other things you can do trial and error to figure out.
【在 j**t 的大作中提到】 : dbx是怎么运行的,基本步骤是哪些? : 看了半天man page,还是不着边际.上面只是介绍各个参数的用法, : 却没讲怎么起步. 只知道用stop可以设断点,但是在哪儿加呢? : 是在源代码里吗? : 哪位给讲讲?thanks.
|
|