Want to Join Us ?

you'll be able to discuss, share and send private messages.

How to save and reuse the exception list?

Discussion in 'Debuggers' started by roocoon, Feb 22, 2014.

Share This Page

  1. roocoon

    Active Member

    Hi all.
    Here I am with another question regarding what I'd find a timesaver.

    I don't know if I missed something but I couldn't find a way to save the current debugger's exceptions list. That's for IDA 6.1.

    I'm debugging plugins under some environment.
    For all plugins in that environment, there are a number of exceptions I have to answer to, that relate to the environment itself, graphics driver, etc. This implies I have to babysit the startup process and that could take quite some time.

    So, once everything is up and operational, I would like to save the current state of the exceptions.cfg (from RAM or wherever IDA temporarily keeps it), say under some name reflecting the environment.

    This saved copy could replace the standard exceptions.cfg whenever I debug under that environment.
    A plain batch file (or some IDA loader) could do the replacement and then start up IDA.
    No more babysitting this way.

    Any ideas?
  2. computerline

    Well-Known Member Ida Pro Expert

    I think IDA has function to edit and reload exception
  3. roocoon

    Active Member

    I think the reload restores either the default exceptions.cfg or the exceptions saved along with the IDB.

    What I want is a way to take the exceptions stored with the IDB and save them as a separate file.
    Then I can use that file instead of the default exceptions, for any new plugin I debug under the same environment.

    I hope I'm making sense.
  4. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    i did read about API call tracing almost what you need


    together with
    the python logging http://docs.python.org/2/library/logging.html

    the loggin mudule is python standard so would work.
    You could do a small plugin that record the exepsions.
    In the other hand if its the same exceptions you write them into the exceptions.cfg and in ida set them to pass to either software or debugger or stop like computerline shows
    roocoon likes this.
  5. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

  6. roocoon

    Active Member

    Thanks for the links Storm Shadow. Lots of reading coming up :) .
    Sorry for the delay responding. It was a hectic week but I also spent lots of time enjoying my now working IDA :joyful.png:.