When I run my ddd, it doesn't display the source code. The source window is blank. The execution is still there for example I can step through the program but there is no visual indication where in the code the execution is happening.

How can I fix this?

I run it using this command in xterm:

ddd mycode

Also is there any other debugger like ddd for Mac OS X? If so, could you please give me step by step instructions about how to download it.

有帮助吗?

解决方案

You should check whether the program has been compiled with debugging information.

For example, if you're using g++ you should include the -g option.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top