microsoft / vscode-cpptools

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

Can't debug on macOS Catalina (LLDB) #3829

Closed man-jai closed 4 years ago

man-jai commented 5 years ago

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

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.

WardenGnaw commented 5 years ago

Can you share the output when you enable logging?

man-jai commented 5 years ago

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"}

WardenGnaw commented 5 years ago

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
man-jai commented 5 years ago

"stopAtEntry": true,

stopAtEntry is already set to true from the json file that I have provided, and no it does not stop sadly

floooh commented 5 years ago

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 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\n"},"seq":18,"type":"event"} 1: (600) LaunchOptions --> 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"} ```
man-jai commented 5 years ago

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 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\n"},"seq":18,"type":"event"} 1: (600) LaunchOptions --> 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!

floooh commented 5 years ago

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.

liquid245 commented 4 years ago

Same problem.

satysin commented 4 years ago

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.

WardenGnaw commented 4 years ago

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.

hologerry commented 4 years ago

@WardenGnaw Unable to start debugging. The value of miDebuggerPath is invalid.

mdyring commented 4 years ago

Also seeing this. macOS Catalina and I need to install CodeLLDB extension to get things working.

liquid245 commented 4 years ago

@WardenGnaw Thx for solution! It's work for me.

liquid245 commented 4 years ago

@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

floooh commented 4 years ago

@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.

hologerry commented 4 years ago

The CodeLLDB extension will get this working. @floooh @liquid245 Try this.

floooh commented 4 years ago

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).

hologerry commented 4 years ago

@floooh With CodeLLDB, no need for lldb-mi any more, just config the launch.json as the repo's readme says.

satysin commented 4 years ago

@WardenGnaw My (clean) install of Catalina with Xcode only has lldb not lldb-mi

ciphax commented 4 years ago

I found a workaround:

WardenGnaw commented 4 years ago

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.”

vaiden commented 4 years ago

lldb-mi from XCode 10.1 seems to work as well, at least for c code.

p-i- commented 4 years ago

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...

genericptr commented 4 years ago

Just read this thread and found out lldb-mi is missing in Catalina. Can we build/distribute a stand-alone copy of it?

zhchy1996 commented 4 years ago

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.

It's work for me!Thank you!

hsx2117 commented 4 years ago

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?

puremourning commented 4 years ago

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)

amansheaven commented 4 years ago

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 :(

EthanG45 commented 4 years ago

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.

j-blandford commented 4 years ago

@EthanG45 CoreLLDB worked perfectly for me!

EthanG45 commented 4 years ago

@EthanG45 CoreLLDB worked perfectly for me!

@JamesBlandford I only briefly was setting up the configuration for it last night, and it seems promising.

amansheaven commented 4 years ago

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" } ] }

Screenshot 2019-10-24 at 1 46 54 AM
ruokid commented 4 years ago

我也碰到了这个问题,安装了CodeLLDB也不行,运行后直接打印了,并没有命中断点

macOS Catalina 版本 10.15 没有安装 XCode VSCode版本: 1.39.2

531627AD-8AB0-48FE-A745-CB86539399FB

abowloflrf commented 4 years ago

@cxstdio

launch.json

- "type": "cppdbg"
+ "type": "lldb"
ruokid commented 4 years ago

@cxstdio

launch.json

- "type": "cppdbg"
+ "type": "lldb"

非常感谢,可以了

amansheaven commented 4 years ago

@cxstdio launch.json

- "type": "cppdbg"
+ "type": "lldb"

非常感谢,可以了

is is solved? 🧐

aws-haoyuli commented 4 years ago

@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!

abowloflrf commented 4 years ago

@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

ruokid commented 4 years ago

@cxstdio launch.json

- "type": "cppdbg"
+ "type": "lldb"

非常感谢,可以了

is is solved? 🧐

yes,no difference in use...yet?

brainstorm commented 4 years ago

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 :/

puremourning commented 4 years ago

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
genericptr commented 4 years ago

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.

1) Does this mean lldb-mi is deprecated? 2) 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?

amansheaven commented 4 years ago

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

EthanG45 commented 4 years ago

@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.

ghost commented 4 years ago

@cxstdio

launch.json

- "type": "cppdbg"
+ "type": "lldb"

感谢大佬

puremourning commented 4 years ago

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

Sothan commented 4 years ago

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" } ] }

Screenshot 2019-10-24 at 1 46 54 AM

@amansheaven

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.

y1yang0 commented 4 years ago

Same problem

wangzhen11aaa commented 4 years ago

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.

wangzhen11aaa commented 4 years ago

Can not start debugging because no launch configuration has been provided. what's this?