java.lang.Object
org.gjt.sp.jedit.Debug
This class contains various debugging flags (mainly useful for core
development) and debugging routines.
- Since:
- jEdit 4.2pre1
- Version:
- $Id: Debug.java 23981 2015-08-10 14:56:24Z daleanson $
- Author:
- Slava Pestov
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
If true, A+ shortcuts are disabled.static boolean
Deprecated.no longer used.static boolean
Logs messages when BeanShell code is evaluated.static boolean
For checking invalidation, etc.static boolean
Paints boxes around chunks.static boolean
Paint strings instead of glyph vectors.static boolean
Disable multihead support, since it can cause window positioning problems with some Java versions.static boolean
Create new search dialogs instead of reusing instances.static boolean
Dump key events received by text area?static boolean
Show time taken for each EBComponent.static boolean
For checking fold level invalidation, etc.static boolean
For checking the line visibility structure..static boolean
Geometry workaround for X11.static boolean
Indent debug.static boolean
Print messages when the gap moves, and other offset manager state changes.static boolean
Show time taken to repaint text area painter.static boolean
Printing debug.static boolean
Print messages when screen line counts change.static boolean
Print messages when text area and display manager perform scroll updates.static boolean
Print messages when text area tries to make the caret visible.static boolean
Display an error if the scrolling code detects an inconsistency.static boolean
For checking context, etc. -
Constructor Summary
-
Method Summary
-
Field Details
-
OFFSET_DEBUG
public static boolean OFFSET_DEBUGPrint messages when the gap moves, and other offset manager state changes. -
SCROLL_DEBUG
public static boolean SCROLL_DEBUGPrint messages when text area and display manager perform scroll updates. -
SCROLL_TO_DEBUG
public static boolean SCROLL_TO_DEBUGPrint messages when text area tries to make the caret visible. -
SCROLL_VERIFY
public static boolean SCROLL_VERIFYDisplay an error if the scrolling code detects an inconsistency. This kills performance! -
SCREEN_LINES_DEBUG
public static boolean SCREEN_LINES_DEBUGPrint messages when screen line counts change. -
TOKEN_MARKER_DEBUG
public static boolean TOKEN_MARKER_DEBUGFor checking context, etc. -
FOLD_DEBUG
public static boolean FOLD_DEBUGFor checking fold level invalidation, etc. -
FOLD_VIS_DEBUG
public static boolean FOLD_VIS_DEBUGFor checking the line visibility structure.. -
CHUNK_CACHE_DEBUG
public static boolean CHUNK_CACHE_DEBUGFor checking invalidation, etc. -
CHUNK_PAINT_DEBUG
public static boolean CHUNK_PAINT_DEBUGPaints boxes around chunks. -
PAINT_TIMER
public static boolean PAINT_TIMERShow time taken to repaint text area painter. -
EB_TIMER
public static boolean EB_TIMERShow time taken for each EBComponent. -
DISABLE_GLYPH_VECTOR
public static boolean DISABLE_GLYPH_VECTORPaint strings instead of glyph vectors. -
BEANSHELL_DEBUG
public static boolean BEANSHELL_DEBUGLogs messages when BeanShell code is evaluated. -
ALTERNATIVE_DISPATCHER
Deprecated.no longer used. -
ALT_KEY_PRESSED_DISABLED
public static boolean ALT_KEY_PRESSED_DISABLEDIf true, A+ shortcuts are disabled. If you use this, you should also remap the the modifiers so that A+ is actually something else. On by default on MacOS. -
GEOMETRY_WORKAROUND
public static boolean GEOMETRY_WORKAROUNDGeometry workaround for X11. -
DUMP_KEY_EVENTS
public static boolean DUMP_KEY_EVENTSDump key events received by text area? -
INDENT_DEBUG
public static boolean INDENT_DEBUGIndent debug. -
PRINT_DEBUG
public static boolean PRINT_DEBUGPrinting debug. -
DISABLE_SEARCH_DIALOG_POOL
public static boolean DISABLE_SEARCH_DIALOG_POOLCreate new search dialogs instead of reusing instances. Off by default on Mac OS because it can cause search dialogs to show up on the wrong space. -
DISABLE_MULTIHEAD
public static boolean DISABLE_MULTIHEADDisable multihead support, since it can cause window positioning problems with some Java versions.- Since:
- jEdit 4.3pre1
-
-
Constructor Details
-
Debug
public Debug()
-
-
Method Details
-
compDelay
public static int compDelay(long time) Does a computational delay. Simulates heavy computations for the given period of time. Used to force conditions that are hard to reproduce, for example deadlock cases.- Parameters:
time
- Required delay, in ms- Returns:
- an integer
-