-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inability to Utilise iTerm2 as the External Console for C++ Debugging in CMake Tools on macOS #4153
Comments
Hi @DehanLUO , thanks for reporting issue here!
replace "/usr/bin/open -a iTerm" with the appropriate command for your iTerm2 installation if necessary, and ensure that iTerm2 has the necessary permissions to run external commands. |
Hi @Amy-Li03 , Thank you for your helpful suggestion! I have updated the configuration as follows: {
"cmake.debugConfig": { // The debug configuration to use when debugging a target.
"stopAtEntry": true, // Stop at the entry point of the target.
"MIMode": "lldb",
"miDebuggerPath": "", // Path to lldb debugger."
"console": "integratedTerminal", // VS Code's integrated terminal.
"logging": { // Tell what types of messages should be logged to the console.
"trace": true,
"engineLogging": true,
"traceResponse": true,
},
"externalConsole": true, // Launch an external console for debugging.
"externalConsoleCommand": "/usr/bin/open -a iTerm",
},
"cmake.loggingLevel": "debug"
} Additionally, I tested the command Could there be further settings or other specific configurations I should adjust? Thank you again for your support. AttachmentsDebug Log[main] Building folder: /Users/dehan/Documents/30-developments/cxx/build MyCMakeProject [main] Saving open files before configure/build [build] Starting build [driver] Start build MyCMakeProject [proc] Executing command: /usr/local/bin/cmake --build /Users/dehan/Documents/30-developments/cxx/build --parallel 18 --target MyCMakeProject -- [proc] with environment: {"COMMAND_MODE":"unix2003","CONDA_DEFAULT_ENV":"base","CONDA_EXE":"/Users/dehan/miniconda3/bin/conda","CONDA_PREFIX":"/Users/dehan/miniconda3","CONDA_PROMPT_MODIFIER":"(base) ","CONDA_PYTHON_EXE":"/Users/dehan/miniconda3/bin/python","CONDA_SHLVL":"1","DBUS_LAUNCHD_SESSION_BUS_SOCKET":"/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener","DBUS_SESSION_BUS_ADDRESS":"unix:path=/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener","DISPLAY":"/private/tmp/com.apple.launchd.Hc5K4REQrS/org.xquartz:0","HOME":"/Users/dehan","JENV_LOADED":"1","JENV_SHELL":"zsh","LESS":"-R","LOGNAME":"dehan","LSCOLORS":"Gxfxcxdxbxegedabagacad","LaunchInstanceID":"531A6E51-EB2A-4D34-A127-B20DC5DEB57B","MallocNanoZone":"0","OPENAI_API_KEY":"","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","P9K_SSH":"0","PAGER":"less","PATH":"/Users/dehan/miniconda3/bin:/Users/dehan/miniconda3/condabin:/usr/local/opt/llvm/bin:/Users/dehan/.jenv/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/usr/local/Cellar/git/*/bin:/Users/dehan/.jenv/bin:/Users/dehan/Documents/30-developments/shellscript","PWD":"/","SECURITYSESSIONID":"186a4","SHELL":"/bin/zsh","SHLVL":"0","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.JiN6Kik8wK/Listeners","TMPDIR":"/var/folders/_d/bsqrml45219_br128q2pgsg40000gn/T/","USER":"dehan","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"/Users/dehan/Library/Application Support/Code/CachedData/b58957e67ee1e712cebf466b995adf4c5307b2bd","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/Users/dehan/Library/Application Support/Code/1.89-main.sock","VSCODE_NLS_CONFIG":"{\"locale\":\"en-us\",\"osLocale\":\"en-ca\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_PID":"90495","XPC_FLAGS":"0x0","XPC_SERVICE_NAME":"application.com.microsoft.VSCode.148111909.148142167","ZSH":"/Users/dehan/.oh-my-zsh","_":"/Applications/Visual Studio Code.app/Contents/MacOS/Electron","__CFBundleIdentifier":"com.microsoft.VSCode","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x52","all_proxy":"socks5://127.0.0.1:6153","http_proxy":"http://127.0.0.1:6152","https_proxy":"http://127.0.0.1:6152","ELECTRON_RUN_AS_NODE":"1","VSCODE_L10N_BUNDLE_LOCATION":"","VSCODE_DOTNET_INSTALL_TOOL_ORIGINAL_HOME":"/Users/dehan","OLDPWD":"/"} [build] [100%] Built target MyCMakeProject [driver] Build completed: 00:00:00.298 [cmakefileapi-parser] Read reply folder: /Users/dehan/Documents/30-developments/cxx/build/.cmake/api/v1/reply [cmakefileapi-parser] Found index files: ["cache-v2-70987f7aa6539348b001.json","cmakeFiles-v1-de2bdfbcfff52bdbe080.json","codemodel-v2-eaa636688ff179d0b4f1.json","directory-.-Debug-f5ebdc15457944623624.json","index-2024-10-31T10-55-28-0375.json","target-Continuous-Debug-997bcb5a3b9dca8359da.json","target-ContinuousBuild-Debug-4584567a169363cf9ad1.json","target-ContinuousConfigure-Debug-0e19c646cd0e63ee0653.json","target-ContinuousCoverage-Debug-409799b9ad5f909e7011.json","target-ContinuousMemCheck-Debug-143e696c442b7ecf3668.json","target-ContinuousStart-Debug-14e6319968faf97d184f.json","target-ContinuousSubmit-Debug-c93e0345de476d497509.json","target-ContinuousTest-Debug-808bd8006ac9fcdb5431.json","target-ContinuousUpdate-Debug-d71e36f8aa62f2f86801.json","target-Experimental-Debug-fbb5cd71ecf75b6a4820.json","target-ExperimentalBuild-Debug-64908f40ac1907e29d8e.json","target-ExperimentalConfigure-Debug-b5c2c5de0cdbfe1c9f1a.json","target-ExperimentalCoverage-Debug-4a157e3dcb28b73180d4.json","target-ExperimentalMemCheck-Debug-34bbd71efeab0640972e.json","target-ExperimentalStart-Debug-3818a2632fcd6e7974d3.json","target-ExperimentalSubmit-Debug-3674090355521545f249.json","target-ExperimentalTest-Debug-b29f9504bf03f854dc39.json","target-ExperimentalUpdate-Debug-952f071f95b176b87e05.json","target-MyCMakeProject-Debug-e87d582e88bb97bc4a5f.json","target-Nightly-Debug-5d49eaaabb7237caa315.json","target-NightlyBuild-Debug-433145e83c90fa22cbbc.json","target-NightlyConfigure-Debug-4c04a9dd60fe59d03c6c.json","target-NightlyCoverage-Debug-f0c7671d4d0f4f6916fa.json","target-NightlyMemCheck-Debug-c3bf90a717f63f0c181c.json","target-NightlyMemoryCheck-Debug-1770cd003485e290d59b.json","target-NightlyStart-Debug-d700a5bc3fd2bc0e9a51.json","target-NightlySubmit-Debug-e1cb7c79372814a87594.json","target-NightlyTest-Debug-cb0cd9dc89bb1cd3b2ed.json","target-NightlyUpdate-Debug-b5b8d465b2b87eeb82cc.json","toolchains-v1-ecad62d51dcbd86df9ba.json"] [extension] Not updating the configuration provider because "C_Cpp.intelliSenseEngine" is set to "Disabled" [build] Build finished with exit code 0 [cache] Reading CMake cache file /Users/dehan/Documents/30-developments/cxx/build/CMakeCache.txt [cache] Parsing CMake cache string [proc] Executing command: /Users/dehan/.vscode/extensions/ms-vscode.cpptools-1.22.10-darwin-x64/debugAdapters/lldb-mi/bin/lldb-mi --version [proc] Executing command: /Users/dehan/.vscode/extensions/ms-vscode.cpptools-1.22.10-darwin-x64/debugAdapters/lldb-mi/bin/lldb-mi --version [main] Debug configuration from cache: {"type":"cppdbg","name":"Debug MyCMakeProject","request":"launch","cwd":"/Users/dehan/Documents/30-developments/cxx/build","args":[],"MIMode":"lldb","miDebuggerPath":"/Users/dehan/.vscode/extensions/ms-vscode.cpptools-1.22.10-darwin-x64/debugAdapters/lldb-mi/bin/lldb-mi","program":"/Users/dehan/Documents/30-developments/cxx/build/MyCMakeProject"} [main] Starting debugger with following configuration. {"workspace":"file:///Users/dehan/Documents/30-developments/cxx","config":{"type":"cppdbg","name":"Debug MyCMakeProject","request":"launch","cwd":"/Users/dehan/Documents/30-developments/cxx/build","args":[],"MIMode":"lldb","miDebuggerPath":"","program":"/Users/dehan/Documents/30-developments/cxx/build/MyCMakeProject","stopAtEntry":true,"console":"integratedTerminal","logging":{"trace":true,"engineLogging":true,"traceResponse":true},"externalConsole":true,"externalConsoleCommand":"/usr/bin/open -a iTerm","environment":[{"name":"COMMAND_MODE","value":"unix2003"},{"name":"CONDA_DEFAULT_ENV","value":"base"},{"name":"CONDA_EXE","value":"/Users/dehan/miniconda3/bin/conda"},{"name":"CONDA_PREFIX","value":"/Users/dehan/miniconda3"},{"name":"CONDA_PROMPT_MODIFIER","value":"(base) "},{"name":"CONDA_PYTHON_EXE","value":"/Users/dehan/miniconda3/bin/python"},{"name":"CONDA_SHLVL","value":"1"},{"name":"DBUS_LAUNCHD_SESSION_BUS_SOCKET","value":"/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener"},{"name":"DBUS_SESSION_BUS_ADDRESS","value":"unix:path=/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener"},{"name":"DISPLAY","value":"/private/tmp/com.apple.launchd.Hc5K4REQrS/org.xquartz:0"},{"name":"HOME","value":"/Users/dehan"},{"name":"JENV_LOADED","value":"1"},{"name":"JENV_SHELL","value":"zsh"},{"name":"LESS","value":"-R"},{"name":"LOGNAME","value":"dehan"},{"name":"LSCOLORS","value":"Gxfxcxdxbxegedabagacad"},{"name":"LaunchInstanceID","value":"531A6E51-EB2A-4D34-A127-B20DC5DEB57B"},{"name":"MallocNanoZone","value":"0"},{"name":"OLDPWD","value":"/"},{"name":"OPENAI_API_KEY","value":""},{"name":"ORIGINAL_XDG_CURRENT_DESKTOP","value":"undefined"},{"name":"P9K_SSH","value":"0"},{"name":"PAGER","value":"less"},{"name":"PATH","value":"/Users/dehan/miniconda3/bin:/Users/dehan/miniconda3/condabin:/usr/local/opt/llvm/bin:/Users/dehan/.jenv/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/usr/local/Cellar/git/*/bin:/Users/dehan/.jenv/bin:/Users/dehan/Documents/30-developments/shellscript"},{"name":"PWD","value":"/"},{"name":"SECURITYSESSIONID","value":"186a4"},{"name":"SHELL","value":"/bin/zsh"},{"name":"SHLVL","value":"0"},{"name":"SSH_AUTH_SOCK","value":"/private/tmp/com.apple.launchd.JiN6Kik8wK/Listeners"},{"name":"TMPDIR","value":"/var/folders/_d/bsqrml45219_br128q2pgsg40000gn/T/"},{"name":"USER","value":"dehan"},{"name":"VSCODE_AMD_ENTRYPOINT","value":"vs/workbench/api/node/extensionHostProcess"},{"name":"VSCODE_CODE_CACHE_PATH","value":"/Users/dehan/Library/Application Support/Code/CachedData/b58957e67ee1e712cebf466b995adf4c5307b2bd"},{"name":"VSCODE_CRASH_REPORTER_PROCESS_TYPE","value":"extensionHost"},{"name":"VSCODE_CWD","value":"/"},{"name":"VSCODE_HANDLES_UNCAUGHT_ERRORS","value":"true"},{"name":"VSCODE_IPC_HOOK","value":"/Users/dehan/Library/Application Support/Code/1.89-main.sock"},{"name":"VSCODE_NLS_CONFIG","value":"{\"locale\":\"en-us\",\"osLocale\":\"en-ca\",\"availableLanguages\":{},\"_languagePackSupport\":true}"},{"name":"VSCODE_PID","value":"90495"},{"name":"XPC_FLAGS","value":"0x0"},{"name":"XPC_SERVICE_NAME","value":"application.com.microsoft.VSCode.148111909.148142167"},{"name":"ZSH","value":"/Users/dehan/.oh-my-zsh"},{"name":"_","value":"/Applications/Visual Studio Code.app/Contents/MacOS/Electron"},{"name":"__CFBundleIdentifier","value":"com.microsoft.VSCode"},{"name":"__CF_USER_TEXT_ENCODING","value":"0x1F5:0x0:0x52"},{"name":"all_proxy","value":"socks5://127.0.0.1:6153"},{"name":"http_proxy","value":"http://127.0.0.1:6152"},{"name":"https_proxy","value":"http://127.0.0.1:6152"},{"name":"ELECTRON_RUN_AS_NODE","value":"1"},{"name":"VSCODE_L10N_BUNDLE_LOCATION","value":""}]}} [extension] [6553] cmake.debugTarget finished (returned {"id":"43580f98-869e-4a2d-a1ea-76c374909dcc","type":"cppdbg","name":"Debug MyCMakeProject","workspaceFolder":{"uri":{"$mid":1,"fsPath":"/Users/dehan/Documents/30-developments/cxx","external":"file:///Users/dehan/Documents/30-developments/cxx","path":"/Users/dehan/Documents/30-developments/cxx","scheme":"file"},"name":"cxx","index":0},"configuration":{"type":"cppdbg","name":"Debug MyCMakeProject","request":"launch","cwd":"/Users/dehan/Documents/30-developments/cxx/build","args":[],"MIMode":"lldb","miDebuggerPath":"","program":"/Users/dehan/Documents/30-developments/cxx/build/MyCMakeProject","stopAtEntry":true,"console":"integratedTerminal","logging":{"trace":true,"engineLogging":true,"traceResponse":true},"externalConsole":true,"externalConsoleCommand":"/usr/bin/open -a iTerm","environment":[{"name":"COMMAND_MODE","value":"unix2003"},{"name":"CONDA_DEFAULT_ENV","value":"base"},{"name":"CONDA_EXE","value":"/Users/dehan/miniconda3/bin/conda"},{"name":"CONDA_PREFIX","value":"/Users/dehan/miniconda3"},{"name":"CONDA_PROMPT_MODIFIER","value":"(base) "},{"name":"CONDA_PYTHON_EXE","value":"/Users/dehan/miniconda3/bin/python"},{"name":"CONDA_SHLVL","value":"1"},{"name":"DBUS_LAUNCHD_SESSION_BUS_SOCKET","value":"/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener"},{"name":"DBUS_SESSION_BUS_ADDRESS","value":"unix:path=/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener"},{"name":"DISPLAY","value":"/private/tmp/com.apple.launchd.Hc5K4REQrS/org.xquartz:0"},{"name":"HOME","value":"/Users/dehan"},{"name":"JENV_LOADED","value":"1"},{"name":"JENV_SHELL","value":"zsh"},{"name":"LESS","value":"-R"},{"name":"LOGNAME","value":"dehan"},{"name":"LSCOLORS","value":"Gxfxcxdxbxegedabagacad"},{"name":"LaunchInstanceID","value":"531A6E51-EB2A-4D34-A127-B20DC5DEB57B"},{"name":"MallocNanoZone","value":"0"},{"name":"OLDPWD","value":"/"},{"name":"OPENAI_API_KEY","value":""},{"name":"ORIGINAL_XDG_CURRENT_DESKTOP","value":"undefined"},{"name":"P9K_SSH","value":"0"},{"name":"PAGER","value":"less"},{"name":"PATH","value":"/Users/dehan/miniconda3/bin:/Users/dehan/miniconda3/condabin:/usr/local/opt/llvm/bin:/Users/dehan/.jenv/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/usr/local/Cellar/git/*/bin:/Users/dehan/.jenv/bin:/Users/dehan/Documents/30-developments/shellscript"},{"name":"PWD","value":"/"},{"name":"SECURITYSESSIONID","value":"186a4"},{"name":"SHELL","value":"/bin/zsh"},{"name":"SHLVL","value":"0"},{"name":"SSH_AUTH_SOCK","value":"/private/tmp/com.apple.launchd.JiN6Kik8wK/Listeners"},{"name":"TMPDIR","value":"/var/folders/_d/bsqrml45219_br128q2pgsg40000gn/T/"},{"name":"USER","value":"dehan"},{"name":"VSCODE_AMD_ENTRYPOINT","value":"vs/workbench/api/node/extensionHostProcess"},{"name":"VSCODE_CODE_CACHE_PATH","value":"/Users/dehan/Library/Application Support/Code/CachedData/b58957e67ee1e712cebf466b995adf4c5307b2bd"},{"name":"VSCODE_CRASH_REPORTER_PROCESS_TYPE","value":"extensionHost"},{"name":"VSCODE_CWD","value":"/"},{"name":"VSCODE_HANDLES_UNCAUGHT_ERRORS","value":"true"},{"name":"VSCODE_IPC_HOOK","value":"/Users/dehan/Library/Application Support/Code/1.89-main.sock"},{"name":"VSCODE_NLS_CONFIG","value":"{\"locale\":\"en-us\",\"osLocale\":\"en-ca\",\"availableLanguages\":{},\"_languagePackSupport\":true}"},{"name":"VSCODE_PID","value":"90495"},{"name":"XPC_FLAGS","value":"0x0"},{"name":"XPC_SERVICE_NAME","value":"application.com.microsoft.VSCode.148111909.148142167"},{"name":"ZSH","value":"/Users/dehan/.oh-my-zsh"},{"name":"_","value":"/Applications/Visual Studio Code.app/Contents/MacOS/Electron"},{"name":"__CFBundleIdentifier","value":"com.microsoft.VSCode"},{"name":"__CF_USER_TEXT_ENCODING","value":"0x1F5:0x0:0x52"},{"name":"all_proxy","value":"socks5://127.0.0.1:6153"},{"name":"http_proxy","value":"http://127.0.0.1:6152"},{"name":"https_proxy","value":"http://127.0.0.1:6152"},{"name":"ELECTRON_RUN_AS_NODE","value":"1"},{"name":"VSCODE_L10N_BUNDLE_LOCATION","value":""}]}}) vscode-cpptools outputintelliSenseEngine is disabled Launch configuration: { "type": "cppdbg", "name": "Debug MyCMakeProject", "request": "launch", "cwd": "/Users/dehan/Documents/30-developments/cxx/build", "args": [], "MIMode": "lldb", "miDebuggerPath": "", "program": "/Users/dehan/Documents/30-developments/cxx/build/MyCMakeProject", "stopAtEntry": true, "console": "integratedTerminal", "logging": { "trace": true, "engineLogging": true, "traceResponse": true }, "externalConsole": true, "externalConsoleCommand": "/usr/bin/open -a iTerm", "environment": [ { "name": "COMMAND_MODE", "value": "unix2003" }, { "name": "CONDA_DEFAULT_ENV", "value": "base" }, { "name": "CONDA_EXE", "value": "/Users/dehan/miniconda3/bin/conda" }, { "name": "CONDA_PREFIX", "value": "/Users/dehan/miniconda3" }, { "name": "CONDA_PROMPT_MODIFIER", "value": "(base) " }, { "name": "CONDA_PYTHON_EXE", "value": "/Users/dehan/miniconda3/bin/python" }, { "name": "CONDA_SHLVL", "value": "1" }, { "name": "DBUS_LAUNCHD_SESSION_BUS_SOCKET", "value": "/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener" }, { "name": "DBUS_SESSION_BUS_ADDRESS", "value": "unix:path=/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener" }, { "name": "DISPLAY", "value": "/private/tmp/com.apple.launchd.Hc5K4REQrS/org.xquartz:0" }, { "name": "HOME", "value": "/Users/dehan" }, { "name": "JENV_LOADED", "value": "1" }, { "name": "JENV_SHELL", "value": "zsh" }, { "name": "LESS", "value": "-R" }, { "name": "LOGNAME", "value": "dehan" }, { "name": "LSCOLORS", "value": "Gxfxcxdxbxegedabagacad" }, { "name": "LaunchInstanceID", "value": "531A6E51-EB2A-4D34-A127-B20DC5DEB57B" }, { "name": "MallocNanoZone", "value": "0" }, { "name": "OLDPWD", "value": "/" }, { "name": "OPENAI_API_KEY", "value": "" }, { "name": "ORIGINAL_XDG_CURRENT_DESKTOP", "value": "undefined" }, { "name": "P9K_SSH", "value": "0" }, { "name": "PAGER", "value": "less" }, { "name": "PATH", "value": "/Users/dehan/miniconda3/bin:/Users/dehan/miniconda3/condabin:/usr/local/opt/llvm/bin:/Users/dehan/.jenv/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/usr/local/Cellar/git/*/bin:/Users/dehan/.jenv/bin:/Users/dehan/Documents/30-developments/shellscript" }, { "name": "PWD", "value": "/" }, { "name": "SECURITYSESSIONID", "value": "186a4" }, { "name": "SHELL", "value": "/bin/zsh" }, { "name": "SHLVL", "value": "0" }, { "name": "SSH_AUTH_SOCK", "value": "/private/tmp/com.apple.launchd.JiN6Kik8wK/Listeners" }, { "name": "TMPDIR", "value": "/var/folders/_d/bsqrml45219_br128q2pgsg40000gn/T/" }, { "name": "USER", "value": "dehan" }, { "name": "VSCODE_AMD_ENTRYPOINT", "value": "vs/workbench/api/node/extensionHostProcess" }, { "name": "VSCODE_CODE_CACHE_PATH", "value": "/Users/dehan/Library/Application Support/Code/CachedData/b58957e67ee1e712cebf466b995adf4c5307b2bd" }, { "name": "VSCODE_CRASH_REPORTER_PROCESS_TYPE", "value": "extensionHost" }, { "name": "VSCODE_CWD", "value": "/" }, { "name": "VSCODE_HANDLES_UNCAUGHT_ERRORS", "value": "true" }, { "name": "VSCODE_IPC_HOOK", "value": "/Users/dehan/Library/Application Support/Code/1.89-main.sock" }, { "name": "VSCODE_NLS_CONFIG", "value": "{\"locale\":\"en-us\",\"osLocale\":\"en-ca\",\"availableLanguages\":{},\"_languagePackSupport\":true}" }, { "name": "VSCODE_PID", "value": "90495" }, { "name": "XPC_FLAGS", "value": "0x0" }, { "name": "XPC_SERVICE_NAME", "value": "application.com.microsoft.VSCode.148111909.148142167" }, { "name": "ZSH", "value": "/Users/dehan/.oh-my-zsh" }, { "name": "_", "value": "/Applications/Visual Studio Code.app/Contents/MacOS/Electron" }, { "name": "__CFBundleIdentifier", "value": "com.microsoft.VSCode" }, { "name": "__CF_USER_TEXT_ENCODING", "value": "0x1F5:0x0:0x52" }, { "name": "all_proxy", "value": "socks5://127.0.0.1:6153" }, { "name": "http_proxy", "value": "http://127.0.0.1:6152" }, { "name": "https_proxy", "value": "http://127.0.0.1:6152" }, { "name": "ELECTRON_RUN_AS_NODE", "value": "1" }, { "name": "VSCODE_L10N_BUNDLE_LOCATION", "value": "" } ] } |
@DehanLUO , thanks for your reply! Please try set iTerm2 as your integrated terminal in VS Code by adding the following line to your settings.json: If the above doesn't work, you can create a custom task to open iTerm2. In your tasks.json, you might add something like:
After making changes, make sure to restart Visual Studio Code to ensure the new settings take effect. |
@Amy-Li03 , thank you for your continued assistance and valuable configuration guidance. Follow your instructions, I initially add In response, I have retained the Configuration Overviewsettings.json```json { "terminal.external.osxExec": "iTerm.app", "terminal.explorerKind": "external", "terminal.integrated.shell.osx": "/usr/bin/open -a iTerm", "terminal.integrated.defaultProfile.osx": "zsh", "terminal.integrated.profiles.osx": { "zsh": { "path": "/usr/bin/open", "args": [ "-a", "iTerm", "--args", "/bin/zsh", "-l" ] }, }, "cmake.options.statusBarVisibility": "visible", // Show the CMake status bar option at full size. "cmake.debugConfig": { // The debug configuration to use when debugging a target. "MIMode": "lldb", "miDebuggerPath": "", //? Path to lldb debugger. "stopAtEntry": true, // Stop at the entry point of the target. "console": "externalTerminal", //? VS Code's integrated terminal. "externalConsole": true, // Launch an external console for debugging. "externalConsoleCommand": "/usr/bin/open -a iTerm", //TODO 配合调试 "logging": { // Tell what types of messages should be logged to the console. "trace": true, "engineLogging": true, "traceResponse": true, }, }, "cmake.loggingLevel": "debug" } ``` .vscode/tasks.json```json { "version": "2.0.0", "tasks": [ { "label": "Open iTerm", "type": "shell", "command": "/usr/bin/open", "args": [ "-a", "iTerm" ], "problemMatcher": [] } ] } ``` ResultsDespite implementing these adjustments, I am still encountering the same issue: when initiating debugging through CMake Tools, Visual Studio Code continues to open the default macOS Terminal application instead of iTerm2. Below is the log output from my recent debugging session: Debug Log[main] Building folder: /Users/dehan/Documents/30-developments/cxx/build MyCMakeProject [main] Saving open files before configure/build [build] Starting build [driver] Start build MyCMakeProject [proc] Executing command: /usr/local/bin/cmake --build /Users/dehan/Documents/30-developments/cxx/build --parallel 18 --target MyCMakeProject -- [proc] with environment: {"COMMAND_MODE":"unix2003","CONDA_DEFAULT_ENV":"base","CONDA_EXE":"/Users/dehan/miniconda3/bin/conda","CONDA_PREFIX":"/Users/dehan/miniconda3","CONDA_PROMPT_MODIFIER":"(base) ","CONDA_PYTHON_EXE":"/Users/dehan/miniconda3/bin/python","CONDA_SHLVL":"1","DBUS_LAUNCHD_SESSION_BUS_SOCKET":"/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener","DBUS_SESSION_BUS_ADDRESS":"unix:path=/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener","DISPLAY":"/private/tmp/com.apple.launchd.Hc5K4REQrS/org.xquartz:0","HOME":"/Users/dehan","JENV_LOADED":"1","JENV_SHELL":"zsh","LESS":"-R","LOGNAME":"dehan","LSCOLORS":"Gxfxcxdxbxegedabagacad","LaunchInstanceID":"531A6E51-EB2A-4D34-A127-B20DC5DEB57B","MallocNanoZone":"0","OPENAI_API_KEY":"","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","P9K_SSH":"0","PAGER":"less","PATH":"/Users/dehan/miniconda3/bin:/Users/dehan/miniconda3/condabin:/usr/local/opt/llvm/bin:/Users/dehan/.jenv/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/usr/local/Cellar/git/*/bin:/Users/dehan/.jenv/bin:/Users/dehan/Documents/30-developments/shellscript","PWD":"/","SECURITYSESSIONID":"186a4","SHELL":"/bin/zsh","SHLVL":"0","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.JiN6Kik8wK/Listeners","TMPDIR":"/var/folders/_d/bsqrml45219_br128q2pgsg40000gn/T/","USER":"dehan","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"/Users/dehan/Library/Application Support/Code/CachedData/b58957e67ee1e712cebf466b995adf4c5307b2bd","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/Users/dehan/Library/Application Support/Code/1.89-main.sock","VSCODE_NLS_CONFIG":"{\"locale\":\"en-us\",\"osLocale\":\"en-ca\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_PID":"22615","XPC_FLAGS":"0x0","XPC_SERVICE_NAME":"application.com.microsoft.VSCode.148111909.148142167","ZSH":"/Users/dehan/.oh-my-zsh","_":"/Applications/Visual Studio Code.app/Contents/MacOS/Electron","__CFBundleIdentifier":"com.microsoft.VSCode","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x52","all_proxy":"socks5://127.0.0.1:6153","http_proxy":"http://127.0.0.1:6152","https_proxy":"http://127.0.0.1:6152","ELECTRON_RUN_AS_NODE":"1","VSCODE_L10N_BUNDLE_LOCATION":"","VSCODE_DOTNET_INSTALL_TOOL_ORIGINAL_HOME":"/Users/dehan"} [build] [ 50%] Building CXX object CMakeFiles/MyCMakeProject.dir/main.cpp.o [build] [100%] Linking CXX executable MyCMakeProject [build] [100%] Built target MyCMakeProject [driver] Build completed: 00:00:01.497 [cmakefileapi-parser] Read reply folder: /Users/dehan/Documents/30-developments/cxx/build/.cmake/api/v1/reply [cmakefileapi-parser] Found index files: ["cache-v2-70987f7aa6539348b001.json","cmakeFiles-v1-de2bdfbcfff52bdbe080.json","codemodel-v2-eaa636688ff179d0b4f1.json","directory-.-Debug-f5ebdc15457944623624.json","index-2024-11-01T08-35-09-0778.json","target-Continuous-Debug-997bcb5a3b9dca8359da.json","target-ContinuousBuild-Debug-4584567a169363cf9ad1.json","target-ContinuousConfigure-Debug-0e19c646cd0e63ee0653.json","target-ContinuousCoverage-Debug-409799b9ad5f909e7011.json","target-ContinuousMemCheck-Debug-143e696c442b7ecf3668.json","target-ContinuousStart-Debug-14e6319968faf97d184f.json","target-ContinuousSubmit-Debug-c93e0345de476d497509.json","target-ContinuousTest-Debug-808bd8006ac9fcdb5431.json","target-ContinuousUpdate-Debug-d71e36f8aa62f2f86801.json","target-Experimental-Debug-fbb5cd71ecf75b6a4820.json","target-ExperimentalBuild-Debug-64908f40ac1907e29d8e.json","target-ExperimentalConfigure-Debug-b5c2c5de0cdbfe1c9f1a.json","target-ExperimentalCoverage-Debug-4a157e3dcb28b73180d4.json","target-ExperimentalMemCheck-Debug-34bbd71efeab0640972e.json","target-ExperimentalStart-Debug-3818a2632fcd6e7974d3.json","target-ExperimentalSubmit-Debug-3674090355521545f249.json","target-ExperimentalTest-Debug-b29f9504bf03f854dc39.json","target-ExperimentalUpdate-Debug-952f071f95b176b87e05.json","target-MyCMakeProject-Debug-e87d582e88bb97bc4a5f.json","target-Nightly-Debug-5d49eaaabb7237caa315.json","target-NightlyBuild-Debug-433145e83c90fa22cbbc.json","target-NightlyConfigure-Debug-4c04a9dd60fe59d03c6c.json","target-NightlyCoverage-Debug-f0c7671d4d0f4f6916fa.json","target-NightlyMemCheck-Debug-c3bf90a717f63f0c181c.json","target-NightlyMemoryCheck-Debug-1770cd003485e290d59b.json","target-NightlyStart-Debug-d700a5bc3fd2bc0e9a51.json","target-NightlySubmit-Debug-e1cb7c79372814a87594.json","target-NightlyTest-Debug-cb0cd9dc89bb1cd3b2ed.json","target-NightlyUpdate-Debug-b5b8d465b2b87eeb82cc.json","toolchains-v1-ecad62d51dcbd86df9ba.json"] [extension] Not updating the configuration provider because "C_Cpp.intelliSenseEngine" is set to "Disabled" [build] Build finished with exit code 0 [cache] Reading CMake cache file /Users/dehan/Documents/30-developments/cxx/build/CMakeCache.txt [cache] Parsing CMake cache string [proc] Executing command: /Users/dehan/.vscode/extensions/ms-vscode.cpptools-1.22.10-darwin-x64/debugAdapters/lldb-mi/bin/lldb-mi --version [proc] Executing command: /Users/dehan/.vscode/extensions/ms-vscode.cpptools-1.22.10-darwin-x64/debugAdapters/lldb-mi/bin/lldb-mi --version [main] Debug configuration from cache: {"type":"cppdbg","name":"Debug MyCMakeProject","request":"launch","cwd":"/Users/dehan/Documents/30-developments/cxx/build","args":[],"MIMode":"lldb","miDebuggerPath":"/Users/dehan/.vscode/extensions/ms-vscode.cpptools-1.22.10-darwin-x64/debugAdapters/lldb-mi/bin/lldb-mi","program":"/Users/dehan/Documents/30-developments/cxx/build/MyCMakeProject"} [main] Starting debugger with following configuration. {"workspace":"file:///Users/dehan/Documents/30-developments/cxx","config":{"type":"cppdbg","name":"Debug MyCMakeProject","request":"launch","cwd":"/Users/dehan/Documents/30-developments/cxx/build","args":[],"MIMode":"lldb","miDebuggerPath":"","program":"/Users/dehan/Documents/30-developments/cxx/build/MyCMakeProject","stopAtEntry":true,"console":"externalTerminal","externalConsole":true,"externalConsoleCommand":"/usr/bin/open -a iTerm","logging":{"trace":true,"engineLogging":true,"traceResponse":true},"environment":[{"name":"COMMAND_MODE","value":"unix2003"},{"name":"CONDA_DEFAULT_ENV","value":"base"},{"name":"CONDA_EXE","value":"/Users/dehan/miniconda3/bin/conda"},{"name":"CONDA_PREFIX","value":"/Users/dehan/miniconda3"},{"name":"CONDA_PROMPT_MODIFIER","value":"(base) "},{"name":"CONDA_PYTHON_EXE","value":"/Users/dehan/miniconda3/bin/python"},{"name":"CONDA_SHLVL","value":"1"},{"name":"DBUS_LAUNCHD_SESSION_BUS_SOCKET","value":"/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener"},{"name":"DBUS_SESSION_BUS_ADDRESS","value":"unix:path=/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener"},{"name":"DISPLAY","value":"/private/tmp/com.apple.launchd.Hc5K4REQrS/org.xquartz:0"},{"name":"HOME","value":"/Users/dehan"},{"name":"JENV_LOADED","value":"1"},{"name":"JENV_SHELL","value":"zsh"},{"name":"LESS","value":"-R"},{"name":"LOGNAME","value":"dehan"},{"name":"LSCOLORS","value":"Gxfxcxdxbxegedabagacad"},{"name":"LaunchInstanceID","value":"531A6E51-EB2A-4D34-A127-B20DC5DEB57B"},{"name":"MallocNanoZone","value":"0"},{"name":"OPENAI_API_KEY","value":""},{"name":"ORIGINAL_XDG_CURRENT_DESKTOP","value":"undefined"},{"name":"P9K_SSH","value":"0"},{"name":"PAGER","value":"less"},{"name":"PATH","value":"/Users/dehan/miniconda3/bin:/Users/dehan/miniconda3/condabin:/usr/local/opt/llvm/bin:/Users/dehan/.jenv/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/usr/local/Cellar/git/*/bin:/Users/dehan/.jenv/bin:/Users/dehan/Documents/30-developments/shellscript"},{"name":"PWD","value":"/"},{"name":"SECURITYSESSIONID","value":"186a4"},{"name":"SHELL","value":"/bin/zsh"},{"name":"SHLVL","value":"0"},{"name":"SSH_AUTH_SOCK","value":"/private/tmp/com.apple.launchd.JiN6Kik8wK/Listeners"},{"name":"TMPDIR","value":"/var/folders/_d/bsqrml45219_br128q2pgsg40000gn/T/"},{"name":"USER","value":"dehan"},{"name":"VSCODE_AMD_ENTRYPOINT","value":"vs/workbench/api/node/extensionHostProcess"},{"name":"VSCODE_CODE_CACHE_PATH","value":"/Users/dehan/Library/Application Support/Code/CachedData/b58957e67ee1e712cebf466b995adf4c5307b2bd"},{"name":"VSCODE_CRASH_REPORTER_PROCESS_TYPE","value":"extensionHost"},{"name":"VSCODE_CWD","value":"/"},{"name":"VSCODE_HANDLES_UNCAUGHT_ERRORS","value":"true"},{"name":"VSCODE_IPC_HOOK","value":"/Users/dehan/Library/Application Support/Code/1.89-main.sock"},{"name":"VSCODE_NLS_CONFIG","value":"{\"locale\":\"en-us\",\"osLocale\":\"en-ca\",\"availableLanguages\":{},\"_languagePackSupport\":true}"},{"name":"VSCODE_PID","value":"22615"},{"name":"XPC_FLAGS","value":"0x0"},{"name":"XPC_SERVICE_NAME","value":"application.com.microsoft.VSCode.148111909.148142167"},{"name":"ZSH","value":"/Users/dehan/.oh-my-zsh"},{"name":"_","value":"/Applications/Visual Studio Code.app/Contents/MacOS/Electron"},{"name":"__CFBundleIdentifier","value":"com.microsoft.VSCode"},{"name":"__CF_USER_TEXT_ENCODING","value":"0x1F5:0x0:0x52"},{"name":"all_proxy","value":"socks5://127.0.0.1:6153"},{"name":"http_proxy","value":"http://127.0.0.1:6152"},{"name":"https_proxy","value":"http://127.0.0.1:6152"},{"name":"ELECTRON_RUN_AS_NODE","value":"1"},{"name":"VSCODE_L10N_BUNDLE_LOCATION","value":""},{"name":"VSCODE_DOTNET_INSTALL_TOOL_ORIGINAL_HOME","value":"/Users/dehan"}]}} [extension] [3731] cmake.debugTarget finished (returned {"id":"6f3b2b91-d83c-4fc4-b083-c55956116c21","type":"cppdbg","name":"Debug MyCMakeProject","workspaceFolder":{"uri":{"$mid":1,"fsPath":"/Users/dehan/Documents/30-developments/cxx","external":"file:///Users/dehan/Documents/30-developments/cxx","path":"/Users/dehan/Documents/30-developments/cxx","scheme":"file"},"name":"cxx","index":0},"configuration":{"type":"cppdbg","name":"Debug MyCMakeProject","request":"launch","cwd":"/Users/dehan/Documents/30-developments/cxx/build","args":[],"MIMode":"lldb","miDebuggerPath":"","program":"/Users/dehan/Documents/30-developments/cxx/build/MyCMakeProject","stopAtEntry":true,"console":"externalTerminal","externalConsole":true,"externalConsoleCommand":"/usr/bin/open -a iTerm","logging":{"trace":true,"engineLogging":true,"traceResponse":true},"environment":[{"name":"COMMAND_MODE","value":"unix2003"},{"name":"CONDA_DEFAULT_ENV","value":"base"},{"name":"CONDA_EXE","value":"/Users/dehan/miniconda3/bin/conda"},{"name":"CONDA_PREFIX","value":"/Users/dehan/miniconda3"},{"name":"CONDA_PROMPT_MODIFIER","value":"(base) "},{"name":"CONDA_PYTHON_EXE","value":"/Users/dehan/miniconda3/bin/python"},{"name":"CONDA_SHLVL","value":"1"},{"name":"DBUS_LAUNCHD_SESSION_BUS_SOCKET","value":"/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener"},{"name":"DBUS_SESSION_BUS_ADDRESS","value":"unix:path=/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener"},{"name":"DISPLAY","value":"/private/tmp/com.apple.launchd.Hc5K4REQrS/org.xquartz:0"},{"name":"HOME","value":"/Users/dehan"},{"name":"JENV_LOADED","value":"1"},{"name":"JENV_SHELL","value":"zsh"},{"name":"LESS","value":"-R"},{"name":"LOGNAME","value":"dehan"},{"name":"LSCOLORS","value":"Gxfxcxdxbxegedabagacad"},{"name":"LaunchInstanceID","value":"531A6E51-EB2A-4D34-A127-B20DC5DEB57B"},{"name":"MallocNanoZone","value":"0"},{"name":"OPENAI_API_KEY","value":""},{"name":"ORIGINAL_XDG_CURRENT_DESKTOP","value":"undefined"},{"name":"P9K_SSH","value":"0"},{"name":"PAGER","value":"less"},{"name":"PATH","value":"/Users/dehan/miniconda3/bin:/Users/dehan/miniconda3/condabin:/usr/local/opt/llvm/bin:/Users/dehan/.jenv/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/usr/local/Cellar/git/*/bin:/Users/dehan/.jenv/bin:/Users/dehan/Documents/30-developments/shellscript"},{"name":"PWD","value":"/"},{"name":"SECURITYSESSIONID","value":"186a4"},{"name":"SHELL","value":"/bin/zsh"},{"name":"SHLVL","value":"0"},{"name":"SSH_AUTH_SOCK","value":"/private/tmp/com.apple.launchd.JiN6Kik8wK/Listeners"},{"name":"TMPDIR","value":"/var/folders/_d/bsqrml45219_br128q2pgsg40000gn/T/"},{"name":"USER","value":"dehan"},{"name":"VSCODE_AMD_ENTRYPOINT","value":"vs/workbench/api/node/extensionHostProcess"},{"name":"VSCODE_CODE_CACHE_PATH","value":"/Users/dehan/Library/Application Support/Code/CachedData/b58957e67ee1e712cebf466b995adf4c5307b2bd"},{"name":"VSCODE_CRASH_REPORTER_PROCESS_TYPE","value":"extensionHost"},{"name":"VSCODE_CWD","value":"/"},{"name":"VSCODE_HANDLES_UNCAUGHT_ERRORS","value":"true"},{"name":"VSCODE_IPC_HOOK","value":"/Users/dehan/Library/Application Support/Code/1.89-main.sock"},{"name":"VSCODE_NLS_CONFIG","value":"{\"locale\":\"en-us\",\"osLocale\":\"en-ca\",\"availableLanguages\":{},\"_languagePackSupport\":true}"},{"name":"VSCODE_PID","value":"22615"},{"name":"XPC_FLAGS","value":"0x0"},{"name":"XPC_SERVICE_NAME","value":"application.com.microsoft.VSCode.148111909.148142167"},{"name":"ZSH","value":"/Users/dehan/.oh-my-zsh"},{"name":"_","value":"/Applications/Visual Studio Code.app/Contents/MacOS/Electron"},{"name":"__CFBundleIdentifier","value":"com.microsoft.VSCode"},{"name":"__CF_USER_TEXT_ENCODING","value":"0x1F5:0x0:0x52"},{"name":"all_proxy","value":"socks5://127.0.0.1:6153"},{"name":"http_proxy","value":"http://127.0.0.1:6152"},{"name":"https_proxy","value":"http://127.0.0.1:6152"},{"name":"ELECTRON_RUN_AS_NODE","value":"1"},{"name":"VSCODE_L10N_BUNDLE_LOCATION","value":""},{"name":"VSCODE_DOTNET_INSTALL_TOOL_ORIGINAL_HOME","value":"/Users/dehan"}]}}) vscode-cpptools outputintelliSenseEngine is disabled Launch configuration: { "type": "cppdbg", "name": "Debug MyCMakeProject", "request": "launch", "cwd": "/Users/dehan/Documents/30-developments/cxx/build", "args": [], "MIMode": "lldb", "miDebuggerPath": "", "program": "/Users/dehan/Documents/30-developments/cxx/build/MyCMakeProject", "stopAtEntry": true, "console": "externalTerminal", "externalConsole": true, "externalConsoleCommand": "/usr/bin/open -a iTerm", "logging": { "trace": true, "engineLogging": true, "traceResponse": true }, "environment": [ { "name": "COMMAND_MODE", "value": "unix2003" }, { "name": "CONDA_DEFAULT_ENV", "value": "base" }, { "name": "CONDA_EXE", "value": "/Users/dehan/miniconda3/bin/conda" }, { "name": "CONDA_PREFIX", "value": "/Users/dehan/miniconda3" }, { "name": "CONDA_PROMPT_MODIFIER", "value": "(base) " }, { "name": "CONDA_PYTHON_EXE", "value": "/Users/dehan/miniconda3/bin/python" }, { "name": "CONDA_SHLVL", "value": "1" }, { "name": "DBUS_LAUNCHD_SESSION_BUS_SOCKET", "value": "/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener" }, { "name": "DBUS_SESSION_BUS_ADDRESS", "value": "unix:path=/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener" }, { "name": "DISPLAY", "value": "/private/tmp/com.apple.launchd.Hc5K4REQrS/org.xquartz:0" }, { "name": "HOME", "value": "/Users/dehan" }, { "name": "JENV_LOADED", "value": "1" }, { "name": "JENV_SHELL", "value": "zsh" }, { "name": "LESS", "value": "-R" }, { "name": "LOGNAME", "value": "dehan" }, { "name": "LSCOLORS", "value": "Gxfxcxdxbxegedabagacad" }, { "name": "LaunchInstanceID", "value": "531A6E51-EB2A-4D34-A127-B20DC5DEB57B" }, { "name": "MallocNanoZone", "value": "0" }, { "name": "OPENAI_API_KEY", "value": "" }, { "name": "ORIGINAL_XDG_CURRENT_DESKTOP", "value": "undefined" }, { "name": "P9K_SSH", "value": "0" }, { "name": "PAGER", "value": "less" }, { "name": "PATH", "value": "/Users/dehan/miniconda3/bin:/Users/dehan/miniconda3/condabin:/usr/local/opt/llvm/bin:/Users/dehan/.jenv/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/usr/local/Cellar/git/*/bin:/Users/dehan/.jenv/bin:/Users/dehan/Documents/30-developments/shellscript" }, { "name": "PWD", "value": "/" }, { "name": "SECURITYSESSIONID", "value": "186a4" }, { "name": "SHELL", "value": "/bin/zsh" }, { "name": "SHLVL", "value": "0" }, { "name": "SSH_AUTH_SOCK", "value": "/private/tmp/com.apple.launchd.JiN6Kik8wK/Listeners" }, { "name": "TMPDIR", "value": "/var/folders/_d/bsqrml45219_br128q2pgsg40000gn/T/" }, { "name": "USER", "value": "dehan" }, { "name": "VSCODE_AMD_ENTRYPOINT", "value": "vs/workbench/api/node/extensionHostProcess" }, { "name": "VSCODE_CODE_CACHE_PATH", "value": "/Users/dehan/Library/Application Support/Code/CachedData/b58957e67ee1e712cebf466b995adf4c5307b2bd" }, { "name": "VSCODE_CRASH_REPORTER_PROCESS_TYPE", "value": "extensionHost" }, { "name": "VSCODE_CWD", "value": "/" }, { "name": "VSCODE_HANDLES_UNCAUGHT_ERRORS", "value": "true" }, { "name": "VSCODE_IPC_HOOK", "value": "/Users/dehan/Library/Application Support/Code/1.89-main.sock" }, { "name": "VSCODE_NLS_CONFIG", "value": "{\"locale\":\"en-us\",\"osLocale\":\"en-ca\",\"availableLanguages\":{},\"_languagePackSupport\":true}" }, { "name": "VSCODE_PID", "value": "22615" }, { "name": "XPC_FLAGS", "value": "0x0" }, { "name": "XPC_SERVICE_NAME", "value": "application.com.microsoft.VSCode.148111909.148142167" }, { "name": "ZSH", "value": "/Users/dehan/.oh-my-zsh" }, { "name": "_", "value": "/Applications/Visual Studio Code.app/Contents/MacOS/Electron" }, { "name": "__CFBundleIdentifier", "value": "com.microsoft.VSCode" }, { "name": "__CF_USER_TEXT_ENCODING", "value": "0x1F5:0x0:0x52" }, { "name": "all_proxy", "value": "socks5://127.0.0.1:6153" }, { "name": "http_proxy", "value": "http://127.0.0.1:6152" }, { "name": "https_proxy", "value": "http://127.0.0.1:6152" }, { "name": "ELECTRON_RUN_AS_NODE", "value": "1" }, { "name": "VSCODE_L10N_BUNDLE_LOCATION", "value": "" }, { "name": "VSCODE_DOTNET_INSTALL_TOOL_ORIGINAL_HOME", "value": "/Users/dehan" } ] } Additionally, after applying the configurations above, I encountered another issue when attempting to open a new terminal. Each time I use the default shortcut At this stage, I would appreciate any additional guidance or alternative solutions you may suggest to help resolve these persistent issues. Thank you again for your patience and support. |
Hi @gcampbell-msft, do you have any suggestions at here? |
@Amy-Li03 This sounds like a bug on our end that will require investigation into how we launch our debug configuration. I'll mark the issue as such. |
Brief Issue Summary
Description
I am attempting to debug a C++ project within Visual Studio Code on macOS Sequoia 15.0.1. I have configured my Visual Studio Code setup to use iTerm2 as the external console for debugging c++ code. However, CMake Tools still defaults to macOS Terminal, disregarding my custom terminal preference.
Configuration Details
"externalConsole": true"
within mysettings.json
to facilitate the use of an external terminal, which currently opens the default macOS Terminal application and allows for expected interaction with my C++ project.settings.json
. This configuration successfully redirects to iTerm2 when I manually open files in an external terminal by right-clicking and selecting "Open in External Terminal" or using the⇧ + ⌘ + c
shortcut.Issue
Despite these settings, CMake Tools continues to initiate the default macOS Terminal application rather than iTerm2 when the debugger is launched.
Discover
vscode-cpptools output
.vscode/launch.json
with the following setup:.vscode/launch.json
F5
to launch debugging still opens the default macOS Terminal instead of iTerm2. Whether the issue is occurring because vscode-cpptools itself has this limitation, which then causes the same issue to appear in CMake Tools when referencing it for debugging?CMake Tools Diagnostics
{
"os": "darwin",
"vscodeVersion": "1.89.0",
"cmtVersion": "1.19.52",
"configurations": [
{
"folder": "/Users/dehan/Documents/30-developments/cxx",
"cmakeVersion": "3.30.5",
"configured": true,
"generator": "Unix Makefiles",
"usesPresets": true,
"compilers": {
"C": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc",
"CXX": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++"
}
}
],
"cpptoolsIntegration": {
"isReady": false,
"hasCodeModel": false,
"activeBuildType": "",
"buildTypesSeen": [],
"requests": [],
"responses": [],
"partialMatches": [],
"targetCount": 0,
"executablesCount": 0,
"librariesCount": 0,
"targets": []
},
"settings": [
{
"communicationMode": "automatic",
"useCMakePresets": "auto",
"configureOnOpen": true
}
]
}
Debug Log
[main] The folder containing the CMake cache is missing. The cache will be regenerated.
[main] Configuring project: cxx
[main] Saving open files before configure/build
[driver] Start configure
[driver] Running pre-configure checks and steps
[cmakefileapi-driver] Configuring using preset
[cmakefileapi-driver] Invoking CMake /usr/local/bin/cmake with arguments ["-DCMAKE_BUILD_TYPE=Debug","-DCMAKE_EXPORT_COMPILE_COMMANDS=Yes","-S/Users/dehan/Documents/30-developments/cxx","-B/Users/dehan/Documents/30-developments/cxx/build","-G","Unix Makefiles"]
[proc] Executing command: /usr/local/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=Yes -S/Users/dehan/Documents/30-developments/cxx -B/Users/dehan/Documents/30-developments/cxx/build -G "Unix Makefiles"
[proc] with environment: {"COMMAND_MODE":"unix2003","CONDA_DEFAULT_ENV":"base","CONDA_EXE":"/Users/dehan/miniconda3/bin/conda","CONDA_PREFIX":"/Users/dehan/miniconda3","CONDA_PROMPT_MODIFIER":"(base) ","CONDA_PYTHON_EXE":"/Users/dehan/miniconda3/bin/python","CONDA_SHLVL":"1","DBUS_LAUNCHD_SESSION_BUS_SOCKET":"/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener","DBUS_SESSION_BUS_ADDRESS":"unix:path=/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener","DISPLAY":"/private/tmp/com.apple.launchd.Hc5K4REQrS/org.xquartz:0","HOME":"/Users/dehan","JENV_LOADED":"1","JENV_SHELL":"zsh","LESS":"-R","LOGNAME":"dehan","LSCOLORS":"Gxfxcxdxbxegedabagacad","LaunchInstanceID":"531A6E51-EB2A-4D34-A127-B20DC5DEB57B","MallocNanoZone":"0","OPENAI_API_KEY":"","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","P9K_SSH":"0","PAGER":"less","PATH":"/Users/dehan/miniconda3/bin:/Users/dehan/miniconda3/condabin:/usr/local/opt/llvm/bin:/Users/dehan/.jenv/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/usr/local/Cellar/git//bin:/Users/dehan/.jenv/bin:/Users/dehan/Documents/30-developments/shellscript","PWD":"/","SECURITYSESSIONID":"186a4","SHELL":"/bin/zsh","SHLVL":"0","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.JiN6Kik8wK/Listeners","TMPDIR":"/var/folders/_d/bsqrml45219_br128q2pgsg40000gn/T/","USER":"dehan","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"/Users/dehan/Library/Application Support/Code/CachedData/b58957e67ee1e712cebf466b995adf4c5307b2bd","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/Users/dehan/Library/Application Support/Code/1.89-main.sock","VSCODE_NLS_CONFIG":"{"locale":"en-us","osLocale":"en-ca","availableLanguages":{},"languagePackSupport":true}","VSCODE_PID":"90495","XPC_FLAGS":"0x0","XPC_SERVICE_NAME":"application.com.microsoft.VSCode.148111909.148142167","ZSH":"/Users/dehan/.oh-my-zsh","":"/Applications/Visual Studio Code.app/Contents/MacOS/Electron","__CFBundleIdentifier":"com.microsoft.VSCode","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x52","all_proxy":"socks5://127.0.0.1:6153","http_proxy":"http://127.0.0.1:6152","https_proxy":"http://127.0.0.1:6152","ELECTRON_RUN_AS_NODE":"1","VSCODE_L10N_BUNDLE_LOCATION":"","VSCODE_DOTNET_INSTALL_TOOL_ORIGINAL_HOME":"/Users/dehan"}
[cmake] CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
[cmake] Compatibility with CMake < 3.5 will be removed from a future version of
[cmake] CMake.
[cmake]
[cmake] Update the VERSION argument value or use a ... suffix to tell
[cmake] CMake that the project does not need compatibility with older versions.
[cmake]
[cmake]
[cmake] -- The C compiler identification is AppleClang 16.0.0.16000026
[cmake] -- The CXX compiler identification is AppleClang 16.0.0.16000026
[cmake] -- Detecting C compiler ABI info
[cmake] -- Detecting C compiler ABI info - done
[cmake] -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
[cmake] -- Detecting C compile features
[cmake] -- Detecting C compile features - done
[cmake] -- Detecting CXX compiler ABI info
[cmake] -- Detecting CXX compiler ABI info - done
[cmake] -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
[cmake] -- Detecting CXX compile features
[cmake] -- Detecting CXX compile features - done
[cmake] -- Configuring done (2.3s)
[cmake] -- Generating done (0.2s)
[cmake] -- Build files have been written to: /Users/dehan/Documents/30-developments/cxx/build
[cmakefileapi-parser] Read reply folder: /Users/dehan/Documents/30-developments/cxx/build/.cmake/api/v1/reply
[cmakefileapi-parser] Found index files: ["cache-v2-8e8186b667df71722ac1.json","cmakeFiles-v1-de2bdfbcfff52bdbe080.json","codemodel-v2-2bbe7bc8195ef23e32cc.json","directory-.-Debug-f5ebdc15457944623624.json","index-2024-10-31T03-44-05-0782.json","target-Continuous-Debug-997bcb5a3b9dca8359da.json","target-ContinuousBuild-Debug-4584567a169363cf9ad1.json","target-ContinuousConfigure-Debug-0e19c646cd0e63ee0653.json","target-ContinuousCoverage-Debug-409799b9ad5f909e7011.json","target-ContinuousMemCheck-Debug-143e696c442b7ecf3668.json","target-ContinuousStart-Debug-14e6319968faf97d184f.json","target-ContinuousSubmit-Debug-c93e0345de476d497509.json","target-ContinuousTest-Debug-808bd8006ac9fcdb5431.json","target-ContinuousUpdate-Debug-d71e36f8aa62f2f86801.json","target-Experimental-Debug-fbb5cd71ecf75b6a4820.json","target-ExperimentalBuild-Debug-64908f40ac1907e29d8e.json","target-ExperimentalConfigure-Debug-b5c2c5de0cdbfe1c9f1a.json","target-ExperimentalCoverage-Debug-4a157e3dcb28b73180d4.json","target-ExperimentalMemCheck-Debug-34bbd71efeab0640972e.json","target-ExperimentalStart-Debug-3818a2632fcd6e7974d3.json","target-ExperimentalSubmit-Debug-3674090355521545f249.json","target-ExperimentalTest-Debug-b29f9504bf03f854dc39.json","target-ExperimentalUpdate-Debug-952f071f95b176b87e05.json","target-MyCMakeProject-Debug-e87d582e88bb97bc4a5f.json","target-Nightly-Debug-5d49eaaabb7237caa315.json","target-NightlyBuild-Debug-433145e83c90fa22cbbc.json","target-NightlyConfigure-Debug-4c04a9dd60fe59d03c6c.json","target-NightlyCoverage-Debug-f0c7671d4d0f4f6916fa.json","target-NightlyMemCheck-Debug-c3bf90a717f63f0c181c.json","target-NightlyMemoryCheck-Debug-1770cd003485e290d59b.json","target-NightlyStart-Debug-d700a5bc3fd2bc0e9a51.json","target-NightlySubmit-Debug-e1cb7c79372814a87594.json","target-NightlyTest-Debug-cb0cd9dc89bb1cd3b2ed.json","target-NightlyUpdate-Debug-b5b8d465b2b87eeb82cc.json","toolchains-v1-ecad62d51dcbd86df9ba.json"]
[extension] Not updating the configuration provider because "C_Cpp.intelliSenseEngine" is set to "Disabled"
[main] Building folder: /Users/dehan/Documents/30-developments/cxx/build MyCMakeProject
[main] Saving open files before configure/build
[build] Starting build
[driver] Start build MyCMakeProject
[proc] Executing command: /usr/local/bin/cmake --build /Users/dehan/Documents/30-developments/cxx/build --parallel 18 --target MyCMakeProject --
[proc] with environment: {"COMMAND_MODE":"unix2003","CONDA_DEFAULT_ENV":"base","CONDA_EXE":"/Users/dehan/miniconda3/bin/conda","CONDA_PREFIX":"/Users/dehan/miniconda3","CONDA_PROMPT_MODIFIER":"(base) ","CONDA_PYTHON_EXE":"/Users/dehan/miniconda3/bin/python","CONDA_SHLVL":"1","DBUS_LAUNCHD_SESSION_BUS_SOCKET":"/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener","DBUS_SESSION_BUS_ADDRESS":"unix:path=/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener","DISPLAY":"/private/tmp/com.apple.launchd.Hc5K4REQrS/org.xquartz:0","HOME":"/Users/dehan","JENV_LOADED":"1","JENV_SHELL":"zsh","LESS":"-R","LOGNAME":"dehan","LSCOLORS":"Gxfxcxdxbxegedabagacad","LaunchInstanceID":"531A6E51-EB2A-4D34-A127-B20DC5DEB57B","MallocNanoZone":"0","OPENAI_API_KEY":"","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","P9K_SSH":"0","PAGER":"less","PATH":"/Users/dehan/miniconda3/bin:/Users/dehan/miniconda3/condabin:/usr/local/opt/llvm/bin:/Users/dehan/.jenv/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/usr/local/Cellar/git//bin:/Users/dehan/.jenv/bin:/Users/dehan/Documents/30-developments/shellscript","PWD":"/","SECURITYSESSIONID":"186a4","SHELL":"/bin/zsh","SHLVL":"0","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.JiN6Kik8wK/Listeners","TMPDIR":"/var/folders/_d/bsqrml45219_br128q2pgsg40000gn/T/","USER":"dehan","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"/Users/dehan/Library/Application Support/Code/CachedData/b58957e67ee1e712cebf466b995adf4c5307b2bd","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/Users/dehan/Library/Application Support/Code/1.89-main.sock","VSCODE_NLS_CONFIG":"{"locale":"en-us","osLocale":"en-ca","availableLanguages":{},"languagePackSupport":true}","VSCODE_PID":"90495","XPC_FLAGS":"0x0","XPC_SERVICE_NAME":"application.com.microsoft.VSCode.148111909.148142167","ZSH":"/Users/dehan/.oh-my-zsh","":"/Applications/Visual Studio Code.app/Contents/MacOS/Electron","__CFBundleIdentifier":"com.microsoft.VSCode","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x52","all_proxy":"socks5://127.0.0.1:6153","http_proxy":"http://127.0.0.1:6152","https_proxy":"http://127.0.0.1:6152","ELECTRON_RUN_AS_NODE":"1","VSCODE_L10N_BUNDLE_LOCATION":"","VSCODE_DOTNET_INSTALL_TOOL_ORIGINAL_HOME":"/Users/dehan"}
[build] [ 50%] Building CXX object CMakeFiles/MyCMakeProject.dir/main.cpp.o
[build] [100%] Linking CXX executable MyCMakeProject
[build] [100%] Built target MyCMakeProject
[driver] Build completed: 00:00:02.139
[cmakefileapi-parser] Read reply folder: /Users/dehan/Documents/30-developments/cxx/build/.cmake/api/v1/reply
[cmakefileapi-parser] Found index files: ["cache-v2-8e8186b667df71722ac1.json","cmakeFiles-v1-de2bdfbcfff52bdbe080.json","codemodel-v2-2bbe7bc8195ef23e32cc.json","directory-.-Debug-f5ebdc15457944623624.json","index-2024-10-31T03-44-05-0782.json","target-Continuous-Debug-997bcb5a3b9dca8359da.json","target-ContinuousBuild-Debug-4584567a169363cf9ad1.json","target-ContinuousConfigure-Debug-0e19c646cd0e63ee0653.json","target-ContinuousCoverage-Debug-409799b9ad5f909e7011.json","target-ContinuousMemCheck-Debug-143e696c442b7ecf3668.json","target-ContinuousStart-Debug-14e6319968faf97d184f.json","target-ContinuousSubmit-Debug-c93e0345de476d497509.json","target-ContinuousTest-Debug-808bd8006ac9fcdb5431.json","target-ContinuousUpdate-Debug-d71e36f8aa62f2f86801.json","target-Experimental-Debug-fbb5cd71ecf75b6a4820.json","target-ExperimentalBuild-Debug-64908f40ac1907e29d8e.json","target-ExperimentalConfigure-Debug-b5c2c5de0cdbfe1c9f1a.json","target-ExperimentalCoverage-Debug-4a157e3dcb28b73180d4.json","target-ExperimentalMemCheck-Debug-34bbd71efeab0640972e.json","target-ExperimentalStart-Debug-3818a2632fcd6e7974d3.json","target-ExperimentalSubmit-Debug-3674090355521545f249.json","target-ExperimentalTest-Debug-b29f9504bf03f854dc39.json","target-ExperimentalUpdate-Debug-952f071f95b176b87e05.json","target-MyCMakeProject-Debug-e87d582e88bb97bc4a5f.json","target-Nightly-Debug-5d49eaaabb7237caa315.json","target-NightlyBuild-Debug-433145e83c90fa22cbbc.json","target-NightlyConfigure-Debug-4c04a9dd60fe59d03c6c.json","target-NightlyCoverage-Debug-f0c7671d4d0f4f6916fa.json","target-NightlyMemCheck-Debug-c3bf90a717f63f0c181c.json","target-NightlyMemoryCheck-Debug-1770cd003485e290d59b.json","target-NightlyStart-Debug-d700a5bc3fd2bc0e9a51.json","target-NightlySubmit-Debug-e1cb7c79372814a87594.json","target-NightlyTest-Debug-cb0cd9dc89bb1cd3b2ed.json","target-NightlyUpdate-Debug-b5b8d465b2b87eeb82cc.json","toolchains-v1-ecad62d51dcbd86df9ba.json"]
[extension] Not updating the configuration provider because "C_Cpp.intelliSenseEngine" is set to "Disabled"
[build] Build finished with exit code 0
[cache] Reading CMake cache file /Users/dehan/Documents/30-developments/cxx/build/CMakeCache.txt
[cache] Parsing CMake cache string
[proc] Executing command: /Users/dehan/.vscode/extensions/ms-vscode.cpptools-1.22.10-darwin-x64/debugAdapters/lldb-mi/bin/lldb-mi --version
[proc] Executing command: /Users/dehan/.vscode/extensions/ms-vscode.cpptools-1.22.10-darwin-x64/debugAdapters/lldb-mi/bin/lldb-mi --version
[main] Debug configuration from cache: {"type":"cppdbg","name":"Debug MyCMakeProject","request":"launch","cwd":"/Users/dehan/Documents/30-developments/cxx/build","args":[],"MIMode":"lldb","miDebuggerPath":"/Users/dehan/.vscode/extensions/ms-vscode.cpptools-1.22.10-darwin-x64/debugAdapters/lldb-mi/bin/lldb-mi","program":"/Users/dehan/Documents/30-developments/cxx/build/MyCMakeProject"}
[main] Starting debugger with following configuration. {"workspace":"file:///Users/dehan/Documents/30-developments/cxx","config":{"type":"cppdbg","name":"Debug MyCMakeProject","request":"launch","cwd":"/Users/dehan/Documents/30-developments/cxx/build","args":[],"MIMode":"lldb","miDebuggerPath":"","program":"/Users/dehan/Documents/30-developments/cxx/build/MyCMakeProject","stopAtEntry":true,"console":"integratedTerminal","logging":{"trace":true,"engineLogging":true,"traceResponse":true},"externalConsole":true,"environment":[{"name":"COMMAND_MODE","value":"unix2003"},{"name":"CONDA_DEFAULT_ENV","value":"base"},{"name":"CONDA_EXE","value":"/Users/dehan/miniconda3/bin/conda"},{"name":"CONDA_PREFIX","value":"/Users/dehan/miniconda3"},{"name":"CONDA_PROMPT_MODIFIER","value":"(base) "},{"name":"CONDA_PYTHON_EXE","value":"/Users/dehan/miniconda3/bin/python"},{"name":"CONDA_SHLVL","value":"1"},{"name":"DBUS_LAUNCHD_SESSION_BUS_SOCKET","value":"/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener"},{"name":"DBUS_SESSION_BUS_ADDRESS","value":"unix:path=/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener"},{"name":"DISPLAY","value":"/private/tmp/com.apple.launchd.Hc5K4REQrS/org.xquartz:0"},{"name":"HOME","value":"/Users/dehan"},{"name":"JENV_LOADED","value":"1"},{"name":"JENV_SHELL","value":"zsh"},{"name":"LESS","value":"-R"},{"name":"LOGNAME","value":"dehan"},{"name":"LSCOLORS","value":"Gxfxcxdxbxegedabagacad"},{"name":"LaunchInstanceID","value":"531A6E51-EB2A-4D34-A127-B20DC5DEB57B"},{"name":"MallocNanoZone","value":"0"},{"name":"OPENAI_API_KEY","value":""},{"name":"ORIGINAL_XDG_CURRENT_DESKTOP","value":"undefined"},{"name":"P9K_SSH","value":"0"},{"name":"PAGER","value":"less"},{"name":"PATH","value":"/Users/dehan/miniconda3/bin:/Users/dehan/miniconda3/condabin:/usr/local/opt/llvm/bin:/Users/dehan/.jenv/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/usr/local/Cellar/git//bin:/Users/dehan/.jenv/bin:/Users/dehan/Documents/30-developments/shellscript"},{"name":"PWD","value":"/"},{"name":"SECURITYSESSIONID","value":"186a4"},{"name":"SHELL","value":"/bin/zsh"},{"name":"SHLVL","value":"0"},{"name":"SSH_AUTH_SOCK","value":"/private/tmp/com.apple.launchd.JiN6Kik8wK/Listeners"},{"name":"TMPDIR","value":"/var/folders/_d/bsqrml45219_br128q2pgsg40000gn/T/"},{"name":"USER","value":"dehan"},{"name":"VSCODE_AMD_ENTRYPOINT","value":"vs/workbench/api/node/extensionHostProcess"},{"name":"VSCODE_CODE_CACHE_PATH","value":"/Users/dehan/Library/Application Support/Code/CachedData/b58957e67ee1e712cebf466b995adf4c5307b2bd"},{"name":"VSCODE_CRASH_REPORTER_PROCESS_TYPE","value":"extensionHost"},{"name":"VSCODE_CWD","value":"/"},{"name":"VSCODE_HANDLES_UNCAUGHT_ERRORS","value":"true"},{"name":"VSCODE_IPC_HOOK","value":"/Users/dehan/Library/Application Support/Code/1.89-main.sock"},{"name":"VSCODE_NLS_CONFIG","value":"{"locale":"en-us","osLocale":"en-ca","availableLanguages":{},"languagePackSupport":true}"},{"name":"VSCODE_PID","value":"90495"},{"name":"XPC_FLAGS","value":"0x0"},{"name":"XPC_SERVICE_NAME","value":"application.com.microsoft.VSCode.148111909.148142167"},{"name":"ZSH","value":"/Users/dehan/.oh-my-zsh"},{"name":"","value":"/Applications/Visual Studio Code.app/Contents/MacOS/Electron"},{"name":"__CFBundleIdentifier","value":"com.microsoft.VSCode"},{"name":"__CF_USER_TEXT_ENCODING","value":"0x1F5:0x0:0x52"},{"name":"all_proxy","value":"socks5://127.0.0.1:6153"},{"name":"http_proxy","value":"http://127.0.0.1:6152"},{"name":"https_proxy","value":"http://127.0.0.1:6152"},{"name":"ELECTRON_RUN_AS_NODE","value":"1"},{"name":"VSCODE_L10N_BUNDLE_LOCATION","value":""},{"name":"VSCODE_DOTNET_INSTALL_TOOL_ORIGINAL_HOME","value":"/Users/dehan"}]}}
[extension] [8618] cmake.debugTarget finished (returned {"id":"7d887f55-e46c-479b-85f8-d92cd8e26558","type":"cppdbg","name":"Debug MyCMakeProject","workspaceFolder":{"uri":{"$mid":1,"fsPath":"/Users/dehan/Documents/30-developments/cxx","external":"file:///Users/dehan/Documents/30-developments/cxx","path":"/Users/dehan/Documents/30-developments/cxx","scheme":"file"},"name":"cxx","index":0},"configuration":{"type":"cppdbg","name":"Debug MyCMakeProject","request":"launch","cwd":"/Users/dehan/Documents/30-developments/cxx/build","args":[],"MIMode":"lldb","miDebuggerPath":"","program":"/Users/dehan/Documents/30-developments/cxx/build/MyCMakeProject","stopAtEntry":true,"console":"integratedTerminal","logging":{"trace":true,"engineLogging":true,"traceResponse":true},"externalConsole":true,"environment":[{"name":"COMMAND_MODE","value":"unix2003"},{"name":"CONDA_DEFAULT_ENV","value":"base"},{"name":"CONDA_EXE","value":"/Users/dehan/miniconda3/bin/conda"},{"name":"CONDA_PREFIX","value":"/Users/dehan/miniconda3"},{"name":"CONDA_PROMPT_MODIFIER","value":"(base) "},{"name":"CONDA_PYTHON_EXE","value":"/Users/dehan/miniconda3/bin/python"},{"name":"CONDA_SHLVL","value":"1"},{"name":"DBUS_LAUNCHD_SESSION_BUS_SOCKET","value":"/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener"},{"name":"DBUS_SESSION_BUS_ADDRESS","value":"unix:path=/private/tmp/com.apple.launchd.FAUCBL90O6/unix_domain_listener"},{"name":"DISPLAY","value":"/private/tmp/com.apple.launchd.Hc5K4REQrS/org.xquartz:0"},{"name":"HOME","value":"/Users/dehan"},{"name":"JENV_LOADED","value":"1"},{"name":"JENV_SHELL","value":"zsh"},{"name":"LESS","value":"-R"},{"name":"LOGNAME","value":"dehan"},{"name":"LSCOLORS","value":"Gxfxcxdxbxegedabagacad"},{"name":"LaunchInstanceID","value":"531A6E51-EB2A-4D34-A127-B20DC5DEB57B"},{"name":"MallocNanoZone","value":"0"},{"name":"OPENAI_API_KEY","value":""},{"name":"ORIGINAL_XDG_CURRENT_DESKTOP","value":"undefined"},{"name":"P9K_SSH","value":"0"},{"name":"PAGER","value":"less"},{"name":"PATH","value":"/Users/dehan/miniconda3/bin:/Users/dehan/miniconda3/condabin:/usr/local/opt/llvm/bin:/Users/dehan/.jenv/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/usr/local/Cellar/git//bin:/Users/dehan/.jenv/bin:/Users/dehan/Documents/30-developments/shellscript"},{"name":"PWD","value":"/"},{"name":"SECURITYSESSIONID","value":"186a4"},{"name":"SHELL","value":"/bin/zsh"},{"name":"SHLVL","value":"0"},{"name":"SSH_AUTH_SOCK","value":"/private/tmp/com.apple.launchd.JiN6Kik8wK/Listeners"},{"name":"TMPDIR","value":"/var/folders/_d/bsqrml45219_br128q2pgsg40000gn/T/"},{"name":"USER","value":"dehan"},{"name":"VSCODE_AMD_ENTRYPOINT","value":"vs/workbench/api/node/extensionHostProcess"},{"name":"VSCODE_CODE_CACHE_PATH","value":"/Users/dehan/Library/Application Support/Code/CachedData/b58957e67ee1e712cebf466b995adf4c5307b2bd"},{"name":"VSCODE_CRASH_REPORTER_PROCESS_TYPE","value":"extensionHost"},{"name":"VSCODE_CWD","value":"/"},{"name":"VSCODE_HANDLES_UNCAUGHT_ERRORS","value":"true"},{"name":"VSCODE_IPC_HOOK","value":"/Users/dehan/Library/Application Support/Code/1.89-main.sock"},{"name":"VSCODE_NLS_CONFIG","value":"{"locale":"en-us","osLocale":"en-ca","availableLanguages":{},"languagePackSupport":true}"},{"name":"VSCODE_PID","value":"90495"},{"name":"XPC_FLAGS","value":"0x0"},{"name":"XPC_SERVICE_NAME","value":"application.com.microsoft.VSCode.148111909.148142167"},{"name":"ZSH","value":"/Users/dehan/.oh-my-zsh"},{"name":"","value":"/Applications/Visual Studio Code.app/Contents/MacOS/Electron"},{"name":"__CFBundleIdentifier","value":"com.microsoft.VSCode"},{"name":"__CF_USER_TEXT_ENCODING","value":"0x1F5:0x0:0x52"},{"name":"all_proxy","value":"socks5://127.0.0.1:6153"},{"name":"http_proxy","value":"http://127.0.0.1:6152"},{"name":"https_proxy","value":"http://127.0.0.1:6152"},{"name":"ELECTRON_RUN_AS_NODE","value":"1"},{"name":"VSCODE_L10N_BUNDLE_LOCATION","value":""},{"name":"VSCODE_DOTNET_INSTALL_TOOL_ORIGINAL_HOME","value":"/Users/dehan"}]}})
Additional Information
debug console.txt
The text was updated successfully, but these errors were encountered: