microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.51k stars 1.55k forks source link

This extension can't launch GDB with environment variables applied on Windows #9243

Closed amyspark closed 2 years ago

amyspark commented 2 years ago

Environment

Bug Summary and Steps to Reproduce

Bug Summary:

Environment variables specified in the launch task do not apply to the debugger: Applications that do need them will instantly crash on launch with error 0xc00000135.

Steps to reproduce:

  1. Build an application with MSYS GCC 11.2 (UCRT64 flavor).
  2. Launch it under GDB using this extension's facilities.

Debugger Configurations

{
    // Use IntelliSense para saber los atributos posibles.
    // Mantenga el puntero para ver las descripciones de los existentes atributos.
    // Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(Windows) Adjuntar",
            "type": "cppvsdbg",
            "request": "attach",
            "processId": "${command:pickProcess}"
        },
        {
            "name": "(Windows) Launch test",
            "type": "cppvsdbg",
            "request": "launch",
            "program": "${workspaceFolder}\\b_msvc\\bin\\kiscompositionbenchmark.exe",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [
                {
                    "name": "PATH",
                    "value": "${workspaceFolder}\\i_deps_msvc\\bin;${env:PATH}",
                },
                // {
                //     "name": "KRITA_PLUGIN_PATH",
                //     "value": "${workspaceFolder}\\i_msvc\\lib\\kritaplugins\\"
                // }
            ]
        },
        {
            "name": "(MSVC) Iniciar x64",
            "type": "cppvsdbg",
            "request": "launch",
            "program": "${workspaceFolder}\\i_msvc\\bin\\krita.exe",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}\\i_msvc\\bin",
            "symbolOptions": {
                "searchPaths": [],
                "searchMicrosoftSymbolServer": true,
                "cachePath": "${workspaceFolder}\\symbols\\"
            },
            "visualizerFile": "${workspaceFolder}/qt5.natvis",
            "environment": [
                {
                    "name": "PATH",
                    "value": "${workspaceFolder}\\i_msvc\\bin;${workspaceFolder}\\i_deps_msvc\\bin\\;${env:PATH}",

                },
                {
                    "name": "KRITA_PLUGIN_PATH",
                    "value": "${workspaceFolder}\\i_msvc\\lib\\kritaplugins\\"
                },
                {
                    "name": "QT_LOGGING_RULES",
                    "value": "krita.*.warning=true;krita.*.critical=true;krita.file.debug=true;krita.ui.debug=true;"
                }
            ],
        },
        {
            "name": "(lldb) Iniciar x64",
            "type": "lldb",
            "request": "launch",
            "program": "${workspaceFolder}/b_clang64/bin/KisCompositionBenchmark.exe",
            "args": [],
            "cwd": "${workspaceFolder}",
            "stdio": null,
            "env": {
                "PATH": "${workspaceFolder}/i_clang64/bin;${workspaceFolder}/i_deps_clang64/bin;D:/msys64/clang64/bin;${env:PATH}",
                "KRITA_PLUGIN_PATH": "${workspaceFolder}/i_clang64/lib/kritaplugins/",
                // "QT_LOGGING_RULES": "krita.plugins.*=true;krita.scripting=true;krita.general=true"
            }
        },
        {
            "name": "(gdb) Iniciar x64",
            "type": "cppdbg",
            "request": "launch",
            "MIMode": "gdb",
            "miDebuggerPath": "D:\\msys64\\ucrt64\\bin\\gdb.exe",
            "stopAtEntry": true,
            "environment": [
                {
                    "name": "PATH",
                    "value": "${workspaceFolder}\\i_msys\\bin\\;${workspaceFolder}\\i_deps_msys\\bin\\;D:\\msys64\\ucrt64\\bin\\;${env:PATH}"
                },
                {
                    "name": "KRITA_PLUGIN_PATH",
                    "value": "${workspaceFolder}\\i_msys\\lib\\kritaplugins\\"
                },
                {
                    "name": "QT_LOGGING_RULES",
                    "value": "krita.plugins.*=true;krita.scripting=true;krita.general=true"
                }
            ],
            "program": "${workspaceFolder}\\i_msys\\bin\\krita.exe",
            "args": [],
            "cwd": "${workspaceFolder}",
            "logging": {
                "engineLogging": true,
                "trace": true,
                "traceResponse": true
            }
        }
    ]
}

Debugger Logs

