Console.getInstance().println("Stopping debugging with '" + debugPlugin.getName() + "'...");
public static void stopDebugging(){	DebugPlugin debugPlugin = PluginDebugManager.getDebugPlugin();	if (debugPlugin!=null)	{		debugPlugin.deregisterAll();		debugPlugin.stopDebugging();		PluginDebugManager.setDebugState(false);		PluginDebugManager.setDebugPlugin(null);				// update all fields		Group group = DrawingSurface.getInstance().getViewGroup();		Enumeration e = group.getSubObjectsV().elements();		while (e.hasMoreElements())		{			Object obj = e.nextElement();			if (obj instanceof com.cosylab.vdct.graphics.objects.Record)			{				com.cosylab.vdct.vdb.VDBRecordData rec = ((com.cosylab.vdct.graphics.objects.Record)obj).getRecordData();				Enumeration e2 = rec.getFieldsV().elements();				while (e2.hasMoreElements())					rec.fieldValueChanged((com.cosylab.vdct.vdb.VDBFieldData)e2.nextElement());								}		}		Group.getRoot().unconditionalValidateSubObjects(false);		DrawingSurface.getInstance().repaint();	}}