Can't debug on macOS Catalina (LLDB)
man-jai opened this issue · 153 comments
Type: Debugger
Input information below
Please review existing issues and our documentation at https://github.com/Microsoft/vscode-cpptools/tree/master/Documentation prior to filing an issue.
Describe the bug
- OS and Version: macOS 10.14
- VS Code Version: 1.35.1
- C/C++ Extension Version: 0.24.0
- Other extensions you installed (and if the issue persists after disabling them):
- A clear and concise description of what the bug is.
To Reproduce
launch.json
"version":"0.2.0",
"configurations":[
{
"type":"cppdbg",
"request":"launch",
"name":"Debug",
"preLaunchTask":"build",
"program":"${workspaceFolder}/debug/OpenGLTut.out",
"args":[
],
"stopAtEntry":true,
"cwd":"${workspaceFolder}",
"environment":[
],
"externalConsole":true,
"MIMode":"lldb",
"internalConsoleOptions":"openOnSessionStart",
"showDisplayString":false,
"logging":{
"trace":true,
"traceResponse":true,
"engineLogging":true,
"programOutput":true,
}
}
]
tasks.json
"version":"2.0.0",
"tasks":[
{
"type":"shell",
"label":"build",
"command":"clang++",
"args":[
"-g",
"-std=c++17",
"-stdlib=libc++",
"-framework",
"Cocoa",
"-framework",
"OpenGL",
"-framework",
"IOKit",
"-framework",
"CoreVideo",
"-L",
"/usr/local/include/",
"-lglew",
"-lglfw3",
"${workspaceFolder}/src/Application.cpp",
"-o",
"${workspaceFolder}/debug/OpenGlTut.out",
"--debug",
],
"group":{
"kind":"build",
"isDefault":true
}
}
]
Steps to reproduce the behaviour:
debug using the above tasks and launch files
Additional context
If applicable, please include logging by adding "logging": { "engineLogging": true, "trace": true, "traceResponse": true } in your launch.json
Add any other context about the problem here including log or error messages in your Debug Console or Output windows.
Can you share the output when you enable logging?
Can you share the output when you enable logging?
LLDB Engine Logging
--> E (output): {"event":"output","body":{"category":"console","output":"1: (100) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'\n"},"seq":2,"type":"event"}
1: (100) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (107) LaunchOptions ExePath='/Users/jai/Projects/TheCherno/OpenGLTut/debug/OpenGLTut.out'\n"},"seq":4,"type":"event"}
1: (107) LaunchOptions ExePath='/Users/jai/Projects/TheCherno/OpenGLTut/debug/OpenGLTut.out'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (107) LaunchOptions WorkingDirectory='/Users/jai/Projects/TheCherno/OpenGLTut'\n"},"seq":6,"type":"event"}
1: (107) LaunchOptions WorkingDirectory='/Users/jai/Projects/TheCherno/OpenGLTut'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (108) LaunchOptions ExeArguments=''\n"},"seq":8,"type":"event"}
1: (108) LaunchOptions ExeArguments=''
--> E (output): {"event":"output","body":{"category":"console","output":"1: (108) LaunchOptions MIMode='lldb'\n"},"seq":10,"type":"event"}
1: (108) LaunchOptions MIMode='lldb'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (108) LaunchOptions MIDebuggerPath='/Users/jai/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders/debugAdapters/lldb/bin/lldb-mi'\n"},"seq":12,"type":"event"}
1: (108) LaunchOptions MIDebuggerPath='/Users/jai/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders/debugAdapters/lldb/bin/lldb-mi'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (108) LaunchOptions WaitDynamicLibLoad='false'\n"},"seq":14,"type":"event"}
1: (108) LaunchOptions WaitDynamicLibLoad='false'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (109) LaunchOptions ExternalConsole='true'\n"},"seq":16,"type":"event"}
1: (109) LaunchOptions ExternalConsole='true'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (109) LaunchOptions>\n"},"seq":18,"type":"event"}
1: (109) LaunchOptions>
--> E (output): {"event":"output","body":{"category":"console","output":"1: (109) LaunchOptions</LocalLaunchOptions>\n"},"seq":20,"type":"event"}
1: (109) LaunchOptions</LocalLaunchOptions>
--> E (output): {"event":"output","body":{"category":"console","output":"1: (180) Starting: \"/Users/jai/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders/debugAdapters/lldb/bin/lldb-mi\" --interpreter=mi\n"},"seq":22,"type":"event"}
1: (180) Starting: "/Users/jai/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders/debugAdapters/lldb/bin/lldb-mi" --interpreter=mi
--> E (output): {"event":"output","body":{"category":"console","output":"1: (194) DebuggerPid=4621\n"},"seq":24,"type":"event"}
1: (194) DebuggerPid=4621
--> E (output): {"event":"output","body":{"category":"console","output":"1: (398) ->(gdb)\n"},"seq":26,"type":"event"}
1: (398) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (408) <-1001-gdb-set auto-solib-add on\n"},"seq":28,"type":"event"}
1: (408) <-1001-gdb-set auto-solib-add on
--> E (output): {"event":"output","body":{"category":"console","output":"1: (408) ->1001^done\n"},"seq":30,"type":"event"}
1: (408) ->1001^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (409) ->(gdb)\n"},"seq":32,"type":"event"}
1: (409) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (410) 1001: elapsed time 2\n"},"seq":34,"type":"event"}
1: (410) 1001: elapsed time 2
--> E (output): {"event":"output","body":{"category":"console","output":"1: (410) <-1002-gdb-set solib-search-path \"/Users/jai/Projects/TheCherno/OpenGLTut/debug:\"\n"},"seq":36,"type":"event"}
1: (410) <-1002-gdb-set solib-search-path "/Users/jai/Projects/TheCherno/OpenGLTut/debug:"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (411) ->1002^done\n"},"seq":38,"type":"event"}
1: (411) ->1002^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (411) ->(gdb)\n"},"seq":40,"type":"event"}
1: (411) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (411) 1002: elapsed time 0\n"},"seq":42,"type":"event"}
1: (411) 1002: elapsed time 0
--> E (output): {"event":"output","body":{"category":"console","output":"1: (411) <-1003-environment-cd /Users/jai/Projects/TheCherno/OpenGLTut\n"},"seq":44,"type":"event"}
1: (411) <-1003-environment-cd /Users/jai/Projects/TheCherno/OpenGLTut
--> E (output): {"event":"output","body":{"category":"console","output":"1: (412) ->1003^done,path=\"/Users/jai/Projects/TheCherno/OpenGLTut\"\n"},"seq":46,"type":"event"}
1: (412) ->1003^done,path="/Users/jai/Projects/TheCherno/OpenGLTut"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (412) ->(gdb)\n"},"seq":48,"type":"event"}
1: (412) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (414) 1003: elapsed time 3\n"},"seq":50,"type":"event"}
1: (414) 1003: elapsed time 3
--> E (output): {"event":"output","body":{"category":"console","output":"1: (415) <-1004-gdb-set new-console on\n"},"seq":52,"type":"event"}
1: (415) <-1004-gdb-set new-console on
--> E (output): {"event":"output","body":{"category":"console","output":"1: (415) ->1004^done\n"},"seq":54,"type":"event"}
1: (415) ->1004^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (415) ->(gdb)\n"},"seq":56,"type":"event"}
1: (415) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (415) 1004: elapsed time 0\n"},"seq":58,"type":"event"}
1: (415) 1004: elapsed time 0
--> E (output): {"event":"output","body":{"category":"console","output":"1: (416) <-1005-file-exec-and-symbols /Users/jai/Projects/TheCherno/OpenGLTut/debug/OpenGLTut.out\n"},"seq":60,"type":"event"}
1: (416) <-1005-file-exec-and-symbols /Users/jai/Projects/TheCherno/OpenGLTut/debug/OpenGLTut.out
--> E (output): {"event":"output","body":{"category":"console","output":"1: (563) ->1005^done\n"},"seq":62,"type":"event"}
1: (563) ->1005^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (563) ->(gdb)\n"},"seq":64,"type":"event"}
1: (563) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (563) 1005: elapsed time 147\n"},"seq":66,"type":"event"}
1: (563) 1005: elapsed time 147
--> E (output): {"event":"output","body":{"category":"console","output":"1: (563) ->=library-loaded,id=\"/Users/jai/Projects/TheCherno/OpenGLTut/debug/OpenGLTut.out\",target-name=\"/Users/jai/Projects/TheCherno/OpenGLTut/debug/OpenGLTut.out\",host-name=\"/Users/jai/Projects/TheCherno/OpenGLTut/debug/OpenGLTut.out\",symbols-loaded=\"1\",symbols-path=\"/Users/jai/Projects/TheCherno/OpenGLTut/debug/OpenGLTut.out.dSYM/Contents/Resources/DWARF/OpenGlTut.out\",loaded_addr=\"-\",size=\"262144\"\n"},"seq":68,"type":"event"}
1: (563) ->=library-loaded,id="/Users/jai/Projects/TheCherno/OpenGLTut/debug/OpenGLTut.out",target-name="/Users/jai/Projects/TheCherno/OpenGLTut/debug/OpenGLTut.out",host-name="/Users/jai/Projects/TheCherno/OpenGLTut/debug/OpenGLTut.out",symbols-loaded="1",symbols-path="/Users/jai/Projects/TheCherno/OpenGLTut/debug/OpenGLTut.out.dSYM/Contents/Resources/DWARF/OpenGlTut.out",loaded_addr="-",size="262144"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (565) <-1006-interpreter-exec console \"platform status\"\n"},"seq":70,"type":"event"}
1: (565) <-1006-interpreter-exec console "platform status"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (565) -> Platform: host\n"},"seq":72,"type":"event"}
1: (565) -> Platform: host
--> E (output): {"event":"output","body":{"category":"console","output":"1: (565) -> Triple: x86_64h-apple-macosx\n"},"seq":74,"type":"event"}
1: (565) -> Triple: x86_64h-apple-macosx
--> E (output): {"event":"output","body":{"category":"console","output":"1: (565) ->OS Version: 10.15 (19A487l)\n"},"seq":76,"type":"event"}
1: (565) ->OS Version: 10.15 (19A487l)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (566) -> Kernel: Darwin Kernel Version 19.0.0: Thu Jun 13 21:52:56 PDT 2019; root:xnu-6110.0.0.121.5~2/RELEASE_X86_64\n"},"seq":78,"type":"event"}
1: (566) -> Kernel: Darwin Kernel Version 19.0.0: Thu Jun 13 21:52:56 PDT 2019; root:xnu-6110.0.0.121.5~2/RELEASE_X86_64
--> E (output): {"event":"output","body":{"category":"console","output":"1: (566) -> Hostname: 127.0.0.1\n"},"seq":80,"type":"event"}
1: (566) -> Hostname: 127.0.0.1
--> E (output): {"event":"output","body":{"category":"console","output":"1: (566) ->WorkingDir: /Users/jai/Projects/TheCherno/OpenGLTut\n"},"seq":82,"type":"event"}
1: (566) ->WorkingDir: /Users/jai/Projects/TheCherno/OpenGLTut
--> E (output): {"event":"output","body":{"category":"console","output":"1: (566) ->1006^done\n"},"seq":84,"type":"event"}
1: (566) ->1006^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (567) ->(gdb)\n"},"seq":86,"type":"event"}
1: (567) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (567) 1006: elapsed time 2\n"},"seq":88,"type":"event"}
1: (567) 1006: elapsed time 2
--> E (output): {"event":"output","body":{"category":"console","output":"1: (568) <-1007-break-insert -f on main\n"},"seq":90,"type":"event"}
1: (568) <-1007-break-insert -f on main
--> E (output): {"event":"output","body":{"category":"console","output":"1: (570) ->1007^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x000000010001da40\",func=\"main\",file=\"Application.cpp\",fullname=\"/Users/jai/Projects/TheCherno/OpenGLTut/src/Application.cpp\",line=\"53\",pending=[\"main\"],times=\"0\",original-location=\"main\"}\n"},"seq":92,"type":"event"}
1: (570) ->1007^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000010001da40",func="main",file="Application.cpp",fullname="/Users/jai/Projects/TheCherno/OpenGLTut/src/Application.cpp",line="53",pending=["main"],times="0",original-location="main"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (570) ->(gdb)\n"},"seq":94,"type":"event"}
1: (570) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (570) ->=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x000000010001da40\",func=\"main\",file=\"Application.cpp\",fullname=\"/Users/jai/Projects/TheCherno/OpenGLTut/src/Application.cpp\",line=\"53\",pending=[\"main\"],times=\"0\",original-location=\"main\"}\n"},"seq":96,"type":"event"}
1: (570) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000010001da40",func="main",file="Application.cpp",fullname="/Users/jai/Projects/TheCherno/OpenGLTut/src/Application.cpp",line="53",pending=["main"],times="0",original-location="main"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (570) ->(gdb)\n"},"seq":98,"type":"event"}
1: (570) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (571) 1007: elapsed time 3\n"},"seq":100,"type":"event"}
1: (571) 1007: elapsed time 3
--> E (output): {"event":"output","body":{"category":"console","output":"1: (576) Send Event AD7EngineCreateEvent\n"},"seq":102,"type":"event"}
1: (576) Send Event AD7EngineCreateEvent
--> E (output): {"event":"output","body":{"category":"console","output":"1: (578) Send Event AD7ProgramCreateEvent\n"},"seq":104,"type":"event"}
1: (578) Send Event AD7ProgramCreateEvent
--> E (output): {"event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/Launch","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"14.0.60611.1","VS.Diagnostics.Debugger.HostVersion":"14.0.60611.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":520,"VS.Diagnostics.Debugger.Launch.IsCoreDump":false,"VS.Diagnostics.Debugger.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.SourceFileMappings":0}},"seq":106,"type":"event"}
--> R (launch-2): {"request_seq":2,"success":true,"command":"launch","body":{},"seq":108,"type":"response"}
--> E (initialized): {"event":"initialized","body":{},"seq":110,"type":"event"}
<-- C (setFunctionBreakpoints-3): {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":3}
--> R (setFunctionBreakpoints-3): {"request_seq":3,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]},"seq":113,"type":"response"}
<-- C (setExceptionBreakpoints-4): {"command":"setExceptionBreakpoints","arguments":{"filters":[]},"type":"request","seq":4}
--> R (setExceptionBreakpoints-4): {"request_seq":4,"success":true,"command":"setExceptionBreakpoints","body":{},"seq":116,"type":"response"}
<-- C (configurationDone-5): {"command":"configurationDone","type":"request","seq":5}
--> R (configurationDone-5): {"request_seq":5,"success":true,"command":"configurationDone","body":{},"seq":119,"type":"response"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (650) Send Event AD7LoadCompleteEvent\n"},"seq":121,"type":"event"}
1: (650) Send Event AD7LoadCompleteEvent
<-- C (threads-6): {"command":"threads","type":"request","seq":6}
--> E (output): {"event":"output","body":{"category":"stdout","output":"Warning: Debuggee TargetArchitecture not detected, assuming x86_64.\n"},"seq":124,"type":"event"}
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
--> E (output): {"event":"output","body":{"category":"console","output":"1: (653) <-1008-exec-run\n"},"seq":127,"type":"event"}
1: (653) <-1008-exec-run
--> R (threads-6): {"request_seq":6,"success":true,"command":"threads","body":{"threads":[]},"seq":126,"type":"response"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1317) ->1008^running\n"},"seq":130,"type":"event"}
1: (1317) ->1008^running
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1318) ->=thread-group-started,id=\"i1\",pid=\"4650\"\n"},"seq":132,"type":"event"}
1: (1318) ->=thread-group-started,id="i1",pid="4650"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1318) ->(gdb)\n"},"seq":134,"type":"event"}
1: (1318) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1318) 1008: elapsed time 664\n"},"seq":136,"type":"event"}
1: (1318) 1008: elapsed time 664
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1318) ->=thread-created,id=\"1\",group-id=\"i1\"\n"},"seq":138,"type":"event"}
1: (1318) ->=thread-created,id="1",group-id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1319) ->=thread-selected,id=\"1\"\n"},"seq":140,"type":"event"}
1: (1319) ->=thread-selected,id="1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1319) ->(gdb)\n"},"seq":142,"type":"event"}
1: (1319) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1319) ->*running,thread-id=\"all\"\n"},"seq":144,"type":"event"}
1: (1319) ->*running,thread-id="all"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1320) ->(gdb)\n"},"seq":146,"type":"event"}
1: (1320) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1321) <-1009-thread-info 1\n"},"seq":148,"type":"event"}
1: (1321) <-1009-thread-info 1
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1322) ->1009^done,threads=[{id=\"1\",target-id=\"Thread 1\",frame={level=\"0\",addr=\"0x0000000100055000\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},state=\"running\"}]\n"},"seq":150,"type":"event"}
1: (1322) ->1009^done,threads=[{id="1",target-id="Thread 1",frame={level="0",addr="0x0000000100055000",func="??",args=[],file="??",fullname="??",line="-1"},state="running"}]
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1322) ->(gdb)\n"},"seq":152,"type":"event"}
1: (1322) ->(gdb)
--> E (output): {"event":"output","body":{"category":"stdout","output":"=thread-selected,id=\"1\"\n"},"seq":154,"type":"event"}
=thread-selected,id="1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1324) 1009: elapsed time 3\n"},"seq":156,"type":"event"}
1: (1324) 1009: elapsed time 3
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1327) Send Event AD7ProcessInfoUpdatedEvent\n"},"seq":158,"type":"event"}
1: (1327) Send Event AD7ProcessInfoUpdatedEvent
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1327) Send Event AD7ThreadCreateEvent\n"},"seq":160,"type":"event"}
1: (1327) Send Event AD7ThreadCreateEvent
--> E (thread): {"event":"thread","body":{"reason":"started","threadId":1},"seq":162,"type":"event"}
<-- C (threads-7): {"command":"threads","type":"request","seq":7}
--> R (threads-7): {"request_seq":7,"success":true,"command":"threads","body":{"threads":[{"id":1,"name":"Thread #1"}]},"seq":165,"type":"response"}
<-- C (disconnect-8): {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":8}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4098) <-1010-exec-interrupt\n"},"seq":168,"type":"event"}
1: (4098) <-1010-exec-interrupt
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4099) ->1010^done\n"},"seq":170,"type":"event"}
1: (4099) ->1010^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4099) ->(gdb)\n"},"seq":172,"type":"event"}
1: (4099) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4100) ->=thread-created,id=\"2\",group-id=\"i1\"\n"},"seq":174,"type":"event"}
1: (4100) ->=thread-created,id="2",group-id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4100) ->=thread-created,id=\"3\",group-id=\"i1\"\n"},"seq":176,"type":"event"}
1: (4100) ->=thread-created,id="3",group-id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4100) ->=thread-created,id=\"4\",group-id=\"i1\"\n"},"seq":178,"type":"event"}
1: (4100) ->=thread-created,id="4",group-id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4100) ->=thread-created,id=\"5\",group-id=\"i1\"\n"},"seq":180,"type":"event"}
1: (4100) ->=thread-created,id="5",group-id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4101) ->=thread-created,id=\"6\",group-id=\"i1\"\n"},"seq":182,"type":"event"}
1: (4101) ->=thread-created,id="6",group-id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4101) ->=thread-created,id=\"7\",group-id=\"i1\"\n"},"seq":184,"type":"event"}
1: (4101) ->=thread-created,id="7",group-id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4101) ->=thread-created,id=\"8\",group-id=\"i1\"\n"},"seq":186,"type":"event"}
1: (4101) ->=thread-created,id="8",group-id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4101) ->(gdb)\n"},"seq":188,"type":"event"}
1: (4101) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4102) ->*stopped,reason=\"signal-received\",signal-name=\"SIGINT\",signal-meaning=\"Interrupt\",frame={level=\"0\",addr=\"0x0000000100055000\",func=\"??\",file=\"??\",fullname=\"??\",line=\"-1\"},thread-id=\"1\",stopped-threads=\"all\"\n"},"seq":190,"type":"event"}
1: (4102) ->*stopped,reason="signal-received",signal-name="SIGINT",signal-meaning="Interrupt",frame={level="0",addr="0x0000000100055000",func="??",file="??",fullname="??",line="-1"},thread-id="1",stopped-threads="all"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4102) ->(gdb)\n"},"seq":192,"type":"event"}
1: (4102) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4102) 1010: elapsed time 4\n"},"seq":194,"type":"event"}
1: (4102) 1010: elapsed time 4
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4102) <-1011-thread-info 2\n"},"seq":196,"type":"event"}
1: (4102) <-1011-thread-info 2
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4103) <-1012-thread-info 3\n"},"seq":198,"type":"event"}
1: (4103) <-1012-thread-info 3
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4103) <-1013-thread-info 4\n"},"seq":200,"type":"event"}
1: (4103) <-1013-thread-info 4
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4103) ->1011^done,threads=[{id=\"2\",target-id=\"Thread 2\",frame={level=\"0\",addr=\"0x00007fff729d3cba\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},frame={level=\"1\",addr=\"0x00007fff72a9269b\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},state=\"running\"}]\n"},"seq":202,"type":"event"}
1: (4103) ->1011^done,threads=[{id="2",target-id="Thread 2",frame={level="0",addr="0x00007fff729d3cba",func="??",args=[],file="??",fullname="??",line="-1"},frame={level="1",addr="0x00007fff72a9269b",func="??",args=[],file="??",fullname="??",line="-1"},state="running"}]
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4103) <-1014-thread-info 5\n"},"seq":204,"type":"event"}
1: (4103) <-1014-thread-info 5
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4103) ->(gdb)\n"},"seq":206,"type":"event"}
1: (4103) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4104) <-1015-thread-info 6\n"},"seq":208,"type":"event"}
1: (4104) <-1015-thread-info 6
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4104) <-1016-thread-info 7\n"},"seq":210,"type":"event"}
1: (4104) <-1016-thread-info 7
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4105) <-1017-thread-info 8\n"},"seq":212,"type":"event"}
1: (4105) <-1017-thread-info 8
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4104) ->1012^done,threads=[{id=\"3\",target-id=\"Thread 3\",frame={level=\"0\",addr=\"0x00007fff729d3cba\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},frame={level=\"1\",addr=\"0x00007fff72a9269b\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},state=\"running\"}]\n"},"seq":214,"type":"event"}
1: (4104) ->1012^done,threads=[{id="3",target-id="Thread 3",frame={level="0",addr="0x00007fff729d3cba",func="??",args=[],file="??",fullname="??",line="-1"},frame={level="1",addr="0x00007fff72a9269b",func="??",args=[],file="??",fullname="??",line="-1"},state="running"}]
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4105) ->(gdb)\n"},"seq":216,"type":"event"}
1: (4105) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4105) ->1013^done,threads=[{id=\"4\",target-id=\"Thread 4\",frame={level=\"0\",addr=\"0x00007fff729d3cba\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},frame={level=\"1\",addr=\"0x00007fff72a9269b\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},state=\"running\"}]\n"},"seq":218,"type":"event"}
1: (4105) ->1013^done,threads=[{id="4",target-id="Thread 4",frame={level="0",addr="0x00007fff729d3cba",func="??",args=[],file="??",fullname="??",line="-1"},frame={level="1",addr="0x00007fff72a9269b",func="??",args=[],file="??",fullname="??",line="-1"},state="running"}]
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4106) ->(gdb)\n"},"seq":220,"type":"event"}
1: (4106) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4106) ->1014^done,threads=[{id=\"5\",target-id=\"Thread 5\",frame={level=\"0\",addr=\"0x00007fff729d2286\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},frame={level=\"1\",addr=\"0x00007fff3bccdf95\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},frame={level=\"2\",addr=\"0x00007fff3bccd525\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},frame={level=\"3\",addr=\"0x00007fff3bcccc01\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},frame={level=\"4\",addr=\"0x00007fff38fdcce2\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},frame={level=\"5\",addr=\"0x00007fff72a95daa\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},frame={level=\"6\",addr=\"0x00007fff72a926af\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},state=\"running\"}]\n"},"seq":222,"type":"event"}
1: (4106) ->1014^done,threads=[{id="5",target-id="Thread 5",frame={level="0",addr="0x00007fff729d2286",func="??",args=[],file="??",fullname="??",line="-1"},frame={level="1",addr="0x00007fff3bccdf95",func="??",args=[],file="??",fullname="??",line="-1"},frame={level="2",addr="0x00007fff3bccd525",func="??",args=[],file="??",fullname="??",line="-1"},frame={level="3",addr="0x00007fff3bcccc01",func="??",args=[],file="??",fullname="??",line="-1"},frame={level="4",addr="0x00007fff38fdcce2",func="??",args=[],file="??",fullname="??",line="-1"},frame={level="5",addr="0x00007fff72a95daa",func="??",args=[],file="??",fullname="??",line="-1"},frame={level="6",addr="0x00007fff72a926af",func="??",args=[],file="??",fullname="??",line="-1"},state="running"}]
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4106) ->(gdb)\n"},"seq":224,"type":"event"}
1: (4106) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4107) ->1015^done,threads=[{id=\"6\",target-id=\"Thread 6\",frame={level=\"0\",addr=\"0x00007fff729d3cba\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},frame={level=\"1\",addr=\"0x00007fff72a9269b\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},state=\"running\"}]\n"},"seq":226,"type":"event"}
1: (4107) ->1015^done,threads=[{id="6",target-id="Thread 6",frame={level="0",addr="0x00007fff729d3cba",func="??",args=[],file="??",fullname="??",line="-1"},frame={level="1",addr="0x00007fff72a9269b",func="??",args=[],file="??",fullname="??",line="-1"},state="running"}]
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4107) ->(gdb)\n"},"seq":228,"type":"event"}
1: (4107) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4107) ->1016^done,threads=[{id=\"7\",target-id=\"Thread 7\",frame={level=\"0\",addr=\"0x00007fff729d3cba\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},frame={level=\"1\",addr=\"0x00007fff72a9269b\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},state=\"running\"}]\n"},"seq":230,"type":"event"}
1: (4107) ->1016^done,threads=[{id="7",target-id="Thread 7",frame={level="0",addr="0x00007fff729d3cba",func="??",args=[],file="??",fullname="??",line="-1"},frame={level="1",addr="0x00007fff72a9269b",func="??",args=[],file="??",fullname="??",line="-1"},state="running"}]
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4107) ->(gdb)\n"},"seq":232,"type":"event"}
1: (4107) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4107) <-1018-exec-abort\n"},"seq":234,"type":"event"}
1: (4107) <-1018-exec-abort
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4107) ->1017^done,threads=[{id=\"8\",target-id=\"Thread 8\",frame={level=\"0\",addr=\"0x00007fff729d5a36\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},frame={level=\"1\",addr=\"0x00007fff3dcf7ccb\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},frame={level=\"2\",addr=\"0x00007fff3dcf727a\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},frame={level=\"3\",addr=\"0x00007fff72a95daa\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},frame={level=\"4\",addr=\"0x00007fff72a926af\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},state=\"running\"}]\n"},"seq":236,"type":"event"}
1: (4107) ->1017^done,threads=[{id="8",target-id="Thread 8",frame={level="0",addr="0x00007fff729d5a36",func="??",args=[],file="??",fullname="??",line="-1"},frame={level="1",addr="0x00007fff3dcf7ccb",func="??",args=[],file="??",fullname="??",line="-1"},frame={level="2",addr="0x00007fff3dcf727a",func="??",args=[],file="??",fullname="??",line="-1"},frame={level="3",addr="0x00007fff72a95daa",func="??",args=[],file="??",fullname="??",line="-1"},frame={level="4",addr="0x00007fff72a926af",func="??",args=[],file="??",fullname="??",line="-1"},state="running"}]
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4108) ->(gdb)\n"},"seq":238,"type":"event"}
1: (4108) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4109) 1011: elapsed time 6\n"},"seq":240,"type":"event"}
1: (4109) 1011: elapsed time 6
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4109) Send Event AD7ThreadCreateEvent\n"},"seq":242,"type":"event"}
1: (4109) Send Event AD7ThreadCreateEvent
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4110) 1012: elapsed time 6\n"},"seq":244,"type":"event"}
1: (4110) 1012: elapsed time 6
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4110) Send Event AD7ThreadCreateEvent\n"},"seq":246,"type":"event"}
1: (4110) Send Event AD7ThreadCreateEvent
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4110) 1013: elapsed time 7\n"},"seq":248,"type":"event"}
1: (4110) 1013: elapsed time 7
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4110) Send Event AD7ThreadCreateEvent\n"},"seq":250,"type":"event"}
1: (4110) Send Event AD7ThreadCreateEvent
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4111) 1014: elapsed time 7\n"},"seq":252,"type":"event"}
1: (4111) 1014: elapsed time 7
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4111) Send Event AD7ThreadCreateEvent\n"},"seq":254,"type":"event"}
1: (4111) Send Event AD7ThreadCreateEvent
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4111) 1015: elapsed time 7\n"},"seq":256,"type":"event"}
1: (4111) 1015: elapsed time 7
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4111) Send Event AD7ThreadCreateEvent\n"},"seq":258,"type":"event"}
1: (4111) Send Event AD7ThreadCreateEvent
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4111) 1016: elapsed time 7\n"},"seq":260,"type":"event"}
1: (4111) 1016: elapsed time 7
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4112) Send Event AD7ThreadCreateEvent\n"},"seq":262,"type":"event"}
1: (4112) Send Event AD7ThreadCreateEvent
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4112) 1017: elapsed time 7\n"},"seq":264,"type":"event"}
1: (4112) 1017: elapsed time 7
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4112) Send Event AD7ThreadCreateEvent\n"},"seq":266,"type":"event"}
1: (4112) Send Event AD7ThreadCreateEvent
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4119) ->1018^done\n"},"seq":268,"type":"event"}
1: (4119) ->1018^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4119) ->(gdb)\n"},"seq":270,"type":"event"}
1: (4119) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4119) 1018: elapsed time 12\n"},"seq":272,"type":"event"}
1: (4119) 1018: elapsed time 12
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4120) ->(gdb)\n"},"seq":274,"type":"event"}
1: (4120) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4120) ->=thread-exited,id=\"1\",group-id=\"i1\"\n"},"seq":276,"type":"event"}
1: (4120) ->=thread-exited,id="1",group-id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4120) ->=thread-group-exited,id=\"i1\",exit-code=\"0\"\n"},"seq":278,"type":"event"}
1: (4120) ->=thread-group-exited,id="i1",exit-code="0"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4121) ->*stopped,reason=\"exited-normally\"\n"},"seq":280,"type":"event"}
1: (4121) ->*stopped,reason="exited-normally"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4121) ->(gdb)\n"},"seq":282,"type":"event"}
1: (4121) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4122) Send Event AD7ThreadDestroyEvent\n"},"seq":284,"type":"event"}
1: (4122) Send Event AD7ThreadDestroyEvent
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4123) <--gdb-exit\n"},"seq":286,"type":"event"}
1: (4123) <--gdb-exit
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4123) ->^exit\n"},"seq":288,"type":"event"}
1: (4123) ->^exit
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4124) ->=thread-group-exited,id=\"i1\"\n"},"seq":290,"type":"event"}
1: (4124) ->=thread-group-exited,id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4124) ->(gdb)\n"},"seq":292,"type":"event"}
1: (4124) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4126) ->\n"},"seq":294,"type":"event"}
1: (4126) ->
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4126) ->\n"},"seq":296,"type":"event"}
1: (4126) ->
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4128) <-logout\n"},"seq":298,"type":"event"}
1: (4128) <-logout
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4129) \"/Users/jai/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders/debugAdapters/lldb/bin/lldb-mi\" exited with code 0 (0x0).\n"},"seq":300,"type":"event"}
1: (4129) "/Users/jai/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders/debugAdapters/lldb/bin/lldb-mi" exited with code 0 (0x0).
--> E (output): {"event":"output","body":{"category":"console","output":"1: (4132) Send Event AD7ProgramDestroyEvent\n"},"seq":302,"type":"event"}
1: (4132) Send Event AD7ProgramDestroyEvent
--> E (output): {"event":"output","body":{"category":"console","output":"The program '/Users/jai/Projects/TheCherno/OpenGLTut/debug/OpenGLTut.out' has exited with code 42 (0x0000002a).\r\n\n"},"seq":304,"type":"event"}
The program '/Users/jai/Projects/TheCherno/OpenGLTut/debug/OpenGLTut.out' has exited with code 42 (0x0000002a).
--> E (output): {"event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/DebugCompleted","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"14.0.60611.1","VS.Diagnostics.Debugger.HostVersion":"14.0.60611.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.DebugCompleted.BreakCounter":0}},"seq":306,"type":"event"}
--> R (disconnect-8): {"request_seq":8,"success":true,"command":"disconnect","body":{},"seq":308,"type":"response"}
From the logs, it looks like the breakpoint is ready:
1: (570) ->1007^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000010001da40",func="main",file="Application.cpp",fullname="/Users/jai/Projects/TheCherno/OpenGLTut/src/Application.cpp",line="53",pending=["main"],times="0",original-location="main"}
But your program is recieving a SIGINT and exiting:
1: (4102) ->*stopped,reason="signal-received",signal-name="SIGINT",signal-meaning="Interrupt",frame={level="0",addr="0x0000000100055000",func="??",file="??",fullname="??",line="-1"},thread-id="1",stopped-threads="all"
--> E (output): {"event":"output","body":{"category":"console","output":"The program '/Users/jai/Projects/TheCherno/OpenGLTut/debug/OpenGLTut.out' has exited with code 42 (0x0000002a).\r\n\n"},"seq":304,"type":"event"}
The program '/Users/jai/Projects/TheCherno/OpenGLTut/debug/OpenGLTut.out' has exited with code 42 (0x0000002a).
Do you stop if you enable stopAtEntry
in your launch.json?
Just add:
"stopAtEntry": true
"stopAtEntry": true,
stopAtEntry is already set to true from the json file that I have provided, and no it does not stop sadly
Not sure if the problem is related, but breakpoints stopped working for me when I upgraded to the macOS Catalina and Xcode11 betas (not sure if the bug is triggered by the macOS or Xcode update).
Both "Stop At Entry" as well as breakpoints don't work (neither breakpoints set before the debugging session starts, nor breakpoints set during the debugging session).
Using the CodeLLDB extension still works fine btw.
Debug log from the C/CPP Extension Debugger:
--> E (output): {"event":"output","body":{"category":"console","output":"1: (563) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'\n"},"seq":2,"type":"event"}
1: (563) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (584) LaunchOptions ExePath='/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp'\n"},"seq":4,"type":"event"}
1: (584) LaunchOptions ExePath='/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (585) LaunchOptions WorkingDirectory='/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS'\n"},"seq":6,"type":"event"}
1: (585) LaunchOptions WorkingDirectory='/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (587) LaunchOptions ExeArguments=''\n"},"seq":8,"type":"event"}
1: (587) LaunchOptions ExeArguments=''
--> E (output): {"event":"output","body":{"category":"console","output":"1: (589) LaunchOptions MIMode='lldb'\n"},"seq":10,"type":"event"}
1: (589) LaunchOptions MIMode='lldb'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (594) LaunchOptions MIDebuggerPath='/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi'\n"},"seq":12,"type":"event"}
1: (594) LaunchOptions MIDebuggerPath='/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (596) LaunchOptions WaitDynamicLibLoad='false'\n"},"seq":14,"type":"event"}
1: (596) LaunchOptions WaitDynamicLibLoad='false'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (598) LaunchOptions>\n"},"seq":16,"type":"event"}
1: (598) LaunchOptions>
--> E (output): {"event":"output","body":{"category":"console","output":"1: (600) LaunchOptions</LocalLaunchOptions>\n"},"seq":18,"type":"event"}
1: (600) LaunchOptions</LocalLaunchOptions>
--> E (output): {"event":"output","body":{"category":"console","output":"1: (843) Starting: \"/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi\" --interpreter=mi\n"},"seq":20,"type":"event"}
1: (843) Starting: "/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi" --interpreter=mi
--> E (output): {"event":"output","body":{"category":"console","output":"1: (870) DebuggerPid=12060\n"},"seq":22,"type":"event"}
1: (870) DebuggerPid=12060
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1042) ->(gdb)\n"},"seq":24,"type":"event"}
1: (1042) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1055) <-1001-gdb-set auto-solib-add on\n"},"seq":26,"type":"event"}
1: (1055) <-1001-gdb-set auto-solib-add on
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1056) ->1001^done\n"},"seq":28,"type":"event"}
1: (1056) ->1001^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1057) ->(gdb)\n"},"seq":30,"type":"event"}
1: (1057) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1059) 1001: elapsed time 4\n"},"seq":32,"type":"event"}
1: (1059) 1001: elapsed time 4
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1060) <-1002-gdb-set solib-search-path \"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS:\"\n"},"seq":34,"type":"event"}
1: (1060) <-1002-gdb-set solib-search-path "/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS:"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1060) ->1002^done\n"},"seq":36,"type":"event"}
1: (1060) ->1002^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1061) 1002: elapsed time 0\n"},"seq":38,"type":"event"}
1: (1061) 1002: elapsed time 0
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1061) ->(gdb)\n"},"seq":40,"type":"event"}
1: (1061) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1061) <-1003-environment-cd /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS\n"},"seq":42,"type":"event"}
1: (1061) <-1003-environment-cd /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1062) ->1003^done,path=\"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS\"\n"},"seq":44,"type":"event"}
1: (1062) ->1003^done,path="/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1062) ->(gdb)\n"},"seq":46,"type":"event"}
1: (1062) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1066) 1003: elapsed time 4\n"},"seq":48,"type":"event"}
1: (1066) 1003: elapsed time 4
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1066) <-1004-file-exec-and-symbols /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp\n"},"seq":50,"type":"event"}
1: (1066) <-1004-file-exec-and-symbols /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1167) ->1004^done\n"},"seq":52,"type":"event"}
1: (1167) ->1004^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1168) 1004: elapsed time 101\n"},"seq":54,"type":"event"}
1: (1168) 1004: elapsed time 101
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1169) ->(gdb)\n"},"seq":56,"type":"event"}
1: (1169) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1170) ->=library-loaded,id=\"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp\",target-name=\"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp\",host-name=\"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp\",symbols-loaded=\"0\",loaded_addr=\"-\",size=\"131072\"\n"},"seq":58,"type":"event"}
1: (1170) ->=library-loaded,id="/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp",target-name="/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp",host-name="/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp",symbols-loaded="0",loaded_addr="-",size="131072"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1171) <-1005-interpreter-exec console \"platform status\"\n"},"seq":60,"type":"event"}
1: (1171) <-1005-interpreter-exec console "platform status"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1172) -> Platform: host\n"},"seq":62,"type":"event"}
1: (1172) -> Platform: host
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1173) -> Triple: x86_64h-apple-macosx\n"},"seq":64,"type":"event"}
1: (1173) -> Triple: x86_64h-apple-macosx
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1173) ->OS Version: 10.15 (19A501i)\n"},"seq":66,"type":"event"}
1: (1173) ->OS Version: 10.15 (19A501i)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1174) -> Kernel: Darwin Kernel Version 19.0.0: Thu Jun 27 20:18:24 PDT 2019; root:xnu-6153.0.13.131.3~1/RELEASE_X86_64\n"},"seq":68,"type":"event"}
1: (1174) -> Kernel: Darwin Kernel Version 19.0.0: Thu Jun 27 20:18:24 PDT 2019; root:xnu-6153.0.13.131.3~1/RELEASE_X86_64
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1174) -> Hostname: 127.0.0.1\n"},"seq":70,"type":"event"}
1: (1174) -> Hostname: 127.0.0.1
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1175) ->WorkingDir: /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS\n"},"seq":72,"type":"event"}
1: (1175) ->WorkingDir: /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1176) ->1005^done\n"},"seq":74,"type":"event"}
1: (1176) ->1005^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1176) ->(gdb)\n"},"seq":76,"type":"event"}
1: (1176) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1176) 1005: elapsed time 4\n"},"seq":78,"type":"event"}
1: (1176) 1005: elapsed time 4
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1178) <-1006-break-insert -f on main\n"},"seq":80,"type":"event"}
1: (1178) <-1006-break-insert -f on main
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1182) ->1006^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000100006389\",func=\"main\",file=\"sokol.m\",fullname=\"/Users/floh/projects/sokol-samples/libs/sokol/sokol.m\",line=\"1244\",pending=[\"main\"],times=\"0\",original-location=\"main\"}\n"},"seq":82,"type":"event"}
1: (1182) ->1006^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100006389",func="main",file="sokol.m",fullname="/Users/floh/projects/sokol-samples/libs/sokol/sokol.m",line="1244",pending=["main"],times="0",original-location="main"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1182) ->(gdb)\n"},"seq":84,"type":"event"}
1: (1182) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1183) ->=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000100006389\",func=\"main\",file=\"sokol.m\",fullname=\"/Users/floh/projects/sokol-samples/libs/sokol/sokol.m\",line=\"1244\",pending=[\"main\"],times=\"0\",original-location=\"main\"}\n"},"seq":86,"type":"event"}
1: (1183) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100006389",func="main",file="sokol.m",fullname="/Users/floh/projects/sokol-samples/libs/sokol/sokol.m",line="1244",pending=["main"],times="0",original-location="main"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1184) ->(gdb)\n"},"seq":88,"type":"event"}
1: (1184) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1187) 1006: elapsed time 8\n"},"seq":90,"type":"event"}
1: (1187) 1006: elapsed time 8
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1194) Send Event AD7EngineCreateEvent\n"},"seq":92,"type":"event"}
1: (1194) Send Event AD7EngineCreateEvent
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1197) Send Event AD7ProgramCreateEvent\n"},"seq":94,"type":"event"}
1: (1197) Send Event AD7ProgramCreateEvent
--> E (output): {"event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/Launch","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"14.0.60611.1","VS.Diagnostics.Debugger.HostVersion":"14.0.60611.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":799,"VS.Diagnostics.Debugger.Launch.IsCoreDump":false,"VS.Diagnostics.Debugger.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.SourceFileMappings":0}},"seq":96,"type":"event"}
--> R (launch-2): {"request_seq":2,"success":true,"command":"launch","body":{},"seq":98,"type":"response"}
--> E (initialized): {"event":"initialized","body":{},"seq":100,"type":"event"}
<-- C (setBreakpoints-3): {"command":"setBreakpoints","arguments":{"source":{"name":"arraytex-sapp.c","path":"/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c"},"lines":[29],"breakpoints":[{"line":29}],"sourceModified":false},"type":"request","seq":3}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1288) <-1007-break-insert -f on arraytex-sapp.c:29\n"},"seq":103,"type":"event"}
1: (1288) <-1007-break-insert -f on arraytex-sapp.c:29
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1290) ->1007^done,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000100005399\",func=\"init\",file=\"arraytex-sapp.c\",fullname=\"/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c\",line=\"29\",pending=[\"arraytex-sapp.c:29\"],times=\"0\",original-location=\"arraytex-sapp.c:29\"}\n"},"seq":105,"type":"event"}
1: (1290) ->1007^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100005399",func="init",file="arraytex-sapp.c",fullname="/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c",line="29",pending=["arraytex-sapp.c:29"],times="0",original-location="arraytex-sapp.c:29"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1290) 1007: elapsed time 2\n"},"seq":107,"type":"event"}
1: (1290) 1007: elapsed time 2
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1291) ->(gdb)\n"},"seq":109,"type":"event"}
1: (1291) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1292) ->=breakpoint-modified,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000100005399\",func=\"init\",file=\"arraytex-sapp.c\",fullname=\"/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c\",line=\"29\",pending=[\"arraytex-sapp.c:29\"],times=\"0\",original-location=\"arraytex-sapp.c:29\"}\n"},"seq":111,"type":"event"}
1: (1292) ->=breakpoint-modified,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100005399",func="init",file="arraytex-sapp.c",fullname="/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c",line="29",pending=["arraytex-sapp.c:29"],times="0",original-location="arraytex-sapp.c:29"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1293) ->(gdb)\n"},"seq":113,"type":"event"}
1: (1293) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1302) Send Event AD7BreakpointBoundEvent\n"},"seq":115,"type":"event"}
1: (1302) Send Event AD7BreakpointBoundEvent
--> R (setBreakpoints-3): {"request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":true,"line":29}]},"seq":117,"type":"response"}
--> E (breakpoint): {"event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":1,"verified":true,"line":29}},"seq":119,"type":"event"}
<-- C (setFunctionBreakpoints-4): {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4}
--> R (setFunctionBreakpoints-4): {"request_seq":4,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]},"seq":122,"type":"response"}
<-- C (setExceptionBreakpoints-5): {"command":"setExceptionBreakpoints","arguments":{"filters":[]},"type":"request","seq":5}
--> R (setExceptionBreakpoints-5): {"request_seq":5,"success":true,"command":"setExceptionBreakpoints","body":{},"seq":125,"type":"response"}
<-- C (configurationDone-6): {"command":"configurationDone","type":"request","seq":6}
1: (1386) Send Event AD7LoadCompleteEvent
--> R (configurationDone-6): {"request_seq":6,"success":true,"command":"configurationDone","body":{},"seq":128,"type":"response"}
<-- C (threads-7): {"command":"threads","type":"request","seq":7}
--> E (output): {"event":"output","body":{"category":"stdout","output":"Warning: Debuggee TargetArchitecture not detected, assuming x86_64.\n"},"seq":132,"type":"event"}
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1405) <-1008-exec-run\n"},"seq":135,"type":"event"}
1: (1405) <-1008-exec-run
--> R (threads-7): {"request_seq":7,"success":true,"command":"threads","body":{"threads":[]},"seq":134,"type":"response"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1730) ->1008^running\n"},"seq":138,"type":"event"}
1: (1730) ->1008^running
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1731) ->=thread-group-started,id=\"i1\",pid=\"12061\"\n"},"seq":140,"type":"event"}
1: (1731) ->=thread-group-started,id="i1",pid="12061"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1731) 1008: elapsed time 325\n"},"seq":142,"type":"event"}
1: (1731) 1008: elapsed time 325
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1732) ->(gdb)\n"},"seq":144,"type":"event"}
1: (1732) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1733) ->=thread-created,id=\"1\",group-id=\"i1\"\n"},"seq":146,"type":"event"}
1: (1733) ->=thread-created,id="1",group-id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1734) ->=thread-selected,id=\"1\"\n"},"seq":148,"type":"event"}
1: (1734) ->=thread-selected,id="1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1734) ->(gdb)\n"},"seq":150,"type":"event"}
1: (1734) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1735) ->*running,thread-id=\"all\"\n"},"seq":152,"type":"event"}
1: (1735) ->*running,thread-id="all"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1737) ->(gdb)\n"},"seq":154,"type":"event"}
1: (1737) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1739) <-1009-thread-info 1\n"},"seq":156,"type":"event"}
1: (1739) <-1009-thread-info 1
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1740) ->1009^done,threads=[{id=\"1\",target-id=\"Thread 1\",frame={level=\"0\",addr=\"0x0000000100031000\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},state=\"running\"}]\n"},"seq":158,"type":"event"}
1: (1740) ->1009^done,threads=[{id="1",target-id="Thread 1",frame={level="0",addr="0x0000000100031000",func="??",args=[],file="??",fullname="??",line="-1"},state="running"}]
--> E (output): {"event":"output","body":{"category":"stdout","output":"=thread-selected,id=\"1\"\n"},"seq":160,"type":"event"}
1: (1741) ->(gdb)
=thread-selected,id="1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1743) 1009: elapsed time 3\n"},"seq":163,"type":"event"}
1: (1743) 1009: elapsed time 3
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1747) Send Event AD7ProcessInfoUpdatedEvent\n"},"seq":165,"type":"event"}
1: (1747) Send Event AD7ProcessInfoUpdatedEvent
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1747) Send Event AD7ThreadCreateEvent\n"},"seq":167,"type":"event"}
1: (1747) Send Event AD7ThreadCreateEvent
--> E (thread): {"event":"thread","body":{"reason":"started","threadId":1},"seq":169,"type":"event"}
<-- C (threads-8): {"command":"threads","type":"request","seq":8}
--> R (threads-8): {"request_seq":8,"success":true,"command":"threads","body":{"threads":[{"id":1,"name":"Thread #1"}]},"seq":172,"type":"response"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5780) ->(gdb)\n"},"seq":174,"type":"event"}
1: (5780) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5781) ->=thread-exited,id=\"1\",group-id=\"i1\"\n"},"seq":176,"type":"event"}
1: (5781) ->=thread-exited,id="1",group-id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5782) ->=thread-group-exited,id=\"i1\",exit-code=\"0\"\n"},"seq":178,"type":"event"}
1: (5782) ->=thread-group-exited,id="i1",exit-code="0"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5782) ->*stopped,reason=\"exited-normally\"\n"},"seq":180,"type":"event"}
1: (5782) ->*stopped,reason="exited-normally"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5783) ->(gdb)\n"},"seq":182,"type":"event"}
1: (5783) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5787) Send Event AD7ThreadDestroyEvent\n"},"seq":184,"type":"event"}
1: (5787) Send Event AD7ThreadDestroyEvent
--> E (thread): {"event":"thread","body":{"reason":"exited","threadId":1},"seq":186,"type":"event"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5795) <--gdb-exit\n"},"seq":188,"type":"event"}
1: (5795) <--gdb-exit
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5796) ->^exit\n"},"seq":190,"type":"event"}
1: (5796) ->^exit
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5797) ->=thread-group-exited,id=\"i1\"\n"},"seq":192,"type":"event"}
1: (5797) ->=thread-group-exited,id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5797) ->(gdb)\n"},"seq":194,"type":"event"}
1: (5797) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5802) ->\n"},"seq":196,"type":"event"}
1: (5802) ->
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5802) ->\n"},"seq":198,"type":"event"}
1: (5802) ->
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5804) <-logout\n"},"seq":200,"type":"event"}
1: (5804) <-logout
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5817) \"/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi\" exited with code 0 (0x0).\n"},"seq":202,"type":"event"}
1: (5817) "/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi" exited with code 0 (0x0).
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5820) Send Event AD7ProgramDestroyEvent\n"},"seq":204,"type":"event"}
1: (5820) Send Event AD7ProgramDestroyEvent
--> E (output): {"event":"output","body":{"category":"console","output":"The program '/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp' has exited with code 0 (0x00000000).\r\n\n"},"seq":206,"type":"event"}
The program '/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp' has exited with code 0 (0x00000000).
--> E (exited): {"event":"exited","body":{"exitCode":0},"seq":208,"type":"event"}
--> E (terminated): {"event":"terminated","body":{},"seq":210,"type":"event"}
--> E (output): {"event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/DebugCompleted","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"14.0.60611.1","VS.Diagnostics.Debugger.HostVersion":"14.0.60611.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.DebugCompleted.BreakCounter":0}},"seq":212,"type":"event"}
<-- C (disconnect-9): {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":9}
--> R (disconnect-9): {"request_seq":9,"success":true,"command":"disconnect","body":{},"seq":215,"type":"response"}
Not sure if the problem is related, but breakpoints stopped working for me when I upgraded to the macOS Catalina and Xcode11 betas (not sure if the bug is triggered by the macOS or Xcode update).
Both "Stop At Entry" as well as breakpoints don't work (neither breakpoints set before the debugging session starts, nor breakpoints set during the debugging session).
Using the CodeLLDB extension still works fine btw.
Debug log from the C/CPP Extension Debugger:
--> E (output): {"event":"output","body":{"category":"console","output":"1: (563) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'\n"},"seq":2,"type":"event"} 1: (563) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014' --> E (output): {"event":"output","body":{"category":"console","output":"1: (584) LaunchOptions ExePath='/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp'\n"},"seq":4,"type":"event"} 1: (584) LaunchOptions ExePath='/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp' --> E (output): {"event":"output","body":{"category":"console","output":"1: (585) LaunchOptions WorkingDirectory='/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS'\n"},"seq":6,"type":"event"} 1: (585) LaunchOptions WorkingDirectory='/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS' --> E (output): {"event":"output","body":{"category":"console","output":"1: (587) LaunchOptions ExeArguments=''\n"},"seq":8,"type":"event"} 1: (587) LaunchOptions ExeArguments='' --> E (output): {"event":"output","body":{"category":"console","output":"1: (589) LaunchOptions MIMode='lldb'\n"},"seq":10,"type":"event"} 1: (589) LaunchOptions MIMode='lldb' --> E (output): {"event":"output","body":{"category":"console","output":"1: (594) LaunchOptions MIDebuggerPath='/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi'\n"},"seq":12,"type":"event"} 1: (594) LaunchOptions MIDebuggerPath='/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi' --> E (output): {"event":"output","body":{"category":"console","output":"1: (596) LaunchOptions WaitDynamicLibLoad='false'\n"},"seq":14,"type":"event"} 1: (596) LaunchOptions WaitDynamicLibLoad='false' --> E (output): {"event":"output","body":{"category":"console","output":"1: (598) LaunchOptions>\n"},"seq":16,"type":"event"} 1: (598) LaunchOptions> --> E (output): {"event":"output","body":{"category":"console","output":"1: (600) LaunchOptions</LocalLaunchOptions>\n"},"seq":18,"type":"event"} 1: (600) LaunchOptions</LocalLaunchOptions> --> E (output): {"event":"output","body":{"category":"console","output":"1: (843) Starting: \"/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi\" --interpreter=mi\n"},"seq":20,"type":"event"} 1: (843) Starting: "/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi" --interpreter=mi --> E (output): {"event":"output","body":{"category":"console","output":"1: (870) DebuggerPid=12060\n"},"seq":22,"type":"event"} 1: (870) DebuggerPid=12060 --> E (output): {"event":"output","body":{"category":"console","output":"1: (1042) ->(gdb)\n"},"seq":24,"type":"event"} 1: (1042) ->(gdb) --> E (output): {"event":"output","body":{"category":"console","output":"1: (1055) <-1001-gdb-set auto-solib-add on\n"},"seq":26,"type":"event"} 1: (1055) <-1001-gdb-set auto-solib-add on --> E (output): {"event":"output","body":{"category":"console","output":"1: (1056) ->1001^done\n"},"seq":28,"type":"event"} 1: (1056) ->1001^done --> E (output): {"event":"output","body":{"category":"console","output":"1: (1057) ->(gdb)\n"},"seq":30,"type":"event"} 1: (1057) ->(gdb) --> E (output): {"event":"output","body":{"category":"console","output":"1: (1059) 1001: elapsed time 4\n"},"seq":32,"type":"event"} 1: (1059) 1001: elapsed time 4 --> E (output): {"event":"output","body":{"category":"console","output":"1: (1060) <-1002-gdb-set solib-search-path \"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS:\"\n"},"seq":34,"type":"event"} 1: (1060) <-1002-gdb-set solib-search-path "/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS:" --> E (output): {"event":"output","body":{"category":"console","output":"1: (1060) ->1002^done\n"},"seq":36,"type":"event"} 1: (1060) ->1002^done --> E (output): {"event":"output","body":{"category":"console","output":"1: (1061) 1002: elapsed time 0\n"},"seq":38,"type":"event"} 1: (1061) 1002: elapsed time 0 --> E (output): {"event":"output","body":{"category":"console","output":"1: (1061) ->(gdb)\n"},"seq":40,"type":"event"} 1: (1061) ->(gdb) --> E (output): {"event":"output","body":{"category":"console","output":"1: (1061) <-1003-environment-cd /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS\n"},"seq":42,"type":"event"} 1: (1061) <-1003-environment-cd /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS --> E (output): {"event":"output","body":{"category":"console","output":"1: (1062) ->1003^done,path=\"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS\"\n"},"seq":44,"type":"event"} 1: (1062) ->1003^done,path="/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS" --> E (output): {"event":"output","body":{"category":"console","output":"1: (1062) ->(gdb)\n"},"seq":46,"type":"event"} 1: (1062) ->(gdb) --> E (output): {"event":"output","body":{"category":"console","output":"1: (1066) 1003: elapsed time 4\n"},"seq":48,"type":"event"} 1: (1066) 1003: elapsed time 4 --> E (output): {"event":"output","body":{"category":"console","output":"1: (1066) <-1004-file-exec-and-symbols /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp\n"},"seq":50,"type":"event"} 1: (1066) <-1004-file-exec-and-symbols /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp --> E (output): {"event":"output","body":{"category":"console","output":"1: (1167) ->1004^done\n"},"seq":52,"type":"event"} 1: (1167) ->1004^done --> E (output): {"event":"output","body":{"category":"console","output":"1: (1168) 1004: elapsed time 101\n"},"seq":54,"type":"event"} 1: (1168) 1004: elapsed time 101 --> E (output): {"event":"output","body":{"category":"console","output":"1: (1169) ->(gdb)\n"},"seq":56,"type":"event"} 1: (1169) ->(gdb) --> E (output): {"event":"output","body":{"category":"console","output":"1: (1170) ->=library-loaded,id=\"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp\",target-name=\"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp\",host-name=\"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp\",symbols-loaded=\"0\",loaded_addr=\"-\",size=\"131072\"\n"},"seq":58,"type":"event"} 1: (1170) ->=library-loaded,id="/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp",target-name="/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp",host-name="/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp",symbols-loaded="0",loaded_addr="-",size="131072" --> E (output): {"event":"output","body":{"category":"console","output":"1: (1171) <-1005-interpreter-exec console \"platform status\"\n"},"seq":60,"type":"event"} 1: (1171) <-1005-interpreter-exec console "platform status" --> E (output): {"event":"output","body":{"category":"console","output":"1: (1172) -> Platform: host\n"},"seq":62,"type":"event"} 1: (1172) -> Platform: host --> E (output): {"event":"output","body":{"category":"console","output":"1: (1173) -> Triple: x86_64h-apple-macosx\n"},"seq":64,"type":"event"} 1: (1173) -> Triple: x86_64h-apple-macosx --> E (output): {"event":"output","body":{"category":"console","output":"1: (1173) ->OS Version: 10.15 (19A501i)\n"},"seq":66,"type":"event"} 1: (1173) ->OS Version: 10.15 (19A501i) --> E (output): {"event":"output","body":{"category":"console","output":"1: (1174) -> Kernel: Darwin Kernel Version 19.0.0: Thu Jun 27 20:18:24 PDT 2019; root:xnu-6153.0.13.131.3~1/RELEASE_X86_64\n"},"seq":68,"type":"event"} 1: (1174) -> Kernel: Darwin Kernel Version 19.0.0: Thu Jun 27 20:18:24 PDT 2019; root:xnu-6153.0.13.131.3~1/RELEASE_X86_64 --> E (output): {"event":"output","body":{"category":"console","output":"1: (1174) -> Hostname: 127.0.0.1\n"},"seq":70,"type":"event"} 1: (1174) -> Hostname: 127.0.0.1 --> E (output): {"event":"output","body":{"category":"console","output":"1: (1175) ->WorkingDir: /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS\n"},"seq":72,"type":"event"} 1: (1175) ->WorkingDir: /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS --> E (output): {"event":"output","body":{"category":"console","output":"1: (1176) ->1005^done\n"},"seq":74,"type":"event"} 1: (1176) ->1005^done --> E (output): {"event":"output","body":{"category":"console","output":"1: (1176) ->(gdb)\n"},"seq":76,"type":"event"} 1: (1176) ->(gdb) --> E (output): {"event":"output","body":{"category":"console","output":"1: (1176) 1005: elapsed time 4\n"},"seq":78,"type":"event"} 1: (1176) 1005: elapsed time 4 --> E (output): {"event":"output","body":{"category":"console","output":"1: (1178) <-1006-break-insert -f on main\n"},"seq":80,"type":"event"} 1: (1178) <-1006-break-insert -f on main --> E (output): {"event":"output","body":{"category":"console","output":"1: (1182) ->1006^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000100006389\",func=\"main\",file=\"sokol.m\",fullname=\"/Users/floh/projects/sokol-samples/libs/sokol/sokol.m\",line=\"1244\",pending=[\"main\"],times=\"0\",original-location=\"main\"}\n"},"seq":82,"type":"event"} 1: (1182) ->1006^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100006389",func="main",file="sokol.m",fullname="/Users/floh/projects/sokol-samples/libs/sokol/sokol.m",line="1244",pending=["main"],times="0",original-location="main"} --> E (output): {"event":"output","body":{"category":"console","output":"1: (1182) ->(gdb)\n"},"seq":84,"type":"event"} 1: (1182) ->(gdb) --> E (output): {"event":"output","body":{"category":"console","output":"1: (1183) ->=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000100006389\",func=\"main\",file=\"sokol.m\",fullname=\"/Users/floh/projects/sokol-samples/libs/sokol/sokol.m\",line=\"1244\",pending=[\"main\"],times=\"0\",original-location=\"main\"}\n"},"seq":86,"type":"event"} 1: (1183) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100006389",func="main",file="sokol.m",fullname="/Users/floh/projects/sokol-samples/libs/sokol/sokol.m",line="1244",pending=["main"],times="0",original-location="main"} --> E (output): {"event":"output","body":{"category":"console","output":"1: (1184) ->(gdb)\n"},"seq":88,"type":"event"} 1: (1184) ->(gdb) --> E (output): {"event":"output","body":{"category":"console","output":"1: (1187) 1006: elapsed time 8\n"},"seq":90,"type":"event"} 1: (1187) 1006: elapsed time 8 --> E (output): {"event":"output","body":{"category":"console","output":"1: (1194) Send Event AD7EngineCreateEvent\n"},"seq":92,"type":"event"} 1: (1194) Send Event AD7EngineCreateEvent --> E (output): {"event":"output","body":{"category":"console","output":"1: (1197) Send Event AD7ProgramCreateEvent\n"},"seq":94,"type":"event"} 1: (1197) Send Event AD7ProgramCreateEvent --> E (output): {"event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/Launch","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"14.0.60611.1","VS.Diagnostics.Debugger.HostVersion":"14.0.60611.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":799,"VS.Diagnostics.Debugger.Launch.IsCoreDump":false,"VS.Diagnostics.Debugger.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.SourceFileMappings":0}},"seq":96,"type":"event"} --> R (launch-2): {"request_seq":2,"success":true,"command":"launch","body":{},"seq":98,"type":"response"} --> E (initialized): {"event":"initialized","body":{},"seq":100,"type":"event"} <-- C (setBreakpoints-3): {"command":"setBreakpoints","arguments":{"source":{"name":"arraytex-sapp.c","path":"/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c"},"lines":[29],"breakpoints":[{"line":29}],"sourceModified":false},"type":"request","seq":3} --> E (output): {"event":"output","body":{"category":"console","output":"1: (1288) <-1007-break-insert -f on arraytex-sapp.c:29\n"},"seq":103,"type":"event"} 1: (1288) <-1007-break-insert -f on arraytex-sapp.c:29 --> E (output): {"event":"output","body":{"category":"console","output":"1: (1290) ->1007^done,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000100005399\",func=\"init\",file=\"arraytex-sapp.c\",fullname=\"/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c\",line=\"29\",pending=[\"arraytex-sapp.c:29\"],times=\"0\",original-location=\"arraytex-sapp.c:29\"}\n"},"seq":105,"type":"event"} 1: (1290) ->1007^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100005399",func="init",file="arraytex-sapp.c",fullname="/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c",line="29",pending=["arraytex-sapp.c:29"],times="0",original-location="arraytex-sapp.c:29"} --> E (output): {"event":"output","body":{"category":"console","output":"1: (1290) 1007: elapsed time 2\n"},"seq":107,"type":"event"} 1: (1290) 1007: elapsed time 2 --> E (output): {"event":"output","body":{"category":"console","output":"1: (1291) ->(gdb)\n"},"seq":109,"type":"event"} 1: (1291) ->(gdb) --> E (output): {"event":"output","body":{"category":"console","output":"1: (1292) ->=breakpoint-modified,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000100005399\",func=\"init\",file=\"arraytex-sapp.c\",fullname=\"/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c\",line=\"29\",pending=[\"arraytex-sapp.c:29\"],times=\"0\",original-location=\"arraytex-sapp.c:29\"}\n"},"seq":111,"type":"event"} 1: (1292) ->=breakpoint-modified,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100005399",func="init",file="arraytex-sapp.c",fullname="/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c",line="29",pending=["arraytex-sapp.c:29"],times="0",original-location="arraytex-sapp.c:29"} --> E (output): {"event":"output","body":{"category":"console","output":"1: (1293) ->(gdb)\n"},"seq":113,"type":"event"} 1: (1293) ->(gdb) --> E (output): {"event":"output","body":{"category":"console","output":"1: (1302) Send Event AD7BreakpointBoundEvent\n"},"seq":115,"type":"event"} 1: (1302) Send Event AD7BreakpointBoundEvent --> R (setBreakpoints-3): {"request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":true,"line":29}]},"seq":117,"type":"response"} --> E (breakpoint): {"event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":1,"verified":true,"line":29}},"seq":119,"type":"event"} <-- C (setFunctionBreakpoints-4): {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4} --> R (setFunctionBreakpoints-4): {"request_seq":4,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]},"seq":122,"type":"response"} <-- C (setExceptionBreakpoints-5): {"command":"setExceptionBreakpoints","arguments":{"filters":[]},"type":"request","seq":5} --> R (setExceptionBreakpoints-5): {"request_seq":5,"success":true,"command":"setExceptionBreakpoints","body":{},"seq":125,"type":"response"} <-- C (configurationDone-6): {"command":"configurationDone","type":"request","seq":6} 1: (1386) Send Event AD7LoadCompleteEvent --> R (configurationDone-6): {"request_seq":6,"success":true,"command":"configurationDone","body":{},"seq":128,"type":"response"} <-- C (threads-7): {"command":"threads","type":"request","seq":7} --> E (output): {"event":"output","body":{"category":"stdout","output":"Warning: Debuggee TargetArchitecture not detected, assuming x86_64.\n"},"seq":132,"type":"event"} Warning: Debuggee TargetArchitecture not detected, assuming x86_64. --> E (output): {"event":"output","body":{"category":"console","output":"1: (1405) <-1008-exec-run\n"},"seq":135,"type":"event"} 1: (1405) <-1008-exec-run --> R (threads-7): {"request_seq":7,"success":true,"command":"threads","body":{"threads":[]},"seq":134,"type":"response"} --> E (output): {"event":"output","body":{"category":"console","output":"1: (1730) ->1008^running\n"},"seq":138,"type":"event"} 1: (1730) ->1008^running --> E (output): {"event":"output","body":{"category":"console","output":"1: (1731) ->=thread-group-started,id=\"i1\",pid=\"12061\"\n"},"seq":140,"type":"event"} 1: (1731) ->=thread-group-started,id="i1",pid="12061" --> E (output): {"event":"output","body":{"category":"console","output":"1: (1731) 1008: elapsed time 325\n"},"seq":142,"type":"event"} 1: (1731) 1008: elapsed time 325 --> E (output): {"event":"output","body":{"category":"console","output":"1: (1732) ->(gdb)\n"},"seq":144,"type":"event"} 1: (1732) ->(gdb) --> E (output): {"event":"output","body":{"category":"console","output":"1: (1733) ->=thread-created,id=\"1\",group-id=\"i1\"\n"},"seq":146,"type":"event"} 1: (1733) ->=thread-created,id="1",group-id="i1" --> E (output): {"event":"output","body":{"category":"console","output":"1: (1734) ->=thread-selected,id=\"1\"\n"},"seq":148,"type":"event"} 1: (1734) ->=thread-selected,id="1" --> E (output): {"event":"output","body":{"category":"console","output":"1: (1734) ->(gdb)\n"},"seq":150,"type":"event"} 1: (1734) ->(gdb) --> E (output): {"event":"output","body":{"category":"console","output":"1: (1735) ->*running,thread-id=\"all\"\n"},"seq":152,"type":"event"} 1: (1735) ->*running,thread-id="all" --> E (output): {"event":"output","body":{"category":"console","output":"1: (1737) ->(gdb)\n"},"seq":154,"type":"event"} 1: (1737) ->(gdb) --> E (output): {"event":"output","body":{"category":"console","output":"1: (1739) <-1009-thread-info 1\n"},"seq":156,"type":"event"} 1: (1739) <-1009-thread-info 1 --> E (output): {"event":"output","body":{"category":"console","output":"1: (1740) ->1009^done,threads=[{id=\"1\",target-id=\"Thread 1\",frame={level=\"0\",addr=\"0x0000000100031000\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},state=\"running\"}]\n"},"seq":158,"type":"event"} 1: (1740) ->1009^done,threads=[{id="1",target-id="Thread 1",frame={level="0",addr="0x0000000100031000",func="??",args=[],file="??",fullname="??",line="-1"},state="running"}] --> E (output): {"event":"output","body":{"category":"stdout","output":"=thread-selected,id=\"1\"\n"},"seq":160,"type":"event"} 1: (1741) ->(gdb) =thread-selected,id="1" --> E (output): {"event":"output","body":{"category":"console","output":"1: (1743) 1009: elapsed time 3\n"},"seq":163,"type":"event"} 1: (1743) 1009: elapsed time 3 --> E (output): {"event":"output","body":{"category":"console","output":"1: (1747) Send Event AD7ProcessInfoUpdatedEvent\n"},"seq":165,"type":"event"} 1: (1747) Send Event AD7ProcessInfoUpdatedEvent --> E (output): {"event":"output","body":{"category":"console","output":"1: (1747) Send Event AD7ThreadCreateEvent\n"},"seq":167,"type":"event"} 1: (1747) Send Event AD7ThreadCreateEvent --> E (thread): {"event":"thread","body":{"reason":"started","threadId":1},"seq":169,"type":"event"} <-- C (threads-8): {"command":"threads","type":"request","seq":8} --> R (threads-8): {"request_seq":8,"success":true,"command":"threads","body":{"threads":[{"id":1,"name":"Thread #1"}]},"seq":172,"type":"response"} --> E (output): {"event":"output","body":{"category":"console","output":"1: (5780) ->(gdb)\n"},"seq":174,"type":"event"} 1: (5780) ->(gdb) --> E (output): {"event":"output","body":{"category":"console","output":"1: (5781) ->=thread-exited,id=\"1\",group-id=\"i1\"\n"},"seq":176,"type":"event"} 1: (5781) ->=thread-exited,id="1",group-id="i1" --> E (output): {"event":"output","body":{"category":"console","output":"1: (5782) ->=thread-group-exited,id=\"i1\",exit-code=\"0\"\n"},"seq":178,"type":"event"} 1: (5782) ->=thread-group-exited,id="i1",exit-code="0" --> E (output): {"event":"output","body":{"category":"console","output":"1: (5782) ->*stopped,reason=\"exited-normally\"\n"},"seq":180,"type":"event"} 1: (5782) ->*stopped,reason="exited-normally" --> E (output): {"event":"output","body":{"category":"console","output":"1: (5783) ->(gdb)\n"},"seq":182,"type":"event"} 1: (5783) ->(gdb) --> E (output): {"event":"output","body":{"category":"console","output":"1: (5787) Send Event AD7ThreadDestroyEvent\n"},"seq":184,"type":"event"} 1: (5787) Send Event AD7ThreadDestroyEvent --> E (thread): {"event":"thread","body":{"reason":"exited","threadId":1},"seq":186,"type":"event"} --> E (output): {"event":"output","body":{"category":"console","output":"1: (5795) <--gdb-exit\n"},"seq":188,"type":"event"} 1: (5795) <--gdb-exit --> E (output): {"event":"output","body":{"category":"console","output":"1: (5796) ->^exit\n"},"seq":190,"type":"event"} 1: (5796) ->^exit --> E (output): {"event":"output","body":{"category":"console","output":"1: (5797) ->=thread-group-exited,id=\"i1\"\n"},"seq":192,"type":"event"} 1: (5797) ->=thread-group-exited,id="i1" --> E (output): {"event":"output","body":{"category":"console","output":"1: (5797) ->(gdb)\n"},"seq":194,"type":"event"} 1: (5797) ->(gdb) --> E (output): {"event":"output","body":{"category":"console","output":"1: (5802) ->\n"},"seq":196,"type":"event"} 1: (5802) -> --> E (output): {"event":"output","body":{"category":"console","output":"1: (5802) ->\n"},"seq":198,"type":"event"} 1: (5802) -> --> E (output): {"event":"output","body":{"category":"console","output":"1: (5804) <-logout\n"},"seq":200,"type":"event"} 1: (5804) <-logout --> E (output): {"event":"output","body":{"category":"console","output":"1: (5817) \"/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi\" exited with code 0 (0x0).\n"},"seq":202,"type":"event"} 1: (5817) "/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi" exited with code 0 (0x0). --> E (output): {"event":"output","body":{"category":"console","output":"1: (5820) Send Event AD7ProgramDestroyEvent\n"},"seq":204,"type":"event"} 1: (5820) Send Event AD7ProgramDestroyEvent --> E (output): {"event":"output","body":{"category":"console","output":"The program '/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp' has exited with code 0 (0x00000000).\r\n\n"},"seq":206,"type":"event"} The program '/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp' has exited with code 0 (0x00000000). --> E (exited): {"event":"exited","body":{"exitCode":0},"seq":208,"type":"event"} --> E (terminated): {"event":"terminated","body":{},"seq":210,"type":"event"} --> E (output): {"event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/DebugCompleted","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"14.0.60611.1","VS.Diagnostics.Debugger.HostVersion":"14.0.60611.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.DebugCompleted.BreakCounter":0}},"seq":212,"type":"event"} <-- C (disconnect-9): {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":9} --> R (disconnect-9): {"request_seq":9,"success":true,"command":"disconnect","body":{},"seq":215,"type":"response"}
Hi, sorry I forgot that I had updated to Catalina...I do not however have the Xcode beta. I'm guessing since we are both experiencing the issue, that it is a 10.15 beta issue. codelldb works however, I can confirm!
Ping. Just wanted to mention that the problem persists with the latest Catalina Beta and Xcode11 "Gold Master" version, both pretty late in their release cycle, so I think that's not something that will be fixed on Apple's part.
Also the CodeLLDB extension doesn't have the problem.
Same problem.
Just spent the last hour banging my head against the table trying to figure out what I was doing wrong and then I find this issue!
So add me to the list of effected users.
I'm on Catalina, VSCode 1.38.1, C/C++ extension 0.26.0-insiders2, Xcode 11 so all the default Apple clang, lldb, etc.
This is an issue with the lldb-mi that the extension ships with.
A temporary work around would to be set your miDebuggerPath
in your launch.json
to /Applications/Xcode.app/Contents/Developer/usr/bin/lldb-mi
This workaround may have issues with debugging since there is a difference in the version cpptools extension releases and the version in Xcode.
@WardenGnaw
Unable to start debugging. The value of miDebuggerPath is invalid.
Also seeing this. macOS Catalina and I need to install CodeLLDB extension to get things working.
@WardenGnaw Thx for solution! It's work for me.
@WardenGnaw no luck with work around, error like @hologerry have.
But I'v try to find some valid path using sudo find / -name lldb-mi
have same error or:
MI: Error: Driver. LLDB Debugger. MI: Error: Driver Manager. Driver 'Machine Interface Driver Version: 1.0.0.9' (ID:'MIDriver') initialise failed. Driver. LLDB Debugger.
paths:/System/Volumes/Data/usr/local/Cellar/llvm/9.0.0/bin/lldb-mi /System/Volumes/Data/usr/local/Cellar/llvm/9.0.0/Toolchains/LLVM9.0.0.xctoolchain/usr/bin/lldb-mi /System/Volumes/Data/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/B3BD129E-091A-4FEA-B2BC-7AB0DBF98E9D.activeSandbox/Root/Applications/Xcode.app/Contents/Developer/usr/bin/lldb-mi /System/Volumes/Data/Users/solid/.vscode/extensions/ms-vscode.cpptools-0.26.0-insiders3/debugAdapters/lldb/bin/lldb-mi /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/B3BD129E-091A-4FEA-B2BC-7AB0DBF98E9D.activeSandbox/Root/Applications/Xcode.app/Contents/Developer/usr/bin/lldb-mi /Users/solid/.vscode/extensions/ms-vscode.cpptools-0.26.0-insiders3/debugAdapters/lldb/bin/lldb-mi
@hologerry @WardenGnaw The workaround does not work for me either, there's no lldb-mi
file anywhere in the Xcode11 application directory (only lldb
). I guess Xcode11 removed lldb-mi.
The CodeLLDB extension will get this working.
@floooh @liquid245 Try this.
I have the CodeLLDB extension installed and do indeed use this as a workaround for debugging, but I don't understand how it makes the proposed workaround for the C/C++ extension work (I can't find a lldb-mi file in the CodeLLDB's extension directory either).
@WardenGnaw My (clean) install of Catalina with Xcode only has lldb not lldb-mi
I found a workaround:
- Download Xcode 10.3 from here and extract it somewhere
- Set
miDebuggerPath
in yourlaunch.json
toPATH_TO_XCODE.app/Contents/Developer/usr/bin/lldb-mi
as suggested by @WardenGnaw
We are aware of issues on macOS Catalina and the version of lldb/lldb-mi that comes bundled with the extension. The current workaround is to point miDebuggerPath
to lldb-mi
shipped in Xcode 10.3 (Thank you @kegato!). If you upgrade to the latest Xcode, they have stopped shipping lldb-mi
and you will not be able to find a lldb-mi
executable to use.
Another temporary workaround would be to use a different LLDB extension such as CodeLLDB for debugging on macOS Catalina.”
lldb-mi from XCode 10.1 seems to work as well, at least for c code.
Could anyone hazard an approximate ETA on this fix?
If it's a few days I'll wait. If it's over a month I'll try CodeLLDB...
Just read this thread and found out lldb-mi
is missing in Catalina. Can we build/distribute a stand-alone copy of it?
This is an issue with the lldb-mi that the extension ships with.
A temporary work around would to be set your
miDebuggerPath
in yourlaunch.json
to/Applications/Xcode.app/Contents/Developer/usr/bin/lldb-mi
This workaround may have issues with debugging since there is a difference in the version cpptools extension releases and the version in Xcode.
It's work for me!Thank you!
Just read this thread and found out
lldb-mi
is missing in Catalina. Can we build/distribute a stand-alone copy of it?
Whether a stand-alone copy of it worked?
For anyone else in a bind, if you can get gdb to work brew install gdb
, then follow the instructions to codesign gdb, then setting miMode
to gdb makes the cpptools debugger work again (at least under vimspector)
Just read this thread and found out
lldb-mi
is missing in Catalina. Can we build/distribute a stand-alone copy of it?Whether a stand-alone copy of it worked?
It means just lldb-mi not the complete Xcode, if possible as simple as
brew install lldb-mi
Same issue here :(
I hope to see this bug fixed soon. I understand the devs were waiting to see if anything changed with the release of Catalina, but it seems this issue was known about since June? I will try out the CodeLLDB extension since I rely pretty extensively on the C debugger. I hope it goes well getting the official debugger working again.
@EthanG45 CoreLLDB worked perfectly for me!
@EthanG45 CoreLLDB worked perfectly for me!
@JamesBlandford I only briefly was setting up the configuration for it last night, and it seems promising.
I tried running C++ Compiler with CodeLLDB extension, it worked although I couldn't workout with the arguments. I have attached my tasks.json & launch.json in the post! it might help you out
tasks.json
{ "version": "2.0.0", "tasks": [ { "label": "clang++ build active file", "type": "shell", "command": "clang++", "args": [ "${fileBasename}", "-o", "${fileBasenameNoExtension}.out", "-g" ], "group": { "kind": "build", "isDefault": true } } ] }
launch.json
{ "version": "0.2.0", "configurations": [ { "name": "clang++ build and debug active file", "type": "lldb", "request": "launch", "program": "${fileDirname}/${fileBasenameNoExtension}.out", "args": [], // "stopAtEntry": false, "cwd": "${workspaceFolder}", // "environment": [], // "externalConsole": false, // "MIMode": "lldb", "preLaunchTask": "clang++ build active file" } ] }
@cxstdio
launch.json
- "type": "cppdbg"
+ "type": "lldb"
@cxstdio
launch.json
- "type": "cppdbg" + "type": "lldb"
非常感谢,可以了
@cxstdio
launch.json
- "type": "cppdbg" + "type": "lldb"非常感谢,可以了
is is solved? 🧐
@cxstdio
launch.json
- "type": "cppdbg" + "type": "lldb"
Hi do you know why cppdbg can't work here? According to the documentation(https://code.visualstudio.com/docs/cpp/launch-json-reference), cppdbg should be used here. Also, I found the program can't print along with debugging process with this configuration. Thanks!
@cxstdio
launch.json
- "type": "cppdbg" + "type": "lldb"Hi do you know why cppdbg can't work here? According to the documentation(https://code.visualstudio.com/docs/cpp/launch-json-reference), cppdbg should be used here. Also, I found the program can't print along with debugging process with this configuration. Thanks!
because the bug with official extension still exist, the config change is only to use another extension (CodeLLDB) instead
@cxstdio
launch.json
- "type": "cppdbg" + "type": "lldb"非常感谢,可以了
is is solved? 🧐
yes,no difference in use...yet?
None of the suggestions above works for me on Catalina 10.15.1 with XCode 11.2 and there's no lldb-mi
to be found on my system after re-installing CodeLLDB extension either :/
Just for reference, it looks like lldb-mi
has been removed from upstream lldb source tree and is now available as a separate module.
https://github.com/lldb-tools/lldb-mi
commit 37fed664022e07c2293b674e9c9d2b50aac547ba
Author: Jonas Devlieghere <jonas@devlieghere.com>
Date: Thu Jul 18 17:06:06 2019 +0000
[LLDB] Remove lldb-mi
As discussed on the mailing list [1], this patch removes the lldb-mi
tool and its tests from the LLDB repository. We moved lldb-mi into a
separate repository on GitHub [2] for downstream users or maintainers to
build and package.
[1] http://lists.llvm.org/pipermail/lldb-dev/2019-July/015103.html
[2] https://github.com/lldb-tools/lldb-mi
Differential revision: https://reviews.llvm.org/D64255
llvm-svn: 366465
I had no problem using lldb-mi from an older version of Xcode and I see the news about lldb-mi being removed from the lldb source tree.
- Does this mean lldb-mi is deprecated?
- What exactly is CodeLLDB? I'm seeing it's a replacement but isn't it just a wrapper around LLDB? Maybe they use the normal LLDB because they know lldb-mi is going away?
None of the suggestions above works for me on Catalina 10.15.1 with XCode 11.2 and there's no
lldb-mi
to be found on my system after re-installing CodeLLDB extension either :/
Are you working on VS Code, I did posted a way to fix it with a extension but the task part is not well written. Check it out it might work for you
@genericptr I am also concerned about this. Having to use the CodeLLDB debugger is a work around at the moment that I hope doesn't stick around for much longer.
@cxstdio
launch.json
- "type": "cppdbg" + "type": "lldb"
感谢大佬
In the end I have just switched to lldb-vscode
which ships as part of lldb
. It's really good, but doesn't support the external terminal launch that vscode-cpptools does.
https://github.com/llvm/llvm-project/tree/master/lldb/tools/lldb-vscode#table-of-contents
I tried running C++ Compiler with CodeLLDB extension, it worked although I couldn't workout with the arguments. I have attached my tasks.json & launch.json in the post! it might help you out
tasks.json
{ "version": "2.0.0", "tasks": [ { "label": "clang++ build active file", "type": "shell", "command": "clang++", "args": [ "${fileBasename}", "-o", "${fileBasenameNoExtension}.out", "-g" ], "group": { "kind": "build", "isDefault": true } } ] }
launch.json
{ "version": "0.2.0", "configurations": [ { "name": "clang++ build and debug active file", "type": "lldb", "request": "launch", "program": "${fileDirname}/${fileBasenameNoExtension}.out", "args": [], // "stopAtEntry": false, "cwd": "${workspaceFolder}", // "environment": [], // "externalConsole": false, // "MIMode": "lldb", "preLaunchTask": "clang++ build active file" } ] }
![]()
Thanks a lot, I spend a few hours working on this issue. Now everything is settled.
BTW, I'm working on Catalina 10.15.1 with XCode 11.2, my config files as following:
task.json
{
"version": "2.0.0",
"tasks": [
{
"label": "clang++ build active file",
"type": "shell",
"command": "clang++",
"args": [
"-std=c++11",
"a.cpp",
"-o",
"a.out",
"-g"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "clang++ build and debug active file",
"type": "lldb",
"request": "launch",
"program": "a.out",
"args": []
}
]
}
I highly recommend you figure out what exactly these parameters mean, or you might be lost like me. Just refer to the official document for insights.
Same problem
Vscode 1.40 can not find lldb debug environment when restart
VSCode Version: 1.40
OS Version: mac Cantalina
Steps to Reproduce:
Debug one program using lldb in launch.json.
{
"type": "lldb",
"request": "launch",
"name": "Launch",
"program": "test_priority_queue",
"args": [],
"cwd": "${workspaceFolder}"
}
Vscode will tell you it does not support this type.
You go to extensions market and install the CodeLLDB, then you can F5 to debug, which is good.
But When you restart the vscode, and open the folder you just used Press F5, you will get Select a environment option.
You can select the LLDB just used.
It will tell you that "Can not start debugging because no launch configuration has been provided."
If you want to use CodeLLDB, YOU CAN REINSTALL the CODELLDB. And Again You can use it...
Sad.
Can not start debugging because no launch configuration has been provided. what's this?
But i have the launch.json.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Launch",
"program": "test_priority_queue",
"args": [],
"cwd": "${workspaceFolder}"
}
// {
// "type": "lldb",
// "request": "launch",
// "name": "Launch Program",
// "program": "test_priority_queue",
// "cwd": "${workspaceRoot}"
// }
]
}
launch.json in .vscode direcotory.
When I use debug:
Then Select the LLDB
This is the extension i installed.
I have uninstalled the CodeLLDB : It shows this.
I reinstalled it.
It's good now.
But when I restart the vscode. open the same code directory.
When I choose LLDB:
And it does not debug any more... But the file does not change.
What happend..
@cxstdio
launch.json
- "type": "cppdbg" + "type": "lldb"感谢大佬
lldb 类型不支持 需要装什么样的扩展吗
@cxstdio
launch.json
- "type": "cppdbg" + "type": "lldb"感谢大佬
lldb 类型不支持 需要装什么样的扩展吗
Mac先要安装微软那个c/c++拓展。然后配置task和launch我目前是vscode最新版,没问题。我的lldb是xcode自带的。
just got hit by the same problem, Catalina 10.15.1 and Xcode 11.2
wonder what the 'official' recommendation for solving this problem is
here I see 2 different plugin as workaround suggested,
- https://github.com/llvm/llvm-project/tree/master/lldb/tools/lldb-vscode
- https://github.com/vadimcn/vscode-lldb
or, installing just lldb-mi ?
- https://github.com/lldb-tools/lldb-mi
not in brew so far, ....
it would be extreme helpful to have just 1 way to follow, especially, if the C++ tools will be fixed some day, with a way to switch back
I've also been troubled by this issue in my exam week.....
I spent about three hours last night until 1 a.m. to solve this problem until I found that it is not my mistake here.
I'm using Catalina 10.15.1 and Xcode 11.2.
I've tried about the CodeLLVM extension this noon. It works fine and my breakpoints start to work again. but I've got a problem: How can I enable the external console if I want to input something in my program? There seem to exist some problem in my launch.json:
Besides, I also wonder the "official" recommendation as @a4z had mentioned.
I've also been troubled by this issue in my exam week.....
I spent about three hours last night until 1 a.m. to solve this problem until I found that it is not my mistake here.
I'm using Catalina 10.15.1 and Xcode 11.2.I've tried about the CodeLLVM extension this noon. It works fine and my breakpoints start to work again. but I've got a problem: How can I enable the external console if I want to input something in my program? There seem to exist some problem in my launch.json:
Besides, I also wonder the "official" recommendation as @a4z had mentioned.
"terminal": "external"
I've also been troubled by this issue in my exam week.....
I spent about three hours last night until 1 a.m. to solve this problem until I found that it is not my mistake here.
I'm using Catalina 10.15.1 and Xcode 11.2.
I've tried about the CodeLLVM extension this noon. It works fine and my breakpoints start to work again. but I've got a problem: How can I enable the external console if I want to input something in my program? There seem to exist some problem in my launch.json:
Besides, I also wonder the "official" recommendation as @a4z had mentioned."terminal": "external"
It works! Thanks very much.
BTW, could you please tell me how do you know we should use the "terminal:external" key-value in launch.json? Is there any documents?
I've also been troubled by this issue in my exam week.....
I spent about three hours last night until 1 a.m. to solve this problem until I found that it is not my mistake here.
I'm using Catalina 10.15.1 and Xcode 11.2.
I've tried about the CodeLLVM extension this noon. It works fine and my breakpoints start to work again. but I've got a problem: How can I enable the external console if I want to input something in my program? There seem to exist some problem in my launch.json:
Besides, I also wonder the "official" recommendation as @a4z had mentioned."terminal": "external"
It works! Thanks very much.
BTW, could you please tell me how do you know we should use the "terminal:external" key-value in launch.json? Is there any documents?
MANUAL contains these informations. And I have a question. My output couldn't display in terminal when debugging like this:
I've also been troubled by this issue in my exam week.....
I spent about three hours last night until 1 a.m. to solve this problem until I found that it is not my mistake here.
I'm using Catalina 10.15.1 and Xcode 11.2.
I've tried about the CodeLLVM extension this noon. It works fine and my breakpoints start to work again. but I've got a problem: How can I enable the external console if I want to input something in my program? There seem to exist some problem in my launch.json:
Besides, I also wonder the "official" recommendation as @a4z had mentioned."terminal": "external"
It works! Thanks very much.
BTW, could you please tell me how do you know we should use the "terminal:external" key-value in launch.json? Is there any documents?MANUAL contains these informations. And I have a question. My output couldn't display in terminal when debugging like this:
Maybe you should go to your desktop to see if there is the terminal.app here....
I've also been troubled by this issue in my exam week.....
I spent about three hours last night until 1 a.m. to solve this problem until I found that it is not my mistake here.
I'm using Catalina 10.15.1 and Xcode 11.2.
I've tried about the CodeLLVM extension this noon. It works fine and my breakpoints start to work again. but I've got a problem: How can I enable the external console if I want to input something in my program? There seem to exist some problem in my launch.json:
Besides, I also wonder the "official" recommendation as @a4z had mentioned."terminal": "external"
It works! Thanks very much.
BTW, could you please tell me how do you know we should use the "terminal:external" key-value in launch.json? Is there any documents?MANUAL contains these informations. And I have a question. My output couldn't display in terminal when debugging like this:
Maybe you should go to your desktop to see if there is the terminal.app here....
可以弹出终端并正常调试,但是在调试的过程中我的代码中printf输出的内容不会显示在终端上,只有调试结束后内容才会显示在终端,不知道这是否算是正常?
I've also been troubled by this issue when I struggling in exam review. It really confused me. Really hope it will be fixed soon.
I was having this problem when I upgraded to Catalina. At that time, the solution above of finding the lldb-mi from an older Xcode, copying it to /Applications/Xcode.app/Contents/Developer/usr/bin/ and referencing that location as the "miDebuggerPath" was working.
They might have fixed in in the new version of cpptools? I found that the ~/.vscode/extensions/ms-vscode.cpptools/debugAdapter/lldb folder contains a copy of lldb-mi and using that as the miDebuggerPath is working for me. I'm using ms-vscode.cpptools v0.26.1.
@thekeels doesn't work. The path is ~/.vscode/extensions/ms-vscode.cpptools/debugAdapters/lldb (you forgot the s), but the breakpoints are still not hit
I tested with a clean install of code and the extension and it appears to work without any extra work. Going to test again tonight and document my steps. Didn’t expect it to work this time so didn’t keep a note of what I did sorry! Will comment again later.
CodeLLDB works in macos 10.15.1
On my MacOS 10.15.1 CodeLLDB started to work properly only after full macOS reinstall (with full disk wipe). However, clean install didn't make C/C++ extension debug working, as @satysin suggested.
Okay I followed the instructions at https://code.visualstudio.com/docs/cpp/config-clang-mac and everything appears to work as it should, at least in regards to breakpoints. I didn't test if watches, etc. work properly sorry. Below is a screenshot with it stopped at a breakpoint as expected.
Code version: 1.40.1
ms-vscode.cpptools version: 0.26.2-insiders2
And here are my json files
tasks.json
{ "version": "2.0.0", "tasks": [ { "label": "Build with Clang", "type": "shell", "command": "clang++", "args": [ "-std=c++17", "-stdlib=libc++", "helloworld.cpp", "-o", "helloworld.out", "--debug" ], "group": { "kind": "build", "isDefault": true } } ] }
launch.json
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "(lldb) Launch", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/helloworld.out", "args": [], "stopAtEntry": true, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": true, "MIMode": "lldb" } ] }
c_cpp_properties.json
{ "configurations": [ { "name": "Mac", "includePath": [ "${workspaceFolder}/**" ], "defines": [], "macFrameworkPath": [ "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks" ], "compilerPath": "/usr/bin/clang", "cStandard": "c11", "cppStandard": "c++17", "intelliSenseMode": "${default}" } ], "version": 4 }
have the same problem , only codelldb can work on 10.15.1
I add miDebuggerPath
,but get this error
WARNING: Debugger executable '/Users/xxx/.vscode/extensions/ms-vscode.cpptools-0.26.2-insiders3/debugAdapters/lldb/bin/lldb-mi' is not signed. As a result, debugging may not work properly.
and still don't hit the breakpoint after I signed it
sudo codesign -fs lldb-mi-xi lldb-mi
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=thread-selected,id="1"
@satysin I had the same setup on a clean install but didn't work for me. Upgraded to 1.40.2 just in case, still didn't work.
Workaround of CodeLLDB worked though.
I have the same issue.
debugger doesn't stop at breakpoints.
OS: Catalina 10.15.1
VSCode: 1.40.2
C/C++ for Visual Studio Code: Version 0.26.2: December 2, 2019
launch.json
"configurations":
[
{
"name": "clang build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/runme",
"args": ["1.test"],
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "lldb",
// "preLaunchTask": "clang build active file"
}
]
Also, after pushing F5 in DEBUG CONSOLE there are only:
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=thread-selected,id="1"
plus my binary's output and nothing more.
On other Mac with High Sierra OS the same operation outputs some additional information about
loading different libraries.
CodeLLDB works fine.
cannot set break point in VSCode 1.40.2 on MacOS Catalina 10.15.1
tried to install CodeLLDB with no luck (may be it need to be configured?)
on top of that - this is my first time ever using VScode for C++ on Mac so I never saw it working and don't know if it even suppose to work)
please help!!!!!!!
I have one file helloworld.cpp
with
#include <iostream>
using namespace std;
int main()
{
cout << "hello break point? where are you???" << endl;
}
And here are my json files
c_cpp_properties.json
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"macFrameworkPath": [
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/helloworld.out",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "lldb",
"logging": {
"trace": true,
"traceResponse": true,
"engineLogging": true
}
}
]
}
tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "Build with Clang",
"type": "shell",
"command": "clang++",
"args": [
"-std=c++17",
"-stdlib=libc++",
"helloworld.cpp",
"-o",
"helloworld.out",
"--debug"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
P.S. i used this tutorial https://code.visualstudio.com/docs/cpp/config-clang-mac
cannot set break point in VSCode 1.40.2 on MacOS Catalina 10.15.1
tried to install CodeLLDB with no luck (may be it need to be configured?)
...
it seems to be fixed by installing CodeLLDB
VSCode plugin
and replacing launch.json with this text
{
"name": "lldb123",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/helloworld.out",
"args": []
}
I lost console window though I don't see any output
it is very sad to see such popular product like VSCode have critical bug open since June
It's also sad that you have spent 3 hours to find the significative issue instead of the useless trash info on the Internet.
+1, with Xcode 11.3 out this issue is only getting worse. I am unable to debug at all using VS Code 1.41.1.
A workaround is to use gdb
instead of lldb
, which requires:
- Installing
gdb
- Code signing the
gdb
binary: https://sourceware.org/gdb/wiki/PermissionsDarwin - Setting
"MIMode": "gdb"
inlaunch.json
I've tested this with gdb 8.3.1
. It works, but in some cases the debugger would not reach the first breakpoint. In such cases, stopping the debugger and relaunching was sufficient to reach the breakpoint.
I also could not use lldb to debug C++ on macOS.
with Xcode Version 11.3 (11C29), macOS Catalina 10.15.2 (19C57) and VS code
Version: 1.41.1
Commit: 26076a4de974ead31f97692a0d32f90d735645c0
Date: 2019-12-18T14:57:51.166Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Darwin x64 19.2.0
Debug Console Log
``` --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (143) LaunchOptions E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (155) LaunchOptions ExePath='/Users/welkin/Visual Studio Code C++/main.out'\n"},"seq":4} 1: (155) LaunchOptions ExePath='/Users/welkin/Visual Studio Code C++/main.out' --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (155) LaunchOptions WorkingDirectory='/Users/welkin/Visual Studio Code C++'\n"},"seq":6} 1: (155) LaunchOptions WorkingDirectory='/Users/welkin/Visual Studio Code C++' --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (155) LaunchOptions ExeArguments=''\n"},"seq":8} 1: (155) LaunchOptions ExeArguments='' --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (155) LaunchOptions MIMode='lldb'\n"},"seq":10} 1: (155) LaunchOptions MIMode='lldb' --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (156) LaunchOptions MIDebuggerPath='/Users/welkin/.vscode/extensions/ms-vscode.cpptools-0.26.3-insiders2/debugAdapters/lldb/bin/lldb-mi'\n"},"seq":12} 1: (156) LaunchOptions MIDebuggerPath='/Users/welkin/.vscode/extensions/ms-vscode.cpptools-0.26.3-insiders2/debugAdapters/lldb/bin/lldb-mi' --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (156) LaunchOptions WaitDynamicLibLoad='false'\n"},"seq":14} 1: (156) LaunchOptions WaitDynamicLibLoad='false' --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (156) LaunchOptions ExternalConsole='true'\n"},"seq":16} 1: (156) LaunchOptions ExternalConsole='true' --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (156) LaunchOptions>\n"},"seq":18} 1: (156) LaunchOptions> --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (156) LaunchOptions\n"},"seq":20} 1: (156) LaunchOptions --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (245) Starting: \"/Users/welkin/.vscode/extensions/ms-vscode.cpptools-0.26.3-insiders2/debugAdapters/lldb/bin/lldb-mi\" --interpreter=mi\n"},"seq":22} 1: (245) Starting: "/Users/welkin/.vscode/extensions/ms-vscode.cpptools-0.26.3-insiders2/debugAdapters/lldb/bin/lldb-mi" --interpreter=mi --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (268) DebuggerPid=56698\n"},"seq":24} 1: (268) DebuggerPid=56698 --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (426) ->(gdb)\n"},"seq":26} 1: (426) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (440) <-1001-gdb-set auto-solib-add on\n"},"seq":28} 1: (440) <-1001-gdb-set auto-solib-add on --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (441) ->1001^done\n"},"seq":30} 1: (441) ->1001^done --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (442) ->(gdb)\n"},"seq":32} 1: (442) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (443) 1001: elapsed time 3\n"},"seq":34} 1: (443) 1001: elapsed time 3 --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (444) <-1002-gdb-set solib-search-path \"/Users/welkin/Visual Studio Code C++:\"\n"},"seq":36} 1: (444) <-1002-gdb-set solib-search-path "/Users/welkin/Visual Studio Code C++:" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (445) ->1002^done\n"},"seq":38} 1: (445) ->1002^done --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (445) 1002: elapsed time 1\n"},"seq":40} 1: (445) 1002: elapsed time 1 --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (445) ->(gdb)\n"},"seq":42} 1: (445) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (445) <-1003-environment-cd \"/Users/welkin/Visual Studio Code C++\"\n"},"seq":44} 1: (445) <-1003-environment-cd "/Users/welkin/Visual Studio Code C++" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (446) ->1003^done,path=\"/Users/welkin/Visual Studio Code C++\"\n"},"seq":46} 1: (446) ->1003^done,path="/Users/welkin/Visual Studio Code C++" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (446) ->(gdb)\n"},"seq":48} 1: (446) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (449) 1003: elapsed time 3\n"},"seq":50} 1: (449) 1003: elapsed time 3 --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (449) <-1004-gdb-set new-console on\n"},"seq":52} 1: (449) <-1004-gdb-set new-console on --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (450) ->1004^done\n"},"seq":54} 1: (450) ->1004^done --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (450) ->(gdb)\n"},"seq":56} 1: (450) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (450) 1004: elapsed time 0\n"},"seq":58} 1: (450) 1004: elapsed time 0 --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (450) <-1005-file-exec-and-symbols \"/Users/welkin/Visual Studio Code C++/main.out\"\n"},"seq":60} 1: (450) <-1005-file-exec-and-symbols "/Users/welkin/Visual Studio Code C++/main.out" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (575) ->1005^done\n"},"seq":62} 1: (575) ->1005^done --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (575) ->(gdb)\n"},"seq":64} 1: (575) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (575) 1005: elapsed time 125\n"},"seq":66} 1: (575) 1005: elapsed time 125 --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (577) ->=library-loaded,id=\"/Users/welkin/Visual Studio Code C++/main.out\",target-name=\"/Users/welkin/Visual Studio Code C++/main.out\",host-name=\"/Users/welkin/Visual Studio Code C++/main.out\",symbols-loaded=\"1\",symbols-path=\"/System/Volumes/Data/Users/welkin/Visual Studio Code C++/main.out.dSYM/Contents/Resources/DWARF/main.out\",loaded_addr=\"-\",size=\"12288\"\n"},"seq":68} 1: (577) ->=library-loaded,id="/Users/welkin/Visual Studio Code C++/main.out",target-name="/Users/welkin/Visual Studio Code C++/main.out",host-name="/Users/welkin/Visual Studio Code C++/main.out",symbols-loaded="1",symbols-path="/System/Volumes/Data/Users/welkin/Visual Studio Code C++/main.out.dSYM/Contents/Resources/DWARF/main.out",loaded_addr="-",size="12288" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (577) <-1006-interpreter-exec console \"platform status\"\n"},"seq":70} 1: (577) <-1006-interpreter-exec console "platform status" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (578) -> Platform: host\n"},"seq":72} 1: (578) -> Platform: host --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (578) -> Triple: x86_64h-apple-macosx\n"},"seq":74} 1: (578) -> Triple: x86_64h-apple-macosx --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (579) ->OS Version: 10.15.2 (19C57)\n"},"seq":76} 1: (579) ->OS Version: 10.15.2 (19C57) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (579) -> Kernel: Darwin Kernel Version 19.2.0: Sat Nov 9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64\n"},"seq":78} 1: (579) -> Kernel: Darwin Kernel Version 19.2.0: Sat Nov 9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64 --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (579) -> Hostname: 127.0.0.1\n"},"seq":80} 1: (579) -> Hostname: 127.0.0.1 --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (579) ->WorkingDir: /Users/welkin/Visual Studio Code C++\n"},"seq":82} 1: (579) ->WorkingDir: /Users/welkin/Visual Studio Code C++ --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (579) ->1006^done\n"},"seq":84} 1: (579) ->1006^done --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (580) ->(gdb)\n"},"seq":86} 1: (580) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (581) 1006: elapsed time 3\n"},"seq":88} 1: (581) 1006: elapsed time 3 --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (582) <-1007-break-insert -f on main\n"},"seq":90} 1: (582) <-1007-break-insert -f on main --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (585) ->1007^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x00000001000007b7\",func=\"main\",file=\"main.cpp\",fullname=\"/Users/welkin/Visual Studio Code C++/main.cpp\",line=\"9\",pending=[\"main\"],times=\"0\",original-location=\"main\"}\n"},"seq":92} 1: (585) ->1007^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00000001000007b7",func="main",file="main.cpp",fullname="/Users/welkin/Visual Studio Code C++/main.cpp",line="9",pending=["main"],times="0",original-location="main"} --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (585) ->(gdb)\n"},"seq":94} 1: (585) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (586) ->=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x00000001000007b7\",func=\"main\",file=\"main.cpp\",fullname=\"/Users/welkin/Visual Studio Code C++/main.cpp\",line=\"9\",pending=[\"main\"],times=\"0\",original-location=\"main\"}\n"},"seq":96} 1: (586) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00000001000007b7",func="main",file="main.cpp",fullname="/Users/welkin/Visual Studio Code C++/main.cpp",line="9",pending=["main"],times="0",original-location="main"} --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (586) ->(gdb)\n"},"seq":98} 1: (586) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (588) 1007: elapsed time 5\n"},"seq":100} 1: (588) 1007: elapsed time 5 --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (596) Send Event AD7EngineCreateEvent\n"},"seq":102} 1: (596) Send Event AD7EngineCreateEvent --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (599) Send Event AD7ProgramCreateEvent\n"},"seq":104} 1: (599) 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":"14.0.61023.1","VS.Diagnostics.Debugger.HostVersion":"14.0.61023.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":510,"VS.Diagnostics.Debugger.Launch.IsCoreDump":false,"VS.Diagnostics.Debugger.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.SourceFileMappings":0,"VS.Diagnostics.Debugger.MIMode":null}},"seq":106} --> R (launch-2): {"type":"response","request_seq":2,"success":true,"command":"launch","body":{},"seq":108} --> E (initialized): {"type":"event","event":"initialized","body":{},"seq":110} <-- C (setBreakpoints-3): {"command":"setBreakpoints","arguments":{"source":{"name":"main.cpp","path":"/Users/welkin/Visual Studio Code C++/main.cpp"},"lines":[9],"breakpoints":[{"line":9}],"sourceModified":false},"type":"request","seq":3} --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (643) <-1008-break-insert -f on main.cpp:9\n"},"seq":113} 1: (643) <-1008-break-insert -f on main.cpp:9 --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (644) ->1008^done,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x00000001000007b7\",func=\"main\",file=\"main.cpp\",fullname=\"/Users/welkin/Visual Studio Code C++/main.cpp\",line=\"9\",pending=[\"main.cpp:9\"],times=\"0\",original-location=\"main.cpp:9\"}\n"},"seq":115} 1: (644) ->1008^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00000001000007b7",func="main",file="main.cpp",fullname="/Users/welkin/Visual Studio Code C++/main.cpp",line="9",pending=["main.cpp:9"],times="0",original-location="main.cpp:9"} --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (644) ->(gdb)\n"},"seq":117} 1: (644) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (645) ->=breakpoint-modified,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x00000001000007b7\",func=\"main\",file=\"main.cpp\",fullname=\"/Users/welkin/Visual Studio Code C++/main.cpp\",line=\"9\",pending=[\"main.cpp:9\"],times=\"0\",original-location=\"main.cpp:9\"}\n"},"seq":119} 1: (645) ->=breakpoint-modified,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00000001000007b7",func="main",file="main.cpp",fullname="/Users/welkin/Visual Studio Code C++/main.cpp",line="9",pending=["main.cpp:9"],times="0",original-location="main.cpp:9"} --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (645) ->(gdb)\n"},"seq":121} 1: (645) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (645) 1008: elapsed time 1\n"},"seq":123} 1: (645) 1008: elapsed time 1 --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (655) Send Event AD7BreakpointBoundEvent\n"},"seq":125} 1: (655) Send Event AD7BreakpointBoundEvent --> R (setBreakpoints-3): {"type":"response","request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":true,"line":9}]},"seq":127} --> E (breakpoint): {"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":1,"verified":true,"line":9}},"seq":129} <-- 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":132} <-- C (setExceptionBreakpoints-5): {"command":"setExceptionBreakpoints","arguments":{"filters":[]},"type":"request","seq":5} --> R (setExceptionBreakpoints-5): {"type":"response","request_seq":5,"success":true,"command":"setExceptionBreakpoints","body":{},"seq":135} <-- C (configurationDone-6): {"command":"configurationDone","type":"request","seq":6} --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (742) Send Event AD7LoadCompleteEvent\n"},"seq":139} 1: (742) Send Event AD7LoadCompleteEvent --> R (configurationDone-6): {"type":"response","request_seq":6,"success":true,"command":"configurationDone","body":{},"seq":138} --> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"Warning: Debuggee TargetArchitecture not detected, assuming x86_64.\n"},"seq":142} Warning: Debuggee TargetArchitecture not detected, assuming x86_64. <-- C (threads-7): {"command":"threads","type":"request","seq":7} --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (746) <-1009-exec-run\n"},"seq":145} 1: (746) <-1009-exec-run --> R (threads-7): {"type":"response","request_seq":7,"success":true,"command":"threads","body":{"threads":[]},"seq":147} --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1483) ->1009^running\n"},"seq":149} 1: (1483) ->1009^running --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1483) ->=thread-group-started,id=\"i1\",pid=\"56703\"\n"},"seq":151} 1: (1483) ->=thread-group-started,id="i1",pid="56703" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1483) ->(gdb)\n"},"seq":153} 1: (1483) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1483) 1009: elapsed time 737\n"},"seq":155} 1: (1483) 1009: elapsed time 737 --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1483) ->=thread-created,id=\"1\",group-id=\"i1\"\n"},"seq":157} 1: (1483) ->=thread-created,id="1",group-id="i1" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1483) ->=thread-selected,id=\"1\"\n"},"seq":159} 1: (1483) ->=thread-selected,id="1" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1483) ->(gdb)\n"},"seq":161} 1: (1483) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1484) ->*running,thread-id=\"all\"\n"},"seq":163} 1: (1484) ->*running,thread-id="all" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1484) ->(gdb)\n"},"seq":165} 1: (1484) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1485) ->(gdb)\n"},"seq":167} 1: (1485) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1486) ->=thread-exited,id=\"1\",group-id=\"i1\"\n"},"seq":169} 1: (1486) ->=thread-exited,id="1",group-id="i1" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1486) ->=thread-group-exited,id=\"i1\",exit-code=\"0\"\n"},"seq":171} 1: (1486) ->=thread-group-exited,id="i1",exit-code="0" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1486) ->*stopped,reason=\"exited-normally\"\n"},"seq":173} 1: (1486) ->*stopped,reason="exited-normally" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1486) ->(gdb)\n"},"seq":175} 1: (1486) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1487) <-1010-thread-info 1\n"},"seq":177} 1: (1487) <-1010-thread-info 1 --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1488) ->1010^done,threads=[{id=\"1\",target-id=\"Thread 1\",frame={level=\"0\",addr=\"0xffffffffffffffff\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"0\"},state=\"running\"}]\n"},"seq":179} 1: (1488) ->1010^done,threads=[{id="1",target-id="Thread 1",frame={level="0",addr="0xffffffffffffffff",func="??",args=[],file="??",fullname="??",line="0"},state="running"}] --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1488) ->(gdb)\n"},"seq":181} 1: (1488) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"=thread-selected,id=\"1\"\n"},"seq":183} =thread-selected,id="1" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1493) 1010: elapsed time 5\n"},"seq":185} 1: (1493) 1010: elapsed time 5 --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1495) Send Event AD7ProcessInfoUpdatedEvent\n"},"seq":187} 1: (1495) Send Event AD7ProcessInfoUpdatedEvent --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1495) Send Event AD7ThreadCreateEvent\n"},"seq":189} 1: (1495) Send Event AD7ThreadCreateEvent --> E (thread): {"type":"event","event":"thread","body":{"reason":"started","threadId":1},"seq":191} --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1502) <--gdb-exit\n"},"seq":193} 1: (1502) <--gdb-exit --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1503) ->^exit\n"},"seq":195} 1: (1503) ->^exit --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1503) ->=thread-group-exited,id=\"i1\"\n"},"seq":197} 1: (1503) ->=thread-group-exited,id="i1" --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1503) ->(gdb)\n"},"seq":199} 1: (1503) ->(gdb) --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1504) ->\n"},"seq":201} 1: (1504) -> --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1504) ->\n"},"seq":203} 1: (1504) -> --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1508) <-logout\n"},"seq":205} 1: (1508) <-logout --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1514) Send Event AD7ProgramDestroyEvent\n"},"seq":207} 1: (1514) Send Event AD7ProgramDestroyEvent --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"The program '/Users/welkin/Visual Studio Code C++/main.out' has exited with code 0 (0x00000000).\r\n\n"},"seq":209} The program '/Users/welkin/Visual Studio Code C++/main.out' has exited with code 0 (0x00000000). --> E (exited): {"type":"event","event":"exited","body":{"exitCode":0},"seq":211} --> E (terminated): {"type":"event","event":"terminated","body":{},"seq":213} --> 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":"14.0.61023.1","VS.Diagnostics.Debugger.HostVersion":"14.0.61023.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.DebugCompleted.BreakCounter":0}},"seq":215} <-- C (disconnect-8): {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":8} --> R (disconnect-8): {"type":"response","request_seq":8,"success":true,"command":"disconnect","body":{},"seq":218}</details>
So I spent some time trying to actually fix this. Here's some background:
- the version of lldb-mi bundled with the macOS version of vscode-cpptools no longer works. Breakpoints don't trigger. This was identified at the beginning of this thread.
- since then, lldb-mi has been removed from lldb source tree and moved to its own repository, but is still actively developed and maintained.
- I have proven that the latest builds of lldb-mi do work and do trigger breakpoints.
- however, they do not work with vscode-cpptools because of a no-longer-required workaround in MIEngine. A historical bug in lldb-mi has been fixed, but that has broken MIEngine's
-break-insert
command sent to lldb-mi: microsoft/MIEngine#946
So, I believe that this issue can be fixed by doing all of the following:
- changing MIEngine to remove the workaround for lldb-mi having incorrect
break-insert
processing: microsoft/MIEngine#946 - taking a fixed MIEngine into vscode-cpptools and bundling it up for macOS
- setting
miDebuggerPath
to point at a build of the latest lldb-mi code, or ideally including a build of the latest lldb-mi (https://github.com/lldb-tools/lldb-mi) in the macOS version of vscode-cpptools.
Unfortunately, that requires the first 2 to happen before users can actually trigger breakpoints on macOS again.
@WardenGnaw if there is anything I can do to help make that happen, let me know.
So I spent some time trying to actually fix this. Here's some background:
- the version of lldb-mi bundled with the macOS version of vscode-cpptools no longer works. Breakpoints don't trigger. This was identified at the beginning of this thread.
- since then, lldb-mi has been removed from lldb source tree and moved to its own repository, but is still actively developed and maintained.
- I have proven that the latest builds of lldb-mi do work and do trigger breakpoints.
- however, they do not work with vscode-cpptools because of a no-longer-required workaround in MIEngine. A historical bug in lldb-mi has been fixed, but that has broken MIEngine's
-break-insert
command sent to lldb-mi: microsoft/MIEngine#946So, I believe that this issue can be fixed by doing all of the following:
- changing MIEngine to remove the workaround for lldb-mi having incorrect
break-insert
processing: microsoft/MIEngine#946- taking a fixed MIEngine into vscode-cpptools and bundling it up for macOS
- setting
miDebuggerPath
to point at a build of the latest lldb-mi code, or ideally including a build of the latest lldb-mi (https://github.com/lldb-tools/lldb-mi) in the macOS version of vscode-cpptools.Unfortunately, that requires the first 2 to happen before users can actually trigger breakpoints on macOS again.
@WardenGnaw if there is anything I can do to help make that happen, let me know.
man. you means that if we want to use lldb-mi again. we should wait they taking a fixed MIEngine into vscode-cpptools?
man. you means that if we want to use lldb-mi again. we should wait they taking a fixed MIEngine into vscode-cpptools?
Unless you can make the patch to MIEngine and build it yourself. I can't because it only builds on Windows.
I'm like N% certain that removing these lines will fix it.
Edit: Looks like @WardenGnaw committed that exact change :)
these lines
Thank you man, Are they going to solve the problem next or not?
I see that line you remove,It is really handsome!
You can track this: microsoft/MIEngine#946
Same problem.
MacOS: 10.15.1
VSCode: 1.41.1
Same problem
MacOS: 10.15.2
Vscode: 1.41.1
Tutorial: https://code.visualstudio.com/docs/cpp/config-clang-mac
Same problem
MacOS: 10.15.2
Vscode: 1.41.1
Adding ‘same problem’ isn’t moving the needle on resolving this. The upstream change in MIEngine has been merged. Hopefully that means soon it will be possible to make this work with a custom built lldb-mi
Adding ‘same problem’ isn’t moving the needle on resolving this. The upstream change in MIEngine has been merged. Hopefully that means soon it will be possible to make this work with a custom built lldb-mi
given how old the problem is, it can not harm to show, and report, that many people have this problem,
so IMHO even repetitions are a valid point to report.
but lets hope that after several month we will soon be able to use the debugger again, and users will not wast a lot of time to land here, and report this problem again ;-)
In this case surely the best response would be to simply upvote the original issue.
Given that the problem has been tracked down, providing OS/VSCode versions won't help anyone.
Adding comments to the thread disturbs everyone subscribed to the thread.
In the case of a problem that is not being actively worked on, the community SHOULD disturb the repo, until someone fixes it. We can externally push priority levels on issues by making noise.
However on this particular issue, as can be seen from the comments, @puremourning is in the process of crushing this one with @WardenGnaw . So I recommend we STFU and let them work their magick ;)
It would be great if repository maintainers were able to edit the original post for a particular issue, maintaining a "current-state/issue-summary/roadmap" so that newcomers can immediately see the state of play without having to piece it together from dozens of comments.
I guess with a very thorough workflow, repo maintenance staff could respond to the OP immediately and keep revising this initial response, so that it is always up-to-date. I wonder if anyone has thought of using GitHub issue-tracker this way...
@a4z One problem with having people continually report, "same here", type messages is that users (myself included) who are monitoring this bug to await a fix will get e-mailed every time someone posts a message. This does not happen if someone merely upvotes it.
same issue +1
macOS: 10.15.2
VS Code: 1.41.1
C/C++ version: 0.26.3-insiders3: January 8, 2020
I went through the same problem. My cpp code debugging started having problem right after I upgraded my macOS from Mojave to Catalina.
I had a similar problem whenever I did the OS update.
Sometimes I could fix the problem by reinstalling Xcode.
After a few hours of struggling, I finally got here.
I thought maybe upgrading Xcode could get this working.
But as mentioned above, it looks like upgrading Xcode is really not a good idea.
Maybe better keep it as 10.3 ?
Anyways, thank you very much for introducing CodeLLDB.
I never knew about CodeLLDB. and it works perfectly.
thank you again!
Ping. Just wanted to mention that the problem persists with the latest Catalina Beta and Xcode11 "Gold Master" version, both pretty late in their release cycle, so I think that's not something that will be fixed on Apple's part.
Also the CodeLLDB extension doesn't have the problem.
Thank you very much for letting me know about CodeLLDB
I installed CodeLLDB and change launch.json as follow, then it works.
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/helloworld.out",
"args": [
"-arg1",
"-arg2"
]
}
]
}