RSS/Atom feed Twitter
Site is read-only, email is disabled

Debug level

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Debug level Chris Mohler 07 Oct 21:38
  Debug level Martin Nordholts 07 Oct 21:47
   Debug level Chris Mohler 07 Oct 21:57
Chris Mohler
2008-10-07 21:38:29 UTC (about 16 years ago)

Debug level

Sorry if this is a dumb question - I did search the gimp-dev site but did not see an answer.

I see many statements like this in the source: IFDBG(3) g_debug ("Compression mode: %d", comp_mode);

I built GIMP (2.6) with --enable-debug=yes, and then set G_LOG_LEVEL_DEBUG to 3. Running GIMP from command line with " -c --debug-handlers" would (so I thought) show messages from a statement such as the above, but it does not. What have I missed?

Thanks, Chris

Martin Nordholts
2008-10-07 21:47:24 UTC (about 16 years ago)

Debug level

Chris Mohler wrote:

Sorry if this is a dumb question - I did search the gimp-dev site but did not see an answer.

I see many statements like this in the source: IFDBG(3) g_debug ("Compression mode: %d", comp_mode);

I built GIMP (2.6) with --enable-debug=yes, and then set G_LOG_LEVEL_DEBUG to 3. Running GIMP from command line with " -c --debug-handlers" would (so I thought) show messages from a statement such as the above, but it does not. What have I missed?

Hi!

If you grep for IFDBG you will see that that macro is only for the PSD and PSP file plugins (i.e. not GIMP-global). It's definition is in both cases:

#define IFDBG(level) if (PSD_DEBUG >= level)

so you it should be enough to simply make sure PSD_DEBUG is defined to whatever level you want to debug for. Should be as easy as changing

#define PSD_DEBUG 0

in

plug-ins/file-psd/psd.h

BR, Martin

Chris Mohler
2008-10-07 21:57:27 UTC (about 16 years ago)

Debug level

On Tue, Oct 7, 2008 at 2:47 PM, Martin Nordholts wrote:

Chris Mohler wrote:

Sorry if this is a dumb question - I did search the gimp-dev site but did not see an answer.

I see many statements like this in the source: IFDBG(3) g_debug ("Compression mode: %d", comp_mode);

I built GIMP (2.6) with --enable-debug=yes, and then set G_LOG_LEVEL_DEBUG to 3. Running GIMP from command line with " -c --debug-handlers" would (so I thought) show messages from a statement such as the above, but it does not. What have I missed?

Hi!

If you grep for IFDBG you will see that that macro is only for the PSD and PSP file plugins (i.e. not GIMP-global). It's definition is in both cases:

#define IFDBG(level) if (PSD_DEBUG >= level)

so you it should be enough to simply make sure PSD_DEBUG is defined to whatever level you want to debug for. Should be as easy as changing

#define PSD_DEBUG 0

in

plug-ins/file-psd/psd.h

Thanks Martin - that cleared things up for me...

Chris