30#ifndef _TRACE_HELPERS_H_
31#define _TRACE_HELPERS_H_
273 m_globalTraceEnabled( false ),
274 m_printAllTraces (false )
283 void DoTrace( const wxString aWhat, const wxChar* aFmt, ... )
291#if wxUSE_UNICODE_UTF8
292 void DoTraceUtf8(
const wxString aWhat,
const wxChar* aFmt, ... )
295 va_start( argptr, aFmt );
296 traceV( aWhat, aFmt, argptr );
301 bool IsTraceEnabled(
const wxString& aWhat );
304 void traceV(
const wxString& aWhat,
const wxString& aFmt, va_list vargs );
312#define KI_TRACE( aWhat, ... ) \
313 if( TRACE_MANAGER::Instance().IsTraceEnabled( aWhat ) ) \
315 TRACE_MANAGER::Instance().Trace( aWhat, __VA_ARGS__ ); \
traceV(aWhat, aFmt, argptr)
const wxChar va_start(argptr, aFmt)
WX_DEFINE_VARARG_FUNC_VOID(Trace, 2,(const wxString, const wxFormatString &), DoTrace, DoTraceUtf8) void DoTrace(const wxString aWhat
bool m_globalTraceEnabled
std::map< wxString, bool > m_enabledTraces
KICOMMON_API const wxChar *const traceSymbolResolver
Flag to enable debug output of symbol library resolver results.
KICOMMON_API const wxChar *const traceLocale
Flag to enable locale debug output.
KICOMMON_API const wxChar *const traceKicadPcbPlugin
Flag to enable GEDA PCB plugin debug output.
KICOMMON_API const wxChar *const traceAutoSave
Flag to enable auto save feature debug tracing.
KICOMMON_API const wxChar *const kicadTraceKeyEvent
Flag to enable wxKeyEvent debug tracing.
KICOMMON_API const wxChar *const traceUiProfile
Flag to enable user interface profile tracing.
KICOMMON_API const wxChar *const traceEnvVars
Flag to enable debug output of environment variable operations.
KICOMMON_API const wxChar *const traceFindReplace
Flag to enable find and replace debug tracing.
KICOMMON_API const wxChar *const traceFindItem
Flag to enable find debug tracing.
KICOMMON_API const wxChar *const kicadTraceCoroutineStack
Flag to enable tracing of the coroutine call stack.
KICOMMON_API const wxChar *const traceSchLibMem
Flag to enable schematic library memory deletion debug output.
KICOMMON_API const wxChar *const traceEagleIo
KICOMMON_API const wxChar *const tracePathsAndFiles
Flag to enable path and file name debug output.
KICOMMON_API const wxChar *const traceKiCad2Step
Flag to enable KiCad2Step debug tracing.
KICOMMON_API const wxChar *const traceSchPlugin
Flag to enable legacy schematic plugin debug output.
KICOMMON_API const wxChar *const traceSchSheetPaths
Flag to enable debug output of schematic symbol sheet path manipulation code.
KICOMMON_API const wxChar *const traceSchLegacyPlugin
Flag to enable legacy schematic plugin debug output.
KICOMMON_API const wxChar *const tracePrinting
Flag to enable print controller debug output.
KICOMMON_API const wxChar *const kicadTraceCoords
Flag to enable draw panel coordinate debug tracing.
KICOMMON_API const wxChar *const traceZoomScroll
Flag to enable debug output of zoom-scrolling calculations in KIGFX::ZOOM_CONTROLLER and derivatives.
KICOMMON_API const wxChar *const traceGedaPcbPlugin
Flag to enable GEDA PCB plugin debug output.
KICOMMON_API const wxChar *const traceScreen
Flag to enable debug output of BASE_SCREEN and it's derivatives.
KICOMMON_API const wxChar *const traceDesignBlocks
KICOMMON_API const wxChar *const traceFonts
Flag to enable locale debug output.
KICOMMON_API const wxChar *const traceGit
Flag to enable Git debugging output.
KICOMMON_API const wxChar *const traceDisplayLocation
Flag to enable debug output of display positioning logic.
KICOMMON_API const wxChar *const kicadTraceToolStack
Flag to enable tracing of the tool handling stack.
KICOMMON_API const wxChar *const traceGalProfile
Flag to enable debug output of GAL performance profiling.
KICOMMON_API wxString dump(const wxKeyEvent &aEvent)
Debug helper for printing wxKeyEvent information.