"Debug" : true,
"Optimization" : "None",
"PreprocessorDefinitions" : [
- "_DEBUG",
- "SETTINGS_TEST"
+ "_DEBUG"
],
"Libraries" : [
"ecere"
// PUBLIC MEMBERS
- property bool isActive
+ property bool isActiveForCurrentConfig
{
get
{
- if(ide.project)
- {
- if((state == running || state == stopped) && prjConfig == ide.project.config)
- return true;
- }
- return false;
+ return ide.project && ide.project.config == prjConfig && (state == running || state == stopped) ? true : false;
}
}
bool DontTerminateDebugSession(char * title)
{
- if(debugger.isActive)
+ if(debugger.isActiveForCurrentConfig)
{
if(MessageBox { type = yesNo, master = ide,
contents = "Do you want to terminate the debugging session in progress?",
{
DirExpression targetDir = prj.targetDir;
- if(buildType != run && prj == project)
+ if(buildType != run && prj == project && ide.debugger.isActiveForCurrentConfig)
ide.debugger.Stop();
// TODO: Disabled until problems fixed... is it fixed?