How to Debug a C++ program

Hi all,

I've written a multi threaded application in C++, i dont know how to debug that.
If it is a single threaded application, I use dbx to debug successfully. since my application is having 5thread, i dont know how to debug that. Also my program is taking command line argument, how to pass it to the program.

example:
a.out add

if i give
dbx a.out add

it is not taking.
please help in this.
Topic archived. No new replies allowed.