--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (96) LaunchOptions{\"name\":\"(gdb) Iniciar x64\",\"type\":\"cppdbg\",\"request\":\"launch\",\"MIMode\":\"gdb\",\"miDebuggerPath\":\"D:\\\\msys64\\\\ucrt64\\\\bin\\\\gdb.exe\",\"stopAtEntry\":true,\"environment\":[{\"name\":\"PATH\",\"value\":\"E:\\\\krita-win\\\\i_msys\\\\bin\\\\;E:\\\\krita-win\\\\i_deps_msys\\\\bin\\\\;D:\\\\msys64\\\\ucrt64\\\\bin\\\\;D:\\\\Ruby30-x64\\\\bin;D:\\\\Program Files\\\\AdoptOpenJDK\\\\jdk-11.0.11.9-hotspot\\\\bin;C:\\\\Program Files\\\\Python38\\\\Scripts\\\\;C:\\\\Program Files\\\\Python38\\\\;C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v8.0\\\\bin;C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v8.0\\\\libnvvp;C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\cuDNN\\\\v6.0\\\\bin;C:\\\\Program Files (x86)\\\\Common Files\\\\Intel\\\\Shared Files\\\\cpp\\\\bin\\\\Intel64;C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Windows\\\\System32\\\\OpenSSH\\\\;D:\\\\Program Files\\\\Calibre2\\\\;C:\\\\WINDOWS\\\\system32;C:\\\\WINDOWS;C:\\\\WINDOWS\\\\System32\\\\Wbem;C:\\\\WINDOWS\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\WINDOWS\\\\System32\\\\OpenSSH\\\\;C:\\\\Program Files\\\\7-Zip;C:\\\\Program Files\\\\Pandoc\\\\;C:\\\\Program Files\\\\TortoiseSVN\\\\bin;C:\\\\Program Files\\\\PuTTY\\\\;C:\\\\Program Files\\\\Git\\\\cmd;C:\\\\ProgramData\\\\chocolatey;C:\\\\Program Files\\\\dotnet\\\\;C:\\\\Program Files\\\\CMake\\\\bin;C:\\\\ProgramData\\\\chocolatey\\\\bin;C:\\\\Program Files\\\\PowerShell\\\\7\\\\;C:\\\\Program Files\\\\nodejs\\\\;C:\\\\Program Files (x86)\\\\NVIDIA Corporation\\\\PhysX\\\\Common;C:\\\\Program Files\\\\gs\\\\gs9.51\\\\bin;C:\\\\Users\\\\Amalia\\\\AppData\\\\Local\\\\Streamlink\\\\bin;C:\\\\Users\\\\Amalia\\\\.cargo\\\\bin;D:\\\\texlive\\\\2022\\\\bin\\\\win32;C:\\\\Users\\\\Amalia\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;C:\\\\Users\\\\Amalia\\\\AppData\\\\Roaming\\\\Python\\\\Python38\\\\Scripts;C:\\\\Users\\\\Amalia\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code\\\\bin;\"},{\"name\":\"KRITA_PLUGIN_PATH\",\"value\":\"E:\\\\krita-win\\\\i_msys\\\\lib\\\\kritaplugins\\\\\"},{\"name\":\"QT_LOGGING_RULES\",\"value\":\"krita.plugins.*=true;krita.scripting=true;krita.general=true\"}],\"program\":\"E:\\\\krita-win\\\\i_msys\\\\bin\\\\krita.exe\",\"args\":[],\"cwd\":\"E:\\\\krita-win\",\"logging\":{\"engineLogging\":true,\"trace\":true,\"traceResponse\":true},\"__configurationTarget\":5,\"__sessionId\":\"da50c5e3-b3e3-42b0-a75a-e378d547ca9b\"}\r\n"},"seq":2}
1: (96) LaunchOptions{"name":"(gdb) Iniciar x64","type":"cppdbg","request":"launch","MIMode":"gdb","miDebuggerPath":"D:\\msys64\\ucrt64\\bin\\gdb.exe","stopAtEntry":true,"environment":[{"name":"PATH","value":"E:\\krita-win\\i_msys\\bin\\;E:\\krita-win\\i_deps_msys\\bin\\;D:\\msys64\\ucrt64\\bin\\;D:\\Ruby30-x64\\bin;D:\\Program Files\\AdoptOpenJDK\\jdk-11.0.11.9-hotspot\\bin;C:\\Program Files\\Python38\\Scripts\\;C:\\Program Files\\Python38\\;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0\\libnvvp;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\cuDNN\\v6.0\\bin;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Files\\cpp\\bin\\Intel64;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;D:\\Program Files\\Calibre2\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\7-Zip;C:\\Program Files\\Pandoc\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Git\\cmd;C:\\ProgramData\\chocolatey;C:\\Program Files\\dotnet\\;C:\\Program Files\\CMake\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\PowerShell\\7\\;C:\\Program Files\\nodejs\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\gs\\gs9.51\\bin;C:\\Users\\Amalia\\AppData\\Local\\Streamlink\\bin;C:\\Users\\Amalia\\.cargo\\bin;D:\\texlive\\2022\\bin\\win32;C:\\Users\\Amalia\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Amalia\\AppData\\Roaming\\Python\\Python38\\Scripts;C:\\Users\\Amalia\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;"},{"name":"KRITA_PLUGIN_PATH","value":"E:\\krita-win\\i_msys\\lib\\kritaplugins\\"},{"name":"QT_LOGGING_RULES","value":"krita.plugins.*=true;krita.scripting=true;krita.general=true"}],"program":"E:\\krita-win\\i_msys\\bin\\krita.exe","args":[],"cwd":"E:\\krita-win","logging":{"engineLogging":true,"trace":true,"traceResponse":true},"__configurationTarget":5,"__sessionId":"da50c5e3-b3e3-42b0-a75a-e378d547ca9b"}
--> C (runInTerminal-4): {"type":"request","command":"runInTerminal","arguments":{"kind":"integrated","title":"cppdbg: krita.exe","cwd":"","args":["c:\\Users\\Amalia\\.vscode\\extensions\\ms-vscode.cpptools-1.9.8-win32-x64\\debugAdapters\\bin\\WindowsDebugLauncher.exe","--stdin=Microsoft-MIEngine-In-wxk1bef3.o4y","--stdout=Microsoft-MIEngine-Out-uaft0dmi.roq","--stderr=Microsoft-MIEngine-Error-sd2gm14i.gyp","--pid=Microsoft-MIEngine-Pid-2fgb0zym.35w","--dbgExe=D:\\msys64\\ucrt64\\bin\\gdb.exe","--interpreter=mi"],"env":{}},"seq":4}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (178) Wait for connection completion.\r\n"},"seq":6}
1: (178) Wait for connection completion.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (872) ->=thread-group-added,id=\"i1\"\r\n"},"seq":8}
1: (872) ->=thread-group-added,id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (873) ->~\"GNU gdb (GDB) 11.2\\n\"\r\n"},"seq":10}
1: (873) ->~"GNU gdb (GDB) 11.2\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (873) ->~\"Copyright (C) 2022 Free Software Foundation, Inc.\\n\"\r\n"},"seq":12}
1: (873) ->~"Copyright (C) 2022 Free Software Foundation, Inc.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (874) ->~\"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\\nThis is free software: you are free to change and redistribute it.\\nThere is NO WARRANTY, to the extent permitted by law.\"\r\n"},"seq":14}
1: (874) ->~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (874) ->~\"\\nType \\\"show copying\\\" and \\\"show warranty\\\" for details.\\n\"\r\n"},"seq":16}
1: (874) ->~"\nType \"show copying\" and \"show warranty\" for details.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (874) ->~\"This GDB was configured as \\\"x86_64-w64-mingw32\\\".\\n\"\r\n"},"seq":18}
1: (874) ->~"This GDB was configured as \"x86_64-w64-mingw32\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (874) ->~\"Type \\\"show configuration\\\" for configuration details.\\n\"\r\n"},"seq":20}
1: (874) ->~"Type \"show configuration\" for configuration details.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (874) ->~\"For bug reporting instructions, please see:\\n\"\r\n"},"seq":22}
1: (874) ->~"For bug reporting instructions, please see:\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (874) ->~\"<https://www.gnu.org/software/gdb/bugs/>.\\n\"\r\n"},"seq":24}
1: (874) ->~"<https://www.gnu.org/software/gdb/bugs/>.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (874) ->~\"Find the GDB manual and other documentation resources online at:\\n    <http://www.gnu.org/software/gdb/documentation/>.\"\r\n"},"seq":26}
1: (874) ->~"Find the GDB manual and other documentation resources online at:\n    <http://www.gnu.org/software/gdb/documentation/>."
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (874) ->~\"\\n\\n\"\r\n"},"seq":28}
1: (874) ->~"\n\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (875) ->~\"For help, type \\\"help\\\".\\n\"\r\n"},"seq":30}
1: (875) ->~"For help, type \"help\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (875) ->~\"Type \\\"apropos word\\\" to search for commands related to \\\"word\\\".\\n\"\r\n"},"seq":32}
1: (875) ->~"Type \"apropos word\" to search for commands related to \"word\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (883) ->(gdb)\r\n"},"seq":34}
1: (883) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (887) <-1001-gdb-set mi-async on\r\n"},"seq":36}
1: (887) <-1001-gdb-set mi-async on
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (893) ->1001^done\r\n"},"seq":38}
1: (893) ->1001^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (894) ->(gdb)\r\n"},"seq":40}
1: (894) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (894) ->&\"\\n\"\r\n"},"seq":42}
1: (894) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (894) ->^done\r\n"},"seq":44}
1: (894) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (894) ->(gdb)\r\n"},"seq":46}
1: (894) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (896) 1001: elapsed time 10\r\n"},"seq":48}
1: (896) 1001: elapsed time 10
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (899) <-1002-interpreter-exec console \"show configuration\"\r\n"},"seq":50}
1: (899) <-1002-interpreter-exec console "show configuration"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (910) ->~\"This GDB was configured as follows:\\n   configure --host=\"\r\n"},"seq":52}
1: (910) ->~"This GDB was configured as follows:\n   configure --host="
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (910) ->~\"x86_64-w64-mingw32 --target=x86_64-w64-mingw32\\n\"\r\n"},"seq":54}
1: (910) ->~"x86_64-w64-mingw32 --target=x86_64-w64-mingw32\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (910) ->~\"\\t     --with-auto-load-dir=$debugdir:$datadir/auto-load\\n\\t     --with-auto-load-safe-path=\"\r\n"},"seq":56}
1: (910) ->~"\t     --with-auto-load-dir=$debugdir:$datadir/auto-load\n\t     --with-auto-load-safe-path="
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (910) ->~\"$debugdir:$datadir/auto-load\\n\"\r\n"},"seq":58}
1: (910) ->~"$debugdir:$datadir/auto-load\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (910) ->~\"\\t     --with-expat\\n\"\r\n"},"seq":60}
1: (910) ->~"\t     --with-expat\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (910) ->~\"\\t     --with-gdb-datadir=/ucrt64/share/gdb (relocatable)\\n\"\r\n"},"seq":62}
1: (910) ->~"\t     --with-gdb-datadir=/ucrt64/share/gdb (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (910) ->~\"\\t     --with-jit-reader-dir=/ucrt64/lib/gdb (relocatable)\\n\"\r\n"},"seq":64}
1: (910) ->~"\t     --with-jit-reader-dir=/ucrt64/lib/gdb (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (910) ->~\"\\t     --without-libunwind-ia64\\n\"\r\n"},"seq":66}
1: (910) ->~"\t     --without-libunwind-ia64\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (911) ->~\"\\t     --with-lzma\\n\"\r\n"},"seq":68}
1: (911) ->~"\t     --with-lzma\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (911) ->~\"\\t     --without-babeltrace\\n\"\r\n"},"seq":70}
1: (911) ->~"\t     --without-babeltrace\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (911) ->~\"\\t     --without-intel-pt\\n\"\r\n"},"seq":72}
1: (911) ->~"\t     --without-intel-pt\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (911) ->~\"\\t     --with-mpfr\\n\"\r\n"},"seq":74}
1: (911) ->~"\t     --with-mpfr\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (911) ->~\"\\t     --with-xxhash\\n\"\r\n"},"seq":76}
1: (911) ->~"\t     --with-xxhash\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (911) ->~\"\\t     --with-python=/ucrt64 (relocatable)\\n\"\r\n"},"seq":78}
1: (911) ->~"\t     --with-python=/ucrt64 (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (911) ->~\"\\t     --with-python-libdir=/ucrt64/lib (relocatable)\\n\"\r\n"},"seq":80}
1: (911) ->~"\t     --with-python-libdir=/ucrt64/lib (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (911) ->~\"\\t     --without-debuginfod\\n\"\r\n"},"seq":82}
1: (911) ->~"\t     --without-debuginfod\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (912) ->~\"\\t     --without-guile\\n\"\r\n"},"seq":84}
1: (912) ->~"\t     --without-guile\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (912) ->~\"\\t     --disable-source-highlight\\n\"\r\n"},"seq":86}
1: (912) ->~"\t     --disable-source-highlight\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (912) ->~\"\\t     --with-separate-debug-dir=/ucrt64/lib/debug (relocatable)\\n\"\r\n"},"seq":88}
1: (912) ->~"\t     --with-separate-debug-dir=/ucrt64/lib/debug (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (912) ->~\"\\t     --with-system-gdbinit=/ucrt64/etc/gdbinit (relocatable)\\n\"\r\n"},"seq":90}
1: (912) ->~"\t     --with-system-gdbinit=/ucrt64/etc/gdbinit (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (912) ->~\"\\n(\\\"Relocatable\\\" means the directory can be moved with the GDB installation\\ntree, and GDB will still find it.)\\n\"\r\n"},"seq":92}
1: (912) ->~"\n(\"Relocatable\" means the directory can be moved with the GDB installation\ntree, and GDB will still find it.)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (912) ->1002^done\r\n"},"seq":94}
1: (912) ->1002^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (912) ->(gdb)\r\n"},"seq":96}
1: (912) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (912) 1002: elapsed time 13\r\n"},"seq":98}
1: (912) 1002: elapsed time 13
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (912) ->&\"\\n\"\r\n"},"seq":100}
1: (912) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (913) ->^done\r\n"},"seq":102}
1: (913) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (913) ->(gdb)\r\n"},"seq":104}
1: (913) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/MIEngine/WindowsRuntime","data":{"VS.Diagnostics.Debugger.MIEngine.WindowsRuntime":"MinGW"}},"seq":106}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (928) <-1003-interpreter-exec console \"set pagination off\"\r\n"},"seq":108}
1: (928) <-1003-interpreter-exec console "set pagination off"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (942) ->=cmd-param-changed,param=\"pagination\",value=\"off\"\r\n"},"seq":110}
1: (942) ->=cmd-param-changed,param="pagination",value="off"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (942) ->1003^done\r\n"},"seq":112}
1: (942) ->1003^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (942) ->(gdb)\r\n"},"seq":114}
1: (942) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (942) 1003: elapsed time 13\r\n"},"seq":116}
1: (942) 1003: elapsed time 13
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (942) ->&\"\\n\"\r\n"},"seq":118}
1: (942) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (942) <-1004-gdb-set auto-solib-add on\r\n"},"seq":120}
1: (942) <-1004-gdb-set auto-solib-add on
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (942) ->^done\r\n"},"seq":122}
1: (942) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (942) ->(gdb)\r\n"},"seq":124}
1: (942) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (958) ->1004^done\r\n"},"seq":126}
1: (958) ->1004^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (958) 1004: elapsed time 15\r\n"},"seq":128}
1: (958) 1004: elapsed time 15
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (958) ->(gdb)\r\n"},"seq":130}
1: (958) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (958) <-1005-gdb-set solib-search-path E:\\\\krita-win\\\\i_msys\\\\bin;\r\n"},"seq":132}
1: (958) <-1005-gdb-set solib-search-path E:\\krita-win\\i_msys\\bin;
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (958) ->&\"\\n\"\r\n"},"seq":134}
1: (958) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (958) ->^done\r\n"},"seq":136}
1: (958) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (958) ->(gdb)\r\n"},"seq":138}
1: (958) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (974) ->1005^done\r\n"},"seq":140}
1: (974) ->1005^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (974) 1005: elapsed time 15\r\n"},"seq":142}
1: (974) 1005: elapsed time 15
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (974) ->(gdb)\r\n"},"seq":144}
1: (974) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (974) <-1006-environment-cd E:\\\\krita-win\r\n"},"seq":146}
1: (974) <-1006-environment-cd E:\\krita-win
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (974) ->&\"\\n\"\r\n"},"seq":148}
1: (974) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (974) ->^done\r\n"},"seq":150}
1: (974) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (974) ->(gdb)\r\n"},"seq":152}
1: (974) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (990) ->1006^done\r\n"},"seq":154}
1: (990) ->1006^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (990) ->(gdb)\r\n"},"seq":156}
1: (990) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (990) 1006: elapsed time 16\r\n"},"seq":158}
1: (990) 1006: elapsed time 16
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (990) ->&\"\\n\"\r\n"},"seq":160}
1: (990) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (990) <-1007-file-exec-and-symbols E:\\\\krita-win\\\\i_msys\\\\bin\\\\krita.exe\r\n"},"seq":162}
1: (990) <-1007-file-exec-and-symbols E:\\krita-win\\i_msys\\bin\\krita.exe
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (990) ->^done\r\n"},"seq":164}
1: (990) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (990) ->(gdb)\r\n"},"seq":166}
1: (990) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1012) ->1007^done\r\n"},"seq":168}
1: (1012) ->1007^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1012) 1007: elapsed time 22\r\n"},"seq":170}
1: (1012) 1007: elapsed time 22
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1012) ->(gdb)\r\n"},"seq":172}
1: (1012) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1012) <-1008-interpreter-exec console \"show architecture\"\r\n"},"seq":174}
1: (1012) <-1008-interpreter-exec console "show architecture"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1013) ->&\"\\n\"\r\n"},"seq":176}
1: (1013) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1013) ->^done\r\n"},"seq":178}
1: (1013) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1013) ->(gdb)\r\n"},"seq":180}
1: (1013) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1037) ->~\"The target architecture is set to \\\"auto\\\" (currently \\\"i386:x86-64\\\").\\n\"\r\n"},"seq":182}
1: (1037) ->~"The target architecture is set to \"auto\" (currently \"i386:x86-64\").\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1037) ->1008^done\r\n"},"seq":184}
1: (1037) ->1008^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1037) 1008: elapsed time 24\r\n"},"seq":186}
1: (1037) 1008: elapsed time 24
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1037) ->(gdb)\r\n"},"seq":188}
1: (1037) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1037) ->&\"\\n\"\r\n"},"seq":190}
1: (1037) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1037) ->^done\r\n"},"seq":192}
1: (1037) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1038) ->(gdb)\r\n"},"seq":194}
1: (1038) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1038) <-1009-exec-arguments 2>CON 1>CON <CON\r\n"},"seq":196}
1: (1038) <-1009-exec-arguments 2>CON 1>CON <CON
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1053) ->1009^done\r\n"},"seq":198}
1: (1053) ->1009^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1053) ->(gdb)\r\n"},"seq":200}
1: (1053) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1053) 1009: elapsed time 14\r\n"},"seq":202}
1: (1053) 1009: elapsed time 14
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1053) ->&\"\\n\"\r\n"},"seq":204}
1: (1053) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1053) <-1010-break-insert -f main\r\n"},"seq":206}
1: (1053) <-1010-break-insert -f main
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1053) ->^done\r\n"},"seq":208}
1: (1053) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1053) ->(gdb)\r\n"},"seq":210}
1: (1053) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1070) ->1010^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000140002a20\",func=\"main(int, char**)\",file=\"E:/krita-win/src/krita/windows_stub_main.cpp\",fullname=\"E:\\\\krita-win\\\\src\\\\krita\\\\windows_stub_main.cpp\",line=\"12\",thread-groups=[\"i1\"],times=\"0\",original-location=\"main\"}\r\n"},"seq":212}
1: (1070) ->1010^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000140002a20",func="main(int, char**)",file="E:/krita-win/src/krita/windows_stub_main.cpp",fullname="E:\\krita-win\\src\\krita\\windows_stub_main.cpp",line="12",thread-groups=["i1"],times="0",original-location="main"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1070) ->(gdb)\r\n"},"seq":214}
1: (1070) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1070) ->&\"\\n\"\r\n"},"seq":216}
1: (1070) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1070) ->^done\r\n"},"seq":218}
1: (1070) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1071) ->(gdb)\r\n"},"seq":220}
1: (1071) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1076) 1010: elapsed time 23\r\n"},"seq":222}
1: (1076) 1010: elapsed time 23
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1077) <-1011-interpreter-exec console \"set env PATH E:\\\\krita-win\\\\i_msys\\\\bin\\\\;E:\\\\krita-win\\\\i_deps_msys\\\\bin\\\\;D:\\\\msys64\\\\ucrt64\\\\bin\\\\;D:\\\\Ruby30-x64\\\\bin;D:\\\\Program Files\\\\AdoptOpenJDK\\\\jdk-11.0.11.9-hotspot\\\\bin;C:\\\\Program Files\\\\Python38\\\\Scripts\\\\;C:\\\\Program Files\\\\Python38\\\\;C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v8.0\\\\bin;C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v8.0\\\\libnvvp;C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\cuDNN\\\\v6.0\\\\bin;C:\\\\Program Files (x86)\\\\Common Files\\\\Intel\\\\Shared Files\\\\cpp\\\\bin\\\\Intel64;C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Windows\\\\System32\\\\OpenSSH\\\\;D:\\\\Program Files\\\\Calibre2\\\\;C:\\\\WINDOWS\\\\system32;C:\\\\WINDOWS;C:\\\\WINDOWS\\\\System32\\\\Wbem;C:\\\\WINDOWS\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\WINDOWS\\\\System32\\\\OpenSSH\\\\;C:\\\\Program Files\\\\7-Zip;C:\\\\Program Files\\\\Pandoc\\\\;C:\\\\Program Files\\\\TortoiseSVN\\\\bin;C:\\\\Program Files\\\\PuTTY\\\\;C:\\\\Program Files\\\\Git\\\\cmd;C:\\\\ProgramData\\\\chocolatey;C:\\\\Program Files\\\\dotnet\\\\;C:\\\\Program Files\\\\CMake\\\\bin;C:\\\\ProgramData\\\\chocolatey\\\\bin;C:\\\\Program Files\\\\PowerShell\\\\7\\\\;C:\\\\Program Files\\\\nodejs\\\\;C:\\\\Program Files (x86)\\\\NVIDIA Corporation\\\\PhysX\\\\Common;C:\\\\Program Files\\\\gs\\\\gs9.51\\\\bin;C:\\\\Users\\\\Amalia\\\\AppData\\\\Local\\\\Streamlink\\\\bin;C:\\\\Users\\\\Amalia\\\\.cargo\\\\bin;D:\\\\texlive\\\\2022\\\\bin\\\\win32;C:\\\\Users\\\\Amalia\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;C:\\\\Users\\\\Amalia\\\\AppData\\\\Roaming\\\\Python\\\\Python38\\\\Scripts;C:\\\\Users\\\\Amalia\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code\\\\bin;\"\r\n"},"seq":224}
1: (1077) <-1011-interpreter-exec console "set env PATH E:\\krita-win\\i_msys\\bin\\;E:\\krita-win\\i_deps_msys\\bin\\;D:\\msys64\\ucrt64\\bin\\;D:\\Ruby30-x64\\bin;D:\\Program Files\\AdoptOpenJDK\\jdk-11.0.11.9-hotspot\\bin;C:\\Program Files\\Python38\\Scripts\\;C:\\Program Files\\Python38\\;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0\\libnvvp;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\cuDNN\\v6.0\\bin;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Files\\cpp\\bin\\Intel64;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;D:\\Program Files\\Calibre2\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\7-Zip;C:\\Program Files\\Pandoc\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Git\\cmd;C:\\ProgramData\\chocolatey;C:\\Program Files\\dotnet\\;C:\\Program Files\\CMake\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\PowerShell\\7\\;C:\\Program Files\\nodejs\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\gs\\gs9.51\\bin;C:\\Users\\Amalia\\AppData\\Local\\Streamlink\\bin;C:\\Users\\Amalia\\.cargo\\bin;D:\\texlive\\2022\\bin\\win32;C:\\Users\\Amalia\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Amalia\\AppData\\Roaming\\Python\\Python38\\Scripts;C:\\Users\\Amalia\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1085) ->1011^done\r\n"},"seq":226}
1: (1085) ->1011^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1085) ->(gdb)\r\n"},"seq":228}
1: (1085) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1085) 1011: elapsed time 8\r\n"},"seq":230}
1: (1085) 1011: elapsed time 8
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1085) ->&\"\\n\"\r\n"},"seq":232}
1: (1085) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1085) <-1012-interpreter-exec console \"set env KRITA_PLUGIN_PATH E:\\\\krita-win\\\\i_msys\\\\lib\\\\kritaplugins\\\\\"\r\n"},"seq":234}
1: (1085) <-1012-interpreter-exec console "set env KRITA_PLUGIN_PATH E:\\krita-win\\i_msys\\lib\\kritaplugins\\"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1086) ->^done\r\n"},"seq":236}
1: (1086) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1086) ->(gdb)\r\n"},"seq":238}
1: (1086) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1101) ->1012^done\r\n"},"seq":240}
1: (1101) ->1012^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1101) 1012: elapsed time 15\r\n"},"seq":242}
1: (1101) 1012: elapsed time 15
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1101) ->(gdb)\r\n"},"seq":244}
1: (1101) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1101) <-1013-interpreter-exec console \"set env QT_LOGGING_RULES krita.plugins.*=true;krita.scripting=true;krita.general=true\"\r\n"},"seq":246}
1: (1101) <-1013-interpreter-exec console "set env QT_LOGGING_RULES krita.plugins.*=true;krita.scripting=true;krita.general=true"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1101) ->&\"\\n\"\r\n"},"seq":248}
1: (1101) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1101) ->^done\r\n"},"seq":250}
1: (1101) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1101) ->(gdb)\r\n"},"seq":252}
1: (1101) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1117) ->1013^done\r\n"},"seq":254}
1: (1117) ->1013^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1117) 1013: elapsed time 15\r\n"},"seq":256}
1: (1117) 1013: elapsed time 15
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1117) ->(gdb)\r\n"},"seq":258}
1: (1117) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1117) ->&\"\\n\"\r\n"},"seq":260}
1: (1117) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1117) ->^done\r\n"},"seq":262}
1: (1117) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1117) ->(gdb)\r\n"},"seq":264}
1: (1117) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1121) Send Event AD7EngineCreateEvent\r\n"},"seq":266}
1: (1121) Send Event AD7EngineCreateEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1123) Send Event AD7ProgramCreateEvent\r\n"},"seq":268}
1: (1123) Send Event AD7ProgramCreateEvent
--> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/Launch","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"17.1.20405.1","VS.Diagnostics.Debugger.HostVersion":"17.1.20405.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":1046,"VS.Diagnostics.Debugger.MIMode":"gdb","VS.Diagnostics.Debugger.FrameworkVersion":"6.0.322.12309"}},"seq":270}
--> R (launch-2): {"type":"response","request_seq":2,"success":true,"command":"launch","body":{},"seq":272}
--> E (initialized): {"type":"event","event":"initialized","body":{},"seq":274}
<--   R (runInTerminal-4) [966 ms]: {"type":"response","seq":3,"command":"runInTerminal","request_seq":4,"success":true,"body":{"shellProcessId":12820}}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1146) ShellPid=13452\r\n"},"seq":277}
1: (1146) ShellPid=13452
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1155) DebuggerPid=4472\r\n"},"seq":279}
1: (1155) DebuggerPid=4472
<--   C (setFunctionBreakpoints-4): {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4}
--> R (setFunctionBreakpoints-4): {"type":"response","request_seq":4,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]},"seq":282}
<--   C (setDataBreakpoints-5): {"command":"setDataBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":5}
--> R (setDataBreakpoints-5): {"type":"response","request_seq":5,"success":true,"command":"setDataBreakpoints","body":{"breakpoints":[]},"seq":285}
<--   C (setInstructionBreakpoints-6): {"command":"setInstructionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":6}
--> R (setInstructionBreakpoints-6): {"type":"response","request_seq":6,"success":true,"command":"setInstructionBreakpoints","body":{"breakpoints":[]},"seq":288}
<--   C (setExceptionBreakpoints-7): {"command":"setExceptionBreakpoints","arguments":{"filters":[],"filterOptions":[]},"type":"request","seq":7}
--> R (setExceptionBreakpoints-7): {"type":"response","request_seq":7,"success":true,"command":"setExceptionBreakpoints","body":{},"seq":291}
<--   C (configurationDone-8): {"command":"configurationDone","type":"request","seq":8}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1266) Send Event AD7LoadCompleteEvent\r\n"},"seq":295}
1: (1266) Send Event AD7LoadCompleteEvent
--> R (configurationDone-8): {"type":"response","request_seq":8,"success":true,"command":"configurationDone","body":{},"seq":294}
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"=thread-group-added,id=\"i1\"\nGNU gdb (GDB) 11.2\nCopyright (C) 2022 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\nType \"show copying\" and \"show warranty\" for details.\nThis GDB was configured as \"x86_64-w64-mingw32\".\nType \"show configuration\" for configuration details.\nFor bug reporting instructions, please see:\n<https://www.gnu.org/software/gdb/bugs/>.\nFind the GDB manual and other documentation resources online at:\n    <http://www.gnu.org/software/gdb/documentation/>.\n\nFor help, type \"help\".\nType \"apropos word\" to search for commands related to \"word\".\nWarning: Debuggee TargetArchitecture not detected, assuming x86_64.\n=cmd-param-changed,param=\"pagination\",value=\"off\"\n"},"seq":298}
=thread-group-added,id="i1"
GNU gdb (GDB) 11.2
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1279) <-1014-exec-run\r\n"},"seq":300}
1: (1279) <-1014-exec-run
<--   C (threads-9): {"command":"threads","type":"request","seq":9}
--> R (threads-9): {"type":"response","request_seq":9,"success":true,"command":"threads","body":{"threads":[]},"seq":303}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1319) ->=thread-group-started,id=\"i1\",pid=\"2064\"\r\n"},"seq":305}
1: (1319) ->=thread-group-started,id="i1",pid="2064"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1320) ->=thread-created,id=\"1\",group-id=\"i1\"\r\n"},"seq":307}
1: (1320) ->=thread-created,id="1",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1322) <-1015-thread-info 1\r\n"},"seq":309}
1: (1322) <-1015-thread-info 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1323) ->=thread-created,id=\"2\",group-id=\"i1\"\r\n"},"seq":311}
1: (1323) ->=thread-created,id="2",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1324) ->~\"[New Thread 2064.0x1d84]\\n\"\r\n"},"seq":313}
1: (1324) ->~"[New Thread 2064.0x1d84]\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1324) ->=thread-created,id=\"3\",group-id=\"i1\"\r\n"},"seq":315}
1: (1324) ->=thread-created,id="3",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1324) ->~\"[New Thread 2064.0x333c]\\n\"\r\n"},"seq":317}
1: (1324) ->~"[New Thread 2064.0x333c]\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1325) <-1016-thread-info 2\r\n"},"seq":319}
1: (1325) <-1016-thread-info 2
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"[New Thread 2064.0x1d84]\n"},"seq":321}
[New Thread 2064.0x1d84]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1326) <-1017-thread-info 3\r\n"},"seq":323}
1: (1326) <-1017-thread-info 3
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1326) ->=thread-created,id=\"4\",group-id=\"i1\"\r\n"},"seq":325}
1: (1326) ->=thread-created,id="4",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"[New Thread 2064.0x333c]\n"},"seq":327}
[New Thread 2064.0x333c]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1326) ->~\"[New Thread 2064.0x2314]\\n\"\r\n"},"seq":329}
1: (1326) ->~"[New Thread 2064.0x2314]\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1326) <-1018-thread-info 4\r\n"},"seq":331}
1: (1326) <-1018-thread-info 4
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"[New Thread 2064.0x2314]\n"},"seq":333}
[New Thread 2064.0x2314]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1344) ->~\"[Thread 2064.0x37f0 exited with code 3221225781]\\n\"\r\n"},"seq":335}
1: (1344) ->~"[Thread 2064.0x37f0 exited with code 3221225781]\n"
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"[Thread 2064.0x37f0 exited with code 3221225781]\n"},"seq":337}
[Thread 2064.0x37f0 exited with code 3221225781]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1344) ->=thread-exited,id=\"1\",group-id=\"i1\"\r\n"},"seq":338}
1: (1344) ->=thread-exited,id="1",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1345) ->~\"[Thread 2064.0x2314 exited with code 3221225781]\\n\"\r\n"},"seq":341}
1: (1345) ->~"[Thread 2064.0x2314 exited with code 3221225781]\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1345) ->=thread-exited,id=\"4\",group-id=\"i1\"\r\n"},"seq":343}
1: (1345) ->=thread-exited,id="4",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1345) ->~\"[Thread 2064.0x333c exited with code 3221225781]\\n\"\r\n"},"seq":345}
1: (1345) ->~"[Thread 2064.0x333c exited with code 3221225781]\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1345) ->=thread-exited,id=\"3\",group-id=\"i1\"\r\n"},"seq":347}
1: (1345) ->=thread-exited,id="3",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1345) ->=thread-exited,id=\"2\",group-id=\"i1\"\r\n"},"seq":349}
1: (1345) ->=thread-exited,id="2",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1345) ->=thread-group-exited,id=\"i1\"\r\n"},"seq":351}
1: (1345) ->=thread-group-exited,id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1346) ->1014^error,msg=\"During startup program exited with code 0xc0000135.\"\r\n"},"seq":353}
1: (1346) ->1014^error,msg="During startup program exited with code 0xc0000135."
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1346) ->(gdb)\r\n"},"seq":355}
1: (1346) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"[Thread 2064.0x2314 exited with code 3221225781]\n"},"seq":357}
[Thread 2064.0x2314 exited with code 3221225781]
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"[Thread 2064.0x333c exited with code 3221225781]\n"},"seq":359}
[Thread 2064.0x333c exited with code 3221225781]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1353) ->&\"\\n\"\r\n"},"seq":361}
1: (1353) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1353) ->^done\r\n"},"seq":363}
1: (1353) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1353) ->(gdb)\r\n"},"seq":365}
1: (1353) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1353) ->1015^done,threads=[]\r\n"},"seq":367}
1: (1353) ->1015^done,threads=[]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1354) ->(gdb)\r\n"},"seq":369}
1: (1354) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1354) 1014: elapsed time 74\r\n"},"seq":371}
1: (1354) 1014: elapsed time 74
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1354) ->&\"\\n\"\r\n"},"seq":373}
1: (1354) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1354) ->^done\r\n"},"seq":375}
1: (1354) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1354) ->(gdb)\r\n"},"seq":377}
1: (1354) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1354) ->1016^done,threads=[]\r\n"},"seq":379}
1: (1354) ->1016^done,threads=[]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1354) ->(gdb)\r\n"},"seq":381}
1: (1354) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1354) ->&\"\\n\"\r\n"},"seq":383}
1: (1354) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1354) ->^done\r\n"},"seq":385}
1: (1354) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1354) ->(gdb)\r\n"},"seq":387}
1: (1354) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1354) ->1017^done,threads=[]\r\n"},"seq":389}
1: (1354) ->1017^done,threads=[]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1355) ->(gdb)\r\n"},"seq":391}
1: (1355) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1355) ->&\"\\n\"\r\n"},"seq":393}
1: (1355) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1355) ->^done\r\n"},"seq":395}
1: (1355) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1355) ->(gdb)\r\n"},"seq":397}
1: (1355) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1355) ->1018^done,threads=[]\r\n"},"seq":399}
1: (1355) ->1018^done,threads=[]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1355) ->(gdb)\r\n"},"seq":401}
1: (1355) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1355) ->&\"\\n\"\r\n"},"seq":403}
1: (1355) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1355) ->^done\r\n"},"seq":405}
1: (1355) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1355) ->(gdb)\r\n"},"seq":407}
1: (1355) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1360) Send Event AD7MessageEvent\r\n"},"seq":409}
1: (1360) Send Event AD7MessageEvent
--> E (output): {"type":"event","event":"output","body":{"category":"stderr","output":"ERROR: Unable to start debugging. Unexpected GDB output from command \"-exec-run\". During startup program exited with code 0xc0000135.\r\n"},"seq":411}
ERROR: Unable to start debugging. Unexpected GDB output from command "-exec-run". During startup program exited with code 0xc0000135.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1370) Send Event AD7ProgramDestroyEvent\r\n"},"seq":413}
1: (1370) Send Event AD7ProgramDestroyEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"The program 'E:\\krita-win\\i_msys\\bin\\krita.exe' has exited with code 0 (0x00000000).\r\n\r\n"},"seq":415}
The program 'E:\krita-win\i_msys\bin\krita.exe' has exited with code 0 (0x00000000).
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1372) Shell exited, stop debugging\r\n"},"seq":418}
1: (1372) Shell exited, stop debugging
--> E (exited): {"type":"event","event":"exited","body":{"exitCode":0},"seq":417}
--> E (terminated): {"type":"event","event":"terminated","body":{},"seq":421}
--> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/DebugCompleted","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"17.1.20405.1","VS.Diagnostics.Debugger.HostVersion":"17.1.20405.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.DebugCompleted.BreakCounter":0}},"seq":423}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1380) <--gdb-exit\r\n"},"seq":425}
1: (1380) <--gdb-exit
<--   C (disconnect-10): {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":10}
--> R (disconnect-10): {"type":"response","request_seq":10,"success":true,"command":"disconnect","body":{},"seq":428}

Other Extensions

No response

Additional Information

A trace of the target app with Process Monitor shows that it launchs without the requested environment variables. The added folders are just not available on the child process, thus leading to the crash depicted in the logs.

WardenGnaw commented 2 years ago

From the logs, it seems like the PATH environment is set on GDB:

1: (1077) <-1011-interpreter-exec console "set env PATH E:\\krita-win\\i_msys\\bin\\;E:\\krita-win\\i_deps_msys\\bin\\;D:\\msys64\\ucrt64\\bin\\;D:\\Ruby30-x64\\bin;D:\\Program Files\\AdoptOpenJDK\\jdk-11.0.11.9-hotspot\\bin;C:\\Program Files\\Python38\\Scripts\\;C:\\Program Files\\Python38\\;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0\\libnvvp;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\cuDNN\\v6.0\\bin;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Files\\cpp\\bin\\Intel64;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;D:\\Program Files\\Calibre2\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\7-Zip;C:\\Program Files\\Pandoc\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Git\\cmd;C:\\ProgramData\\chocolatey;C:\\Program Files\\dotnet\\;C:\\Program Files\\CMake\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\PowerShell\\7\\;C:\\Program Files\\nodejs\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\gs\\gs9.51\\bin;C:\\Users\\Amalia\\AppData\\Local\\Streamlink\\bin;C:\\Users\\Amalia\\.cargo\\bin;D:\\texlive\\2022\\bin\\win32;C:\\Users\\Amalia\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Amalia\\AppData\\Roaming\\Python\\Python38\\Scripts;C:\\Users\\Amalia\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1085) ->1011^done\r\n"},"seq":226}

