Debug command line input with IDA Pro

While attempting to debug a program that had fget with stdin I was having a hard time actually typing the input in. This is done automatically with GDB and I assumed IDA would have it too. Sadly it does not. If you want to enable it though you will have to run IDA from the command line. Sadly you will have to jump between the IDA GUI and the terminal.

 

cat | idaq

4 thoughts on “Debug command line input with IDA Pro

  1. TanTheta

    Thanks for the info. I have been trying to debug an ELF file in IDA Pro demo and wondering how to pass data to the file being debugged. I remember when using Ms Studio they provided a command window for running the program via which you could enter/read text.

    If I run IDA from the command line, does that mean I won’t be able to use the GUI to set breakpoints and set registers etc?

    Reply
  2. TanTheta

    Thanks for the info. I have been trying to debug an ELF file in IDA Pro demo and wondering how to pass data to the file being debugged. I remember when using Ms Studio they provided a command window for running the program via which you could enter/read text.

    If I run IDA from the command line, does that mean I won’t be able to use the GUI to set breakpoints and set registers etc?

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s