idapython/src

Exposing the 'debug' variable from kernwin.hpp

Closed this issue · 1 comments

0xeb commented

Hex-Rays, since you control the SDK, in kernwin.hpp, it would be nice if you simply move this:

#ifndef SWIG
//---------------------------------------------------------------------------
//      D E B U G G I N G   F U N C T I O N S
//---------------------------------------------------------------------------

/// Controls debug messages - combination of \ref IDA_DEBUG_
idaman uint32 ida_export_data debug;

/// \defgroup IDA_DEBUG_ IDA debug bits
/// used by ::debug
//@{
#define IDA_DEBUG_DREFS         0x00000001      ///< drefs
#define IDA_DEBUG_OFFSET        0x00000002      ///< offsets
...

Just after the debug and its subsequent IDA_DEBUG_XXXX flags.

There’s no reason to exclude ‘debug’, since you had no reason to exclude both ‘errorexit’ and ’batch’ from kernwin.hpp.

‘debug’ and its defines are equally handy for IDAPython and C++.

Can you please update kernwin.hpp for next release, so we get debug in IDAPython?

0xeb commented

Ok, thanks Hex-Rays team, I can see that this is being addressed in IDA 8.3 (verified through beta 8.3).