tags:

views:

66

answers:

1

Hi,

A coworke integrated the gdb into my emacs, so that i can single step through my code and it gets shown where i am in the emacs window. How do i do that with idb?

Unfortunately i cannot remember what we did then, so a walkthrough would be appreciated.

cheers

+1  A: 

From this link or this one, you should be able to do:

M-x gdb

You'll be prompted Run gdb (like this): and you enter:

idb -gdb -fullname yourprogram.exe

As far as how to use the debugger, check out the current gdb manual and the idb command reference.

The gdb manual does have a sample session (a walkthrough if you will).

Trey Jackson
that doesnt work. it starts the debugger, but when i go run, it wont actually execute something.
tarrasch
@tarrasch I don't have `idb`, so cannot test. Did you specify the path to the executable? When in the debugger, did you issue the `run arg1 arg2 ...` command to start it?
Trey Jackson
ah ok then. no it just freezes after starting idb. After issuing a command it wont do anything. i did everything according to those links, since i already found them before and tried.
tarrasch
@tarrasch The last piece of advice I can give is to verify that you can run `idb` from the command line (same arguments, but outside of Emacs). If you can't, then there's your problem. If you can... I'm out of ideas.
Trey Jackson
@Trey Jackson actually from the command line everything works fine. i just want to have it in an IDE
tarrasch