This option saves and restores the settings for the dialog:
Code: Select all
Index: LiteEditor/editorsettingsmiscpanel.cpp
===================================================================
--- LiteEditor/editorsettingsmiscpanel.cpp	(revision 4394)
+++ LiteEditor/editorsettingsmiscpanel.cpp	(working copy)
@@ -76,6 +76,10 @@
 	EditorConfigST::Get()->GetLongValue(wxT("ShowFullPathInFrameTitle"), check);
 	m_fullFilePath->SetValue(check ? true : false);
 
+	check = 1;
+	EditorConfigST::Get()->GetLongValue(wxT("ShowDebugOnRun"), check);
+	m_showDebugOnRun->SetValue(check ? true : false);
+
 	bool showSplash = info.GetFlags() & CL_SHOW_SPLASH ? true : false;
 	m_showSplashScreen->SetValue(showSplash);
 
@@ -106,6 +110,7 @@
 	EditorConfigST::Get()->SaveLongValue(wxT("SingleInstance"), m_singleAppInstance->IsChecked() ? 1 : 0);
 	EditorConfigST::Get()->SaveLongValue(wxT("CheckNewVersion"), m_versionCheckOnStartup->IsChecked() ? 1 : 0);
 	EditorConfigST::Get()->SaveLongValue(wxT("ShowFullPathInFrameTitle"), m_fullFilePath->IsChecked() ? 1 : 0);
+	EditorConfigST::Get()->SaveLongValue(wxT("ShowDebugOnRun"), m_showDebugOnRun->IsChecked() ? 1 : 0);
 
 	bool oldUseSingleToolbar = !PluginManager::Get()->AllowToolbar();
 	EditorConfigST::Get()->SaveLongValue(wxT("UseSingleToolbar"), m_useSingleToolbar->IsChecked() ? 1 : 0);
Code: Select all
Index: LiteEditor/manager.cpp
===================================================================
--- LiteEditor/manager.cpp	(revision 4394)
+++ LiteEditor/manager.cpp	(working copy)
@@ -2109,7 +2109,10 @@
 	DebugMessage ( _ ( "Debug session started successfully!\n" ) );
 
 	// set the debug tab as active
-	ShowOutputPane(OutputPane::OUTPUT_DEBUG);
+	long check(1);
+	EditorConfigST::Get()->GetLongValue(wxT("ShowDebugOnRun"), check);
+	if (check)
+		ShowOutputPane(OutputPane::OUTPUT_DEBUG);
 
 	if ( dbgr->GetIsRemoteDebugging() ) {
 
I have added the dialog option to a Misc option under Settings -> Global Editor blah blah. Please feel free to move this to whatever location is appropriate. For me, and since this is my first attempt, I put it somewhere easy to access and code
 , and am willing to move it if you suggest a place.
 , and am willing to move it if you suggest a place.Please advise any problems / notes on code or style. Thanks, Eran!