I see the gdb being used is D:\msys64\ucrt64\bin\gdb.exe, does moving ;D:\\msys64\\ucrt64\\bin earlier in the path help?

If it is this issue:

The added folders are just not available on the child process, thus leading to the crash depicted in the logs.

Then this would be an issue in GDB not spawning the process with the set PATH.

amyspark commented 2 years ago

Then this would be an issue in GDB not spawning the process with the set PATH.

GDB 8 can spawn the process successfully, GDB 11 can not and crashes with the error code above.

It seems the problem is that everywhere e.g. here, here, and here the system environment variable is called PATH, but instead in Windows 10 it's called Path (caps sensitive). All other commands e.g. tasks.json calling cmd.exe handle this correctly, but cppdbg does not.

WardenGnaw commented 2 years ago

GDB 8 can spawn the process successfully, GDB 11 can not and crashes with the error code above.

This suggests that it is a bug with gdb 11.

It seems the problem is that everywhere e.g. here, here, and here the system environment variable is called PATH, but instead in Windows 10 it's called Path (caps sensitive). All other commands e.g. tasks.json calling cmd.exe handle this correctly, but cppdbg does not.

However, if it is this, can you modify the environment in your launch.json to be this:

{
   "name": "Path",
   "value": "${workspaceFolder}\\i_msys\\bin\\;${workspaceFolder}\\i_deps_msys\\bin\\;D:\\msys64\\ucrt64\\bin\\;${env:PATH}"
},

and see if debugging work?

amyspark commented 2 years ago

However, if it is this, can you modify the environment in your launch.json to be this:

Yes, I modified it and it works now. Though I'm still not sure whether it's GDB that is wrong; for instance, launching an instance of CMD works, and Process Explorer shows the modified PATH. But if the app itself requires the changed PATH, it crashes on launch. Perhaps the modification is done asynchronously?

In any case, feel free to close this issue if you deem the problem be inside GDB.

WardenGnaw commented 2 years ago

This issue brings up a great discussion. Thank you for bringing this topic up.

I'm on the fence on if the debug adapter detects that it is on Win 10 or greater, if we notice an env PATH being set, modify it to just be Path to make GDB happy.

Auto-detecting and causing changes like this usually end it making it more difficult for the user to understand what actually went wrong.

github-actions[bot] commented 2 years ago

This issue has been closed because it is a question and has not had recent activity.