Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsgibly2007-05-24 11:46:00 +0000
committersgibly2007-05-24 11:46:00 +0000
commit80ad73a583f9524990c2f2cd91404b19f6573b69 (patch)
treefb56d4f8f06affbcfff1e420adc192bc41cb0898
parentf9856a5851c83bb7b8160554ff53472dae1e1920 (diff)
downloadorg.eclipse.pdt-80ad73a583f9524990c2f2cd91404b19f6573b69.tar.gz
org.eclipse.pdt-80ad73a583f9524990c2f2cd91404b19f6573b69.tar.xz
org.eclipse.pdt-80ad73a583f9524990c2f2cd91404b19f6573b69.zip
Utilize the IPHPConstants.RUN_WITH_DEBUG_INFO
-rw-r--r--plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/launching/PHPExecutableLaunchTab.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/launching/PHPExecutableLaunchTab.java b/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/launching/PHPExecutableLaunchTab.java
index 0fccb2bdd..cee571cf0 100644
--- a/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/launching/PHPExecutableLaunchTab.java
+++ b/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/launching/PHPExecutableLaunchTab.java
@@ -421,7 +421,7 @@ public class PHPExecutableLaunchTab extends AbstractLaunchConfigurationTab {
configuration.setAttribute(PHPCoreConstants.ATTR_FILE, arguments);
configuration.setAttribute(PHPCoreConstants.ATTR_FILE_FULL_PATH, argumentField.getData().toString());
}
- final boolean debugInfo = enableDebugInfoOption ? runWithDebugInfo.getSelection() : true;
+ final boolean debugInfo = enableDebugInfoOption ? (runWithDebugInfo != null && runWithDebugInfo.getSelection()) : true;
configuration.setAttribute(IPHPConstants.RUN_WITH_DEBUG_INFO, debugInfo);
if (overrideBreakpiontSettings != null)
@@ -466,7 +466,7 @@ public class PHPExecutableLaunchTab extends AbstractLaunchConfigurationTab {
public void setEnableDebugInfoOption(final boolean enabled) {
if (enabled == enableDebugInfoOption)
return;
- enableDebugInfoOption = true;
+ enableDebugInfoOption = enabled;
if (runWithDebugInfo != null)
runWithDebugInfo.setVisible(enabled);
}

Back to the top