File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1337,6 +1337,22 @@ static void cbCreateProcess(CREATE_PROCESS_DEBUG_INFO* CreateProcessInfo)
1337
1337
strcpy_s (DebugFileName, GuiTranslateText (QT_TRANSLATE_NOOP (" DBG" , " ??? (GetFileNameFromHandle failed)" )));
1338
1338
dprintf (QT_TRANSLATE_NOOP (" DBG" , " Process Started: %p %s\n " ), base, DebugFileName);
1339
1339
1340
+ char * cmdline = nullptr ;
1341
+ if (dbggetcmdline (&cmdline, nullptr , fdProcessInfo->hProcess ))
1342
+ {
1343
+ // Parse the command line from the debuggee
1344
+ int argc = 0 ;
1345
+ wchar_t ** argv = CommandLineToArgvW (StringUtils::Utf8ToUtf16 (cmdline).c_str (), &argc);
1346
+ LocalFree (argv);
1347
+
1348
+ // Print the command line to the log
1349
+ dprintf_untranslated (" %s\n " , cmdline);
1350
+ for (int i = 0 ; i < argc; i++)
1351
+ dprintf_untranslated (" argv[%i]: %s\n " , i, StringUtils::Utf16ToUtf8 (argv[i]).c_str ());
1352
+
1353
+ efree (cmdline);
1354
+ }
1355
+
1340
1356
// update memory map
1341
1357
MemUpdateMap ();
1342
1358
GuiUpdateMemoryView ();
You can’t perform that action at this time.
0 commit comments