Fix minor code issues.
authorMikhail Kurinnoi <m.kurinnoi@samsung.com>
Tue, 10 Jan 2023 15:01:55 +0000 (18:01 +0300)
committerGleb Balykov/Platform Lab /SRR/Staff Engineer/Samsung Electronics <g.balykov@samsung.com>
Wed, 11 Jan 2023 13:56:19 +0000 (16:56 +0300)
src/debugger/manageddebugger.cpp
src/main.cpp

index 2365d6156d63c6767d02bfb8c67f901e27c05b97..c5033ed07d65755bb9a2df91c48a16dcfe65096f 100644 (file)
@@ -288,6 +288,11 @@ HRESULT ManagedDebugger::Disconnect(DisconnectAction action)
             terminate = true;
             break;
         case DisconnectDetach:
+            if (m_startMethod != StartAttach)
+            {
+                LOGE("Can't detach debugger form child process.\n");
+                return E_INVALIDARG;
+            }
             terminate = false;
             break;
         default:
index 2fb589cc73abf2e8e28edaffdae23e6393cfef9b..b700b6fafe8606102a986b3450749a6cf4d33a3d 100644 (file)
@@ -56,7 +56,9 @@ static void print_help()
         "--interpreter=vscode                  Puts the debugger into VS Code Debugger mode.\n"
         "--command=<file>                      Interpret commands file at the start.\n"
         "-ex \"<command>\"                       Execute command at the start\n"
+#ifdef NCDB_DOTNET_STARTUP_HOOK
         "--hot-reload                          Enable Hot Reload feature.\n"
+#endif
         "--run                                 Run program without waiting commands\n"
         "--engineLogging[=<path to log file>]  Enable logging to VsDbg-UI or file for the engine.\n"
         "                                      Only supported by the VsCode interpreter.\n"