# HG changeset patch # User Eugene Ostroukhov # Date 1265668968 28800 # Node ID 155bb59f5bce385f31cfae1c0ebf41efb30531e5 # Parent 4638f9d46d1f1a8eb42177212fd1bf9a60aeaae0 Improved tracing in debugger plugin diff -r 4638f9d46d1f -r 155bb59f5bce org.symbian.tools.wrttools.debug.core/.options --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org.symbian.tools.wrttools.debug.core/.options Mon Feb 08 14:42:48 2010 -0800 @@ -0,0 +1,4 @@ +org.symbian.tools.wrttools.debug.core/debug=false +org.symbian.tools.wrttools.debug.core/debugConnection=false +org.symbian.tools.wrttools.debug.core/debugResources=false +org.symbian.tools.wrttools.debug.core/debugBreakpoints=false \ No newline at end of file diff -r 4638f9d46d1f -r 155bb59f5bce org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/Activator.java --- a/org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/Activator.java Mon Feb 08 11:40:51 2010 -0800 +++ b/org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/Activator.java Mon Feb 08 14:42:48 2010 -0800 @@ -19,6 +19,7 @@ package org.symbian.tools.wrttools.debug.internal; import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.Platform; import org.eclipse.core.runtime.Status; import org.eclipse.jface.resource.ImageRegistry; import org.eclipse.ui.plugin.AbstractUIPlugin; @@ -32,6 +33,13 @@ // The plug-in ID public static final String PLUGIN_ID = "org.symbian.tools.wrttools.debug.core"; + public static final boolean DEBUG = Platform.inDebugMode() && Boolean.valueOf(Platform.getDebugOption(PLUGIN_ID + "/debug")); + public static final boolean DEBUG_CONNECTION = DEBUG && Boolean.valueOf(Platform.getDebugOption(PLUGIN_ID + "/debugConnection")); + public static final boolean DEBUG_RESOURCES = DEBUG && Boolean.valueOf(Platform.getDebugOption(PLUGIN_ID + "/debugResources")); + public static final boolean DEBUG_BREAKPOINTS = DEBUG + && Boolean.valueOf(Platform.getDebugOption(PLUGIN_ID + + "/debugBreakpoints")); + // The shared instance private static Activator plugin; diff -r 4638f9d46d1f -r 155bb59f5bce org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/launch/DebugConnectionJob.java --- a/org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/launch/DebugConnectionJob.java Mon Feb 08 11:40:51 2010 -0800 +++ b/org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/launch/DebugConnectionJob.java Mon Feb 08 14:42:48 2010 -0800 @@ -34,6 +34,7 @@ import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.ILaunch; +import org.symbian.tools.wrttools.debug.internal.Activator; import org.symbian.tools.wrttools.previewer.http.IPreviewStartupListener; public class DebugConnectionJob implements IPreviewStartupListener { @@ -48,6 +49,10 @@ public DebugConnectionJob(IProject project, final int port, final ILaunch launch) { + if (Activator.DEBUG_CONNECTION) { + System.out.println("Debugging " + project.getName() + " on port " + + port + ", launch: " + launch.getLaunchConfiguration()); + } this.project = project; this.port = port; this.launch = launch; diff -r 4638f9d46d1f -r 155bb59f5bce org.symbian.tools.wrttools.product/launch/WRT IDE Product (Windows).launch --- a/org.symbian.tools.wrttools.product/launch/WRT IDE Product (Windows).launch Mon Feb 08 11:40:51 2010 -0800 +++ b/org.symbian.tools.wrttools.product/launch/WRT IDE Product (Windows).launch Mon Feb 08 14:42:48 2010 -0800 @@ -5,7 +5,7 @@ - + @@ -21,10 +21,475 @@ - - + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +