Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just need to see what is stored, in realtime, in some particular variables and struct used by an application written in C.

I need something like the stack tracer that comes with the ADT plugins for Eclipse as part of the Android sdk.

share|improve this question
up vote 3 down vote accepted

If I understand correctly you just need to use a debugger. If you compiled with gcc then you can use gdb. You will want to add the -g -O0 flags to include debugging symbols and turn off optimization. If you need to you can even attach gdb to a running process. I know microsoft has a similar debugger I'm just not familiar with it.

share|improve this answer
the problem is that, as you pointed out, this tools needs a series of symbols, if i can't access the source code to recompile the app, how can i solve this? – user827992 Jul 2 '12 at 0:56
@user827992 You can't...... Without the debug information the debugger has no way to know where the source code is located, so cannot show you the source. You can still debug at the assembly level. – mattnz Jul 2 '12 at 4:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.