KiCad PCB EDA Suite
Loading...
Searching...
No Matches
trace_helpers.cpp File Reference

wxLogTrace helper implementation. More...

#include <trace_helpers.h>
#include <wx/tokenzr.h>

Go to the source code of this file.

Macros

#define WXK_(x)    case WXK_##x: return #x;
 

Functions

wxString dump (const wxArrayString &aArray)
 Debug helper for printing wxArrayString contents.
 
const char * GetVirtualKeyCodeName (int keycode)
 
wxString GetKeyName (const wxKeyEvent &aEvent)
 
wxString dump (const wxKeyEvent &aEvent)
 Debug helper for printing wxKeyEvent information.
 

Variables

const wxChar *const traceFindReplace = wxT( "KICAD_FIND_REPLACE" )
 Flag to enable find and replace debug tracing.
 
const wxChar *const kicadTraceCoords = wxT( "KICAD_COORDS" )
 Flag to enable draw panel coordinate debug tracing.
 
const wxChar *const kicadTraceKeyEvent = wxT( "KICAD_KEY_EVENTS" )
 Flag to enable wxKeyEvent debug tracing.
 
const wxChar *const kicadTraceToolStack = wxT( "KICAD_TOOL_STACK" )
 Flag to enable tracing of the tool handling stack.
 
const wxChar *const kicadTraceCoroutineStack = wxT( "KICAD_COROUTINE_STACK" )
 Flag to enable tracing of the coroutine call stack.
 
const wxChar *const traceSchLibMem = wxT( "KICAD_SCH_LIB_MEM" )
 Flag to enable schematic library memory deletion debug output.
 
const wxChar *const traceFindItem = wxT( "KICAD_FIND_ITEM" )
 Flag to enable find debug tracing.
 
const wxChar *const traceSchLegacyPlugin = wxT( "KICAD_SCH_LEGACY_PLUGIN" )
 Flag to enable legacy schematic plugin debug output.
 
const wxChar *const traceSchPlugin = wxT( "KICAD_SCH_PLUGIN" )
 Flag to enable legacy schematic plugin debug output.
 
const wxChar *const traceGedaPcbPlugin = wxT( "KICAD_GEDA_PLUGIN" )
 Flag to enable GEDA PCB plugin debug output.
 
const wxChar *const traceKicadPcbPlugin = wxT( "KICAD_PCB_PLUGIN" )
 Flag to enable GEDA PCB plugin debug output.
 
const wxChar *const tracePrinting = wxT( "KICAD_PRINT" )
 Flag to enable print controller debug output.
 
const wxChar *const traceAutoSave = wxT( "KICAD_AUTOSAVE" )
 Flag to enable auto save feature debug tracing.
 
const wxChar *const tracePathsAndFiles = wxT( "KICAD_PATHS_AND_FILES" )
 Flag to enable path and file name debug output.
 
const wxChar *const traceLocale = wxT( "KICAD_LOCALE" )
 Flag to enable locale debug output.
 
const wxChar *const traceFonts = wxT( "KICAD_FONTS" )
 Flag to enable locale debug output.
 
const wxChar *const traceScreen = wxT( "KICAD_SCREEN" )
 Flag to enable debug output of BASE_SCREEN and it's derivatives.
 
const wxChar *const traceZoomScroll = wxT( "KICAD_ZOOM_SCROLL" )
 Flag to enable debug output of zoom-scrolling calculations in KIGFX::ZOOM_CONTROLLER and derivatives.
 
const wxChar *const traceSymbolResolver = wxT( "KICAD_SYM_RESOLVE" )
 Flag to enable debug output of symbol library resolver results.
 
const wxChar *const traceDisplayLocation = wxT( "KICAD_DISPLAY_LOCATION" )
 Flag to enable debug output of display positioning logic.
 
const wxChar *const traceSchSheetPaths = wxT( "KICAD_SCH_SHEET_PATHS" )
 Flag to enable debug output of schematic symbol sheet path manipulation code.
 
const wxChar *const traceEnvVars = wxT( "KICAD_ENV_VARS" )
 Flag to enable debug output of environment variable operations.
 
const wxChar *const traceGalProfile = wxT( "KICAD_GAL_PROFILE" )
 Flag to enable debug output of GAL performance profiling.
 
const wxChar *const traceKiCad2Step = wxT( "KICAD2STEP" )
 Flag to enable KiCad2Step debug tracing.
 
const wxChar *const traceUiProfile = wxT( "KICAD_UI_PROFILE" )
 Flag to enable user interface profile tracing.
 
const wxChar *const traceGit = wxT( "KICAD_GIT" )
 Flag to enable Git debugging output.
 
const wxChar *const traceEagleIo = wxT( "KICAD_EAGLE_IO" )
 
const wxChar *const traceDesignBlocks = wxT( "KICAD_DESIGN_BLOCK" )
 

Detailed Description

wxLogTrace helper implementation.

Definition in file trace_helpers.cpp.

Macro Definition Documentation

◆ WXK_

#define WXK_ (   x)     case WXK_##x: return #x;

Function Documentation

◆ dump() [1/2]

wxString dump ( const wxArrayString &  aArray)

Debug helper for printing wxArrayString contents.

Parameters
aArrayis the string array to output.
Returns
the wxArrayString contents in a formatted string for debugging output.

Definition at line 64 of file trace_helpers.cpp.

Referenced by TOOL_DISPATCHER::DispatchWxEvent(), LIBEVAL::COMPILER::generateUCode(), TOOL_DISPATCHER::GetToolEvent(), FOOTPRINTS_LISTBOX::OnChar(), LIBRARY_LISTBOX::OnChar(), SYMBOLS_LISTBOX::OnChar(), EDA_BASE_FRAME::OnCharHook(), and GPCB_FPL_CACHE::parseParameters().

◆ dump() [2/2]

wxString dump ( const wxKeyEvent &  aEvent)

Debug helper for printing wxKeyEvent information.

Parameters
aEventis the wxKeyEvent to generate the print string from.
Returns
the wxKeyEvent information.

Definition at line 238 of file trace_helpers.cpp.

References GetKeyName().

◆ GetKeyName()

wxString GetKeyName ( const wxKeyEvent &  aEvent)

Definition at line 213 of file trace_helpers.cpp.

References GetVirtualKeyCodeName().

Referenced by dump().

◆ GetVirtualKeyCodeName()

const char * GetVirtualKeyCodeName ( int  keycode)

Definition at line 92 of file trace_helpers.cpp.

References ADD, CLEAR, END, INSERT, LEFT, RIGHT, SELECT, SEPARATOR, SUBTRACT, and WXK_.

Referenced by GetKeyName().