 #===========================================================================================================
 # EVENT GENERATORS: DEBUGGING EVENTS
 #-----------------------------------------------------------------------------------------------------------
+@_should_debug = ( me ) -> me.debug or ( me.fails.length != 0 )
+
+#-----------------------------------------------------------------------------------------------------------
 @_walk_debug_cellgrid_events = ( me ) ->
-  unless me.debug
+  unless @_should_debug me
     yield return
   #.........................................................................................................
   ### TAINT use fixed size like 1mm ###


#-----------------------------------------------------------------------------------------------------------
@_walk_debug_joints_events = ( me ) ->
  unless me.debug
    yield return
  @_ensure_joint_coordinates  me
  #.........................................................................................................


#-----------------------------------------------------------------------------------------------------------
@_walk_debug_fieldgrid_events = ( me ) ->
  unless @_should_debug me
    yield return
  #.........................................................................................................
  for designation, d of me.field_dimensions
