Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
man-jai opened this issue Jun 25, 2019 · 153 comments
Closed

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

man-jai opened this issue Jun 25, 2019 · 153 comments

Comments

@man-jai
Copy link

@man-jai man-jai commented Jun 25, 2019

Type: Debugger
Input information below

Please review existing issues and our documentation at https://github.com/Microsoft/vscode-cpptools/tree/master/Documentation prior to filing an issue.

Describe the bug

  • OS and Version: macOS 10.14
  • VS Code Version: 1.35.1
  • C/C++ Extension Version: 0.24.0
  • Other extensions you installed (and if the issue persists after disabling them):
  • A clear and concise description of what the bug is.

To Reproduce

launch.json
"version":"0.2.0",
"configurations":[ 
   { 
      "type":"cppdbg",
      "request":"launch",
      "name":"Debug",
      "preLaunchTask":"build",
      "program":"${workspaceFolder}/debug/OpenGLTut.out",
      "args":[ 

      ],
      "stopAtEntry":true,
      "cwd":"${workspaceFolder}",
      "environment":[ 

      ],
      "externalConsole":true,
      "MIMode":"lldb",
      "internalConsoleOptions":"openOnSessionStart",
      "showDisplayString":false,
      "logging":{ 
         "trace":true,
         "traceResponse":true,
         "engineLogging":true,
         "programOutput":true,

      }
   }
]
tasks.json
"version":"2.0.0",
"tasks":[ 
   { 
      "type":"shell",
      "label":"build",
      "command":"clang++",
      "args":[ 
         "-g",
         "-std=c++17",
         "-stdlib=libc++",
         "-framework",
         "Cocoa",
         "-framework",
         "OpenGL",
         "-framework",
         "IOKit",
         "-framework",
         "CoreVideo",
         "-L",
         "/usr/local/include/",
         "-lglew",
         "-lglfw3",
         "${workspaceFolder}/src/Application.cpp",
         "-o",
         "${workspaceFolder}/debug/OpenGlTut.out",
         "--debug",

      ],
      "group":{ 
         "kind":"build",
         "isDefault":true
      }
   }
]

Steps to reproduce the behaviour:
debug using the above tasks and launch files

Additional context
If applicable, please include logging by adding "logging": { "engineLogging": true, "trace": true, "traceResponse": true } in your launch.json
Add any other context about the problem here including log or error messages in your Debug Console or Output windows.

@WardenGnaw
Copy link
Member

@WardenGnaw WardenGnaw commented Jun 25, 2019

Can you share the output when you enable logging?

@WardenGnaw WardenGnaw self-assigned this Jun 25, 2019
@WardenGnaw WardenGnaw added debugger more info needed labels Jun 25, 2019
@man-jai
Copy link
Author

@man-jai man-jai commented Jun 25, 2019

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
Copy link
Member

@WardenGnaw WardenGnaw commented Jun 25, 2019

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
Copy link
Author

@man-jai man-jai commented Jun 25, 2019

"stopAtEntry": true,

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

@floooh
Copy link

@floooh floooh commented Jul 3, 2019

Not sure if the problem is related, but breakpoints stopped working for me when I upgraded to the macOS Catalina and Xcode11 betas (not sure if the bug is triggered by the macOS or Xcode update).

Both "Stop At Entry" as well as breakpoints don't work (neither breakpoints set before the debugging session starts, nor breakpoints set during the debugging session).

Using the CodeLLDB extension still works fine btw.

Debug log from the C/CPP Extension Debugger:
--> E (output): {"event":"output","body":{"category":"console","output":"1: (563) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'\n"},"seq":2,"type":"event"}
1: (563) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (584) LaunchOptions  ExePath='/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp'\n"},"seq":4,"type":"event"}
1: (584) LaunchOptions  ExePath='/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (585) LaunchOptions  WorkingDirectory='/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS'\n"},"seq":6,"type":"event"}
1: (585) LaunchOptions  WorkingDirectory='/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (587) LaunchOptions  ExeArguments=''\n"},"seq":8,"type":"event"}
1: (587) LaunchOptions  ExeArguments=''
--> E (output): {"event":"output","body":{"category":"console","output":"1: (589) LaunchOptions  MIMode='lldb'\n"},"seq":10,"type":"event"}
1: (589) LaunchOptions  MIMode='lldb'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (594) LaunchOptions  MIDebuggerPath='/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi'\n"},"seq":12,"type":"event"}
1: (594) LaunchOptions  MIDebuggerPath='/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (596) LaunchOptions  WaitDynamicLibLoad='false'\n"},"seq":14,"type":"event"}
1: (596) LaunchOptions  WaitDynamicLibLoad='false'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (598) LaunchOptions>\n"},"seq":16,"type":"event"}
1: (598) LaunchOptions>
--> E (output): {"event":"output","body":{"category":"console","output":"1: (600) LaunchOptions</LocalLaunchOptions>\n"},"seq":18,"type":"event"}
1: (600) LaunchOptions</LocalLaunchOptions>
--> E (output): {"event":"output","body":{"category":"console","output":"1: (843) Starting: \"/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi\" --interpreter=mi\n"},"seq":20,"type":"event"}
1: (843) Starting: "/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi" --interpreter=mi
--> E (output): {"event":"output","body":{"category":"console","output":"1: (870) DebuggerPid=12060\n"},"seq":22,"type":"event"}
1: (870) DebuggerPid=12060
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1042) ->(gdb)\n"},"seq":24,"type":"event"}
1: (1042) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1055) <-1001-gdb-set auto-solib-add on\n"},"seq":26,"type":"event"}
1: (1055) <-1001-gdb-set auto-solib-add on
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1056) ->1001^done\n"},"seq":28,"type":"event"}
1: (1056) ->1001^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1057) ->(gdb)\n"},"seq":30,"type":"event"}
1: (1057) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1059) 1001: elapsed time 4\n"},"seq":32,"type":"event"}
1: (1059) 1001: elapsed time 4
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1060) <-1002-gdb-set solib-search-path \"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS:\"\n"},"seq":34,"type":"event"}
1: (1060) <-1002-gdb-set solib-search-path "/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS:"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1060) ->1002^done\n"},"seq":36,"type":"event"}
1: (1060) ->1002^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1061) 1002: elapsed time 0\n"},"seq":38,"type":"event"}
1: (1061) 1002: elapsed time 0
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1061) ->(gdb)\n"},"seq":40,"type":"event"}
1: (1061) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1061) <-1003-environment-cd /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS\n"},"seq":42,"type":"event"}
1: (1061) <-1003-environment-cd /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1062) ->1003^done,path=\"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS\"\n"},"seq":44,"type":"event"}
1: (1062) ->1003^done,path="/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1062) ->(gdb)\n"},"seq":46,"type":"event"}
1: (1062) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1066) 1003: elapsed time 4\n"},"seq":48,"type":"event"}
1: (1066) 1003: elapsed time 4
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1066) <-1004-file-exec-and-symbols /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp\n"},"seq":50,"type":"event"}
1: (1066) <-1004-file-exec-and-symbols /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1167) ->1004^done\n"},"seq":52,"type":"event"}
1: (1167) ->1004^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1168) 1004: elapsed time 101\n"},"seq":54,"type":"event"}
1: (1168) 1004: elapsed time 101
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1169) ->(gdb)\n"},"seq":56,"type":"event"}
1: (1169) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1170) ->=library-loaded,id=\"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp\",target-name=\"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp\",host-name=\"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp\",symbols-loaded=\"0\",loaded_addr=\"-\",size=\"131072\"\n"},"seq":58,"type":"event"}
1: (1170) ->=library-loaded,id="/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp",target-name="/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp",host-name="/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp",symbols-loaded="0",loaded_addr="-",size="131072"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1171) <-1005-interpreter-exec console \"platform status\"\n"},"seq":60,"type":"event"}
1: (1171) <-1005-interpreter-exec console "platform status"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1172) ->  Platform: host\n"},"seq":62,"type":"event"}
1: (1172) ->  Platform: host
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1173) ->    Triple: x86_64h-apple-macosx\n"},"seq":64,"type":"event"}
1: (1173) ->    Triple: x86_64h-apple-macosx
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1173) ->OS Version: 10.15 (19A501i)\n"},"seq":66,"type":"event"}
1: (1173) ->OS Version: 10.15 (19A501i)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1174) ->    Kernel: Darwin Kernel Version 19.0.0: Thu Jun 27 20:18:24 PDT 2019; root:xnu-6153.0.13.131.3~1/RELEASE_X86_64\n"},"seq":68,"type":"event"}
1: (1174) ->    Kernel: Darwin Kernel Version 19.0.0: Thu Jun 27 20:18:24 PDT 2019; root:xnu-6153.0.13.131.3~1/RELEASE_X86_64
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1174) ->  Hostname: 127.0.0.1\n"},"seq":70,"type":"event"}
1: (1174) ->  Hostname: 127.0.0.1
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1175) ->WorkingDir: /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS\n"},"seq":72,"type":"event"}
1: (1175) ->WorkingDir: /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1176) ->1005^done\n"},"seq":74,"type":"event"}
1: (1176) ->1005^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1176) ->(gdb)\n"},"seq":76,"type":"event"}
1: (1176) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1176) 1005: elapsed time 4\n"},"seq":78,"type":"event"}
1: (1176) 1005: elapsed time 4
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1178) <-1006-break-insert -f on main\n"},"seq":80,"type":"event"}
1: (1178) <-1006-break-insert -f on main
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1182) ->1006^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000100006389\",func=\"main\",file=\"sokol.m\",fullname=\"/Users/floh/projects/sokol-samples/libs/sokol/sokol.m\",line=\"1244\",pending=[\"main\"],times=\"0\",original-location=\"main\"}\n"},"seq":82,"type":"event"}
1: (1182) ->1006^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100006389",func="main",file="sokol.m",fullname="/Users/floh/projects/sokol-samples/libs/sokol/sokol.m",line="1244",pending=["main"],times="0",original-location="main"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1182) ->(gdb)\n"},"seq":84,"type":"event"}
1: (1182) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1183) ->=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000100006389\",func=\"main\",file=\"sokol.m\",fullname=\"/Users/floh/projects/sokol-samples/libs/sokol/sokol.m\",line=\"1244\",pending=[\"main\"],times=\"0\",original-location=\"main\"}\n"},"seq":86,"type":"event"}
1: (1183) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100006389",func="main",file="sokol.m",fullname="/Users/floh/projects/sokol-samples/libs/sokol/sokol.m",line="1244",pending=["main"],times="0",original-location="main"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1184) ->(gdb)\n"},"seq":88,"type":"event"}
1: (1184) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1187) 1006: elapsed time 8\n"},"seq":90,"type":"event"}
1: (1187) 1006: elapsed time 8
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1194) Send Event AD7EngineCreateEvent\n"},"seq":92,"type":"event"}
1: (1194) Send Event AD7EngineCreateEvent
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1197) Send Event AD7ProgramCreateEvent\n"},"seq":94,"type":"event"}
1: (1197) Send Event AD7ProgramCreateEvent
--> E (output): {"event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/Launch","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"14.0.60611.1","VS.Diagnostics.Debugger.HostVersion":"14.0.60611.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":799,"VS.Diagnostics.Debugger.Launch.IsCoreDump":false,"VS.Diagnostics.Debugger.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.SourceFileMappings":0}},"seq":96,"type":"event"}
--> R (launch-2): {"request_seq":2,"success":true,"command":"launch","body":{},"seq":98,"type":"response"}
--> E (initialized): {"event":"initialized","body":{},"seq":100,"type":"event"}
<--   C (setBreakpoints-3): {"command":"setBreakpoints","arguments":{"source":{"name":"arraytex-sapp.c","path":"/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c"},"lines":[29],"breakpoints":[{"line":29}],"sourceModified":false},"type":"request","seq":3}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1288) <-1007-break-insert -f on arraytex-sapp.c:29\n"},"seq":103,"type":"event"}
1: (1288) <-1007-break-insert -f on arraytex-sapp.c:29
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1290) ->1007^done,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000100005399\",func=\"init\",file=\"arraytex-sapp.c\",fullname=\"/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c\",line=\"29\",pending=[\"arraytex-sapp.c:29\"],times=\"0\",original-location=\"arraytex-sapp.c:29\"}\n"},"seq":105,"type":"event"}
1: (1290) ->1007^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100005399",func="init",file="arraytex-sapp.c",fullname="/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c",line="29",pending=["arraytex-sapp.c:29"],times="0",original-location="arraytex-sapp.c:29"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1290) 1007: elapsed time 2\n"},"seq":107,"type":"event"}
1: (1290) 1007: elapsed time 2
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1291) ->(gdb)\n"},"seq":109,"type":"event"}
1: (1291) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1292) ->=breakpoint-modified,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000100005399\",func=\"init\",file=\"arraytex-sapp.c\",fullname=\"/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c\",line=\"29\",pending=[\"arraytex-sapp.c:29\"],times=\"0\",original-location=\"arraytex-sapp.c:29\"}\n"},"seq":111,"type":"event"}
1: (1292) ->=breakpoint-modified,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100005399",func="init",file="arraytex-sapp.c",fullname="/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c",line="29",pending=["arraytex-sapp.c:29"],times="0",original-location="arraytex-sapp.c:29"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1293) ->(gdb)\n"},"seq":113,"type":"event"}
1: (1293) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1302) Send Event AD7BreakpointBoundEvent\n"},"seq":115,"type":"event"}
1: (1302) Send Event AD7BreakpointBoundEvent
--> R (setBreakpoints-3): {"request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":true,"line":29}]},"seq":117,"type":"response"}
--> E (breakpoint): {"event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":1,"verified":true,"line":29}},"seq":119,"type":"event"}
<--   C (setFunctionBreakpoints-4): {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4}
--> R (setFunctionBreakpoints-4): {"request_seq":4,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]},"seq":122,"type":"response"}
<--   C (setExceptionBreakpoints-5): {"command":"setExceptionBreakpoints","arguments":{"filters":[]},"type":"request","seq":5}
--> R (setExceptionBreakpoints-5): {"request_seq":5,"success":true,"command":"setExceptionBreakpoints","body":{},"seq":125,"type":"response"}
<--   C (configurationDone-6): {"command":"configurationDone","type":"request","seq":6}
1: (1386) Send Event AD7LoadCompleteEvent
--> R (configurationDone-6): {"request_seq":6,"success":true,"command":"configurationDone","body":{},"seq":128,"type":"response"}
<--   C (threads-7): {"command":"threads","type":"request","seq":7}
--> E (output): {"event":"output","body":{"category":"stdout","output":"Warning: Debuggee TargetArchitecture not detected, assuming x86_64.\n"},"seq":132,"type":"event"}
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1405) <-1008-exec-run\n"},"seq":135,"type":"event"}
1: (1405) <-1008-exec-run
--> R (threads-7): {"request_seq":7,"success":true,"command":"threads","body":{"threads":[]},"seq":134,"type":"response"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1730) ->1008^running\n"},"seq":138,"type":"event"}
1: (1730) ->1008^running
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1731) ->=thread-group-started,id=\"i1\",pid=\"12061\"\n"},"seq":140,"type":"event"}
1: (1731) ->=thread-group-started,id="i1",pid="12061"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1731) 1008: elapsed time 325\n"},"seq":142,"type":"event"}
1: (1731) 1008: elapsed time 325
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1732) ->(gdb)\n"},"seq":144,"type":"event"}
1: (1732) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1733) ->=thread-created,id=\"1\",group-id=\"i1\"\n"},"seq":146,"type":"event"}
1: (1733) ->=thread-created,id="1",group-id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1734) ->=thread-selected,id=\"1\"\n"},"seq":148,"type":"event"}
1: (1734) ->=thread-selected,id="1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1734) ->(gdb)\n"},"seq":150,"type":"event"}
1: (1734) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1735) ->*running,thread-id=\"all\"\n"},"seq":152,"type":"event"}
1: (1735) ->*running,thread-id="all"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1737) ->(gdb)\n"},"seq":154,"type":"event"}
1: (1737) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1739) <-1009-thread-info 1\n"},"seq":156,"type":"event"}
1: (1739) <-1009-thread-info 1
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1740) ->1009^done,threads=[{id=\"1\",target-id=\"Thread 1\",frame={level=\"0\",addr=\"0x0000000100031000\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},state=\"running\"}]\n"},"seq":158,"type":"event"}
1: (1740) ->1009^done,threads=[{id="1",target-id="Thread 1",frame={level="0",addr="0x0000000100031000",func="??",args=[],file="??",fullname="??",line="-1"},state="running"}]
--> E (output): {"event":"output","body":{"category":"stdout","output":"=thread-selected,id=\"1\"\n"},"seq":160,"type":"event"}
1: (1741) ->(gdb)
=thread-selected,id="1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1743) 1009: elapsed time 3\n"},"seq":163,"type":"event"}
1: (1743) 1009: elapsed time 3
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1747) Send Event AD7ProcessInfoUpdatedEvent\n"},"seq":165,"type":"event"}
1: (1747) Send Event AD7ProcessInfoUpdatedEvent
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1747) Send Event AD7ThreadCreateEvent\n"},"seq":167,"type":"event"}
1: (1747) Send Event AD7ThreadCreateEvent
--> E (thread): {"event":"thread","body":{"reason":"started","threadId":1},"seq":169,"type":"event"}
<--   C (threads-8): {"command":"threads","type":"request","seq":8}
--> R (threads-8): {"request_seq":8,"success":true,"command":"threads","body":{"threads":[{"id":1,"name":"Thread #1"}]},"seq":172,"type":"response"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5780) ->(gdb)\n"},"seq":174,"type":"event"}
1: (5780) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5781) ->=thread-exited,id=\"1\",group-id=\"i1\"\n"},"seq":176,"type":"event"}
1: (5781) ->=thread-exited,id="1",group-id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5782) ->=thread-group-exited,id=\"i1\",exit-code=\"0\"\n"},"seq":178,"type":"event"}
1: (5782) ->=thread-group-exited,id="i1",exit-code="0"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5782) ->*stopped,reason=\"exited-normally\"\n"},"seq":180,"type":"event"}
1: (5782) ->*stopped,reason="exited-normally"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5783) ->(gdb)\n"},"seq":182,"type":"event"}
1: (5783) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5787) Send Event AD7ThreadDestroyEvent\n"},"seq":184,"type":"event"}
1: (5787) Send Event AD7ThreadDestroyEvent
--> E (thread): {"event":"thread","body":{"reason":"exited","threadId":1},"seq":186,"type":"event"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5795) <--gdb-exit\n"},"seq":188,"type":"event"}
1: (5795) <--gdb-exit
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5796) ->^exit\n"},"seq":190,"type":"event"}
1: (5796) ->^exit
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5797) ->=thread-group-exited,id=\"i1\"\n"},"seq":192,"type":"event"}
1: (5797) ->=thread-group-exited,id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5797) ->(gdb)\n"},"seq":194,"type":"event"}
1: (5797) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5802) ->\n"},"seq":196,"type":"event"}
1: (5802) ->
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5802) ->\n"},"seq":198,"type":"event"}
1: (5802) ->
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5804) <-logout\n"},"seq":200,"type":"event"}
1: (5804) <-logout
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5817) \"/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi\" exited with code 0 (0x0).\n"},"seq":202,"type":"event"}
1: (5817) "/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi" exited with code 0 (0x0).
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5820) Send Event AD7ProgramDestroyEvent\n"},"seq":204,"type":"event"}
1: (5820) Send Event AD7ProgramDestroyEvent
--> E (output): {"event":"output","body":{"category":"console","output":"The program '/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp' has exited with code 0 (0x00000000).\r\n\n"},"seq":206,"type":"event"}
The program '/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp' has exited with code 0 (0x00000000).
--> E (exited): {"event":"exited","body":{"exitCode":0},"seq":208,"type":"event"}
--> E (terminated): {"event":"terminated","body":{},"seq":210,"type":"event"}
--> E (output): {"event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/DebugCompleted","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"14.0.60611.1","VS.Diagnostics.Debugger.HostVersion":"14.0.60611.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.DebugCompleted.BreakCounter":0}},"seq":212,"type":"event"}
<--   C (disconnect-9): {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":9}
--> R (disconnect-9): {"request_seq":9,"success":true,"command":"disconnect","body":{},"seq":215,"type":"response"}

@man-jai
Copy link
Author

@man-jai man-jai commented Jul 3, 2019

Not sure if the problem is related, but breakpoints stopped working for me when I upgraded to the macOS Catalina and Xcode11 betas (not sure if the bug is triggered by the macOS or Xcode update).

Both "Stop At Entry" as well as breakpoints don't work (neither breakpoints set before the debugging session starts, nor breakpoints set during the debugging session).

Using the CodeLLDB extension still works fine btw.

Debug log from the C/CPP Extension Debugger:
--> E (output): {"event":"output","body":{"category":"console","output":"1: (563) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'\n"},"seq":2,"type":"event"}
1: (563) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (584) LaunchOptions  ExePath='/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp'\n"},"seq":4,"type":"event"}
1: (584) LaunchOptions  ExePath='/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (585) LaunchOptions  WorkingDirectory='/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS'\n"},"seq":6,"type":"event"}
1: (585) LaunchOptions  WorkingDirectory='/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (587) LaunchOptions  ExeArguments=''\n"},"seq":8,"type":"event"}
1: (587) LaunchOptions  ExeArguments=''
--> E (output): {"event":"output","body":{"category":"console","output":"1: (589) LaunchOptions  MIMode='lldb'\n"},"seq":10,"type":"event"}
1: (589) LaunchOptions  MIMode='lldb'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (594) LaunchOptions  MIDebuggerPath='/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi'\n"},"seq":12,"type":"event"}
1: (594) LaunchOptions  MIDebuggerPath='/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (596) LaunchOptions  WaitDynamicLibLoad='false'\n"},"seq":14,"type":"event"}
1: (596) LaunchOptions  WaitDynamicLibLoad='false'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (598) LaunchOptions>\n"},"seq":16,"type":"event"}
1: (598) LaunchOptions>
--> E (output): {"event":"output","body":{"category":"console","output":"1: (600) LaunchOptions</LocalLaunchOptions>\n"},"seq":18,"type":"event"}
1: (600) LaunchOptions</LocalLaunchOptions>
--> E (output): {"event":"output","body":{"category":"console","output":"1: (843) Starting: \"/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi\" --interpreter=mi\n"},"seq":20,"type":"event"}
1: (843) Starting: "/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi" --interpreter=mi
--> E (output): {"event":"output","body":{"category":"console","output":"1: (870) DebuggerPid=12060\n"},"seq":22,"type":"event"}
1: (870) DebuggerPid=12060
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1042) ->(gdb)\n"},"seq":24,"type":"event"}
1: (1042) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1055) <-1001-gdb-set auto-solib-add on\n"},"seq":26,"type":"event"}
1: (1055) <-1001-gdb-set auto-solib-add on
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1056) ->1001^done\n"},"seq":28,"type":"event"}
1: (1056) ->1001^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1057) ->(gdb)\n"},"seq":30,"type":"event"}
1: (1057) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1059) 1001: elapsed time 4\n"},"seq":32,"type":"event"}
1: (1059) 1001: elapsed time 4
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1060) <-1002-gdb-set solib-search-path \"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS:\"\n"},"seq":34,"type":"event"}
1: (1060) <-1002-gdb-set solib-search-path "/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS:"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1060) ->1002^done\n"},"seq":36,"type":"event"}
1: (1060) ->1002^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1061) 1002: elapsed time 0\n"},"seq":38,"type":"event"}
1: (1061) 1002: elapsed time 0
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1061) ->(gdb)\n"},"seq":40,"type":"event"}
1: (1061) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1061) <-1003-environment-cd /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS\n"},"seq":42,"type":"event"}
1: (1061) <-1003-environment-cd /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1062) ->1003^done,path=\"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS\"\n"},"seq":44,"type":"event"}
1: (1062) ->1003^done,path="/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1062) ->(gdb)\n"},"seq":46,"type":"event"}
1: (1062) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1066) 1003: elapsed time 4\n"},"seq":48,"type":"event"}
1: (1066) 1003: elapsed time 4
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1066) <-1004-file-exec-and-symbols /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp\n"},"seq":50,"type":"event"}
1: (1066) <-1004-file-exec-and-symbols /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1167) ->1004^done\n"},"seq":52,"type":"event"}
1: (1167) ->1004^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1168) 1004: elapsed time 101\n"},"seq":54,"type":"event"}
1: (1168) 1004: elapsed time 101
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1169) ->(gdb)\n"},"seq":56,"type":"event"}
1: (1169) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1170) ->=library-loaded,id=\"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp\",target-name=\"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp\",host-name=\"/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp\",symbols-loaded=\"0\",loaded_addr=\"-\",size=\"131072\"\n"},"seq":58,"type":"event"}
1: (1170) ->=library-loaded,id="/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp",target-name="/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp",host-name="/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp",symbols-loaded="0",loaded_addr="-",size="131072"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1171) <-1005-interpreter-exec console \"platform status\"\n"},"seq":60,"type":"event"}
1: (1171) <-1005-interpreter-exec console "platform status"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1172) ->  Platform: host\n"},"seq":62,"type":"event"}
1: (1172) ->  Platform: host
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1173) ->    Triple: x86_64h-apple-macosx\n"},"seq":64,"type":"event"}
1: (1173) ->    Triple: x86_64h-apple-macosx
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1173) ->OS Version: 10.15 (19A501i)\n"},"seq":66,"type":"event"}
1: (1173) ->OS Version: 10.15 (19A501i)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1174) ->    Kernel: Darwin Kernel Version 19.0.0: Thu Jun 27 20:18:24 PDT 2019; root:xnu-6153.0.13.131.3~1/RELEASE_X86_64\n"},"seq":68,"type":"event"}
1: (1174) ->    Kernel: Darwin Kernel Version 19.0.0: Thu Jun 27 20:18:24 PDT 2019; root:xnu-6153.0.13.131.3~1/RELEASE_X86_64
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1174) ->  Hostname: 127.0.0.1\n"},"seq":70,"type":"event"}
1: (1174) ->  Hostname: 127.0.0.1
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1175) ->WorkingDir: /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS\n"},"seq":72,"type":"event"}
1: (1175) ->WorkingDir: /Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1176) ->1005^done\n"},"seq":74,"type":"event"}
1: (1176) ->1005^done
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1176) ->(gdb)\n"},"seq":76,"type":"event"}
1: (1176) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1176) 1005: elapsed time 4\n"},"seq":78,"type":"event"}
1: (1176) 1005: elapsed time 4
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1178) <-1006-break-insert -f on main\n"},"seq":80,"type":"event"}
1: (1178) <-1006-break-insert -f on main
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1182) ->1006^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000100006389\",func=\"main\",file=\"sokol.m\",fullname=\"/Users/floh/projects/sokol-samples/libs/sokol/sokol.m\",line=\"1244\",pending=[\"main\"],times=\"0\",original-location=\"main\"}\n"},"seq":82,"type":"event"}
1: (1182) ->1006^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100006389",func="main",file="sokol.m",fullname="/Users/floh/projects/sokol-samples/libs/sokol/sokol.m",line="1244",pending=["main"],times="0",original-location="main"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1182) ->(gdb)\n"},"seq":84,"type":"event"}
1: (1182) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1183) ->=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000100006389\",func=\"main\",file=\"sokol.m\",fullname=\"/Users/floh/projects/sokol-samples/libs/sokol/sokol.m\",line=\"1244\",pending=[\"main\"],times=\"0\",original-location=\"main\"}\n"},"seq":86,"type":"event"}
1: (1183) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100006389",func="main",file="sokol.m",fullname="/Users/floh/projects/sokol-samples/libs/sokol/sokol.m",line="1244",pending=["main"],times="0",original-location="main"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1184) ->(gdb)\n"},"seq":88,"type":"event"}
1: (1184) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1187) 1006: elapsed time 8\n"},"seq":90,"type":"event"}
1: (1187) 1006: elapsed time 8
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1194) Send Event AD7EngineCreateEvent\n"},"seq":92,"type":"event"}
1: (1194) Send Event AD7EngineCreateEvent
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1197) Send Event AD7ProgramCreateEvent\n"},"seq":94,"type":"event"}
1: (1197) Send Event AD7ProgramCreateEvent
--> E (output): {"event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/Launch","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"14.0.60611.1","VS.Diagnostics.Debugger.HostVersion":"14.0.60611.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":799,"VS.Diagnostics.Debugger.Launch.IsCoreDump":false,"VS.Diagnostics.Debugger.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.SourceFileMappings":0}},"seq":96,"type":"event"}
--> R (launch-2): {"request_seq":2,"success":true,"command":"launch","body":{},"seq":98,"type":"response"}
--> E (initialized): {"event":"initialized","body":{},"seq":100,"type":"event"}
<--   C (setBreakpoints-3): {"command":"setBreakpoints","arguments":{"source":{"name":"arraytex-sapp.c","path":"/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c"},"lines":[29],"breakpoints":[{"line":29}],"sourceModified":false},"type":"request","seq":3}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1288) <-1007-break-insert -f on arraytex-sapp.c:29\n"},"seq":103,"type":"event"}
1: (1288) <-1007-break-insert -f on arraytex-sapp.c:29
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1290) ->1007^done,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000100005399\",func=\"init\",file=\"arraytex-sapp.c\",fullname=\"/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c\",line=\"29\",pending=[\"arraytex-sapp.c:29\"],times=\"0\",original-location=\"arraytex-sapp.c:29\"}\n"},"seq":105,"type":"event"}
1: (1290) ->1007^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100005399",func="init",file="arraytex-sapp.c",fullname="/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c",line="29",pending=["arraytex-sapp.c:29"],times="0",original-location="arraytex-sapp.c:29"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1290) 1007: elapsed time 2\n"},"seq":107,"type":"event"}
1: (1290) 1007: elapsed time 2
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1291) ->(gdb)\n"},"seq":109,"type":"event"}
1: (1291) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1292) ->=breakpoint-modified,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000100005399\",func=\"init\",file=\"arraytex-sapp.c\",fullname=\"/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c\",line=\"29\",pending=[\"arraytex-sapp.c:29\"],times=\"0\",original-location=\"arraytex-sapp.c:29\"}\n"},"seq":111,"type":"event"}
1: (1292) ->=breakpoint-modified,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100005399",func="init",file="arraytex-sapp.c",fullname="/Users/floh/projects/sokol-samples/sapp/arraytex-sapp.c",line="29",pending=["arraytex-sapp.c:29"],times="0",original-location="arraytex-sapp.c:29"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1293) ->(gdb)\n"},"seq":113,"type":"event"}
1: (1293) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1302) Send Event AD7BreakpointBoundEvent\n"},"seq":115,"type":"event"}
1: (1302) Send Event AD7BreakpointBoundEvent
--> R (setBreakpoints-3): {"request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":true,"line":29}]},"seq":117,"type":"response"}
--> E (breakpoint): {"event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":1,"verified":true,"line":29}},"seq":119,"type":"event"}
<--   C (setFunctionBreakpoints-4): {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4}
--> R (setFunctionBreakpoints-4): {"request_seq":4,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]},"seq":122,"type":"response"}
<--   C (setExceptionBreakpoints-5): {"command":"setExceptionBreakpoints","arguments":{"filters":[]},"type":"request","seq":5}
--> R (setExceptionBreakpoints-5): {"request_seq":5,"success":true,"command":"setExceptionBreakpoints","body":{},"seq":125,"type":"response"}
<--   C (configurationDone-6): {"command":"configurationDone","type":"request","seq":6}
1: (1386) Send Event AD7LoadCompleteEvent
--> R (configurationDone-6): {"request_seq":6,"success":true,"command":"configurationDone","body":{},"seq":128,"type":"response"}
<--   C (threads-7): {"command":"threads","type":"request","seq":7}
--> E (output): {"event":"output","body":{"category":"stdout","output":"Warning: Debuggee TargetArchitecture not detected, assuming x86_64.\n"},"seq":132,"type":"event"}
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1405) <-1008-exec-run\n"},"seq":135,"type":"event"}
1: (1405) <-1008-exec-run
--> R (threads-7): {"request_seq":7,"success":true,"command":"threads","body":{"threads":[]},"seq":134,"type":"response"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1730) ->1008^running\n"},"seq":138,"type":"event"}
1: (1730) ->1008^running
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1731) ->=thread-group-started,id=\"i1\",pid=\"12061\"\n"},"seq":140,"type":"event"}
1: (1731) ->=thread-group-started,id="i1",pid="12061"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1731) 1008: elapsed time 325\n"},"seq":142,"type":"event"}
1: (1731) 1008: elapsed time 325
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1732) ->(gdb)\n"},"seq":144,"type":"event"}
1: (1732) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1733) ->=thread-created,id=\"1\",group-id=\"i1\"\n"},"seq":146,"type":"event"}
1: (1733) ->=thread-created,id="1",group-id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1734) ->=thread-selected,id=\"1\"\n"},"seq":148,"type":"event"}
1: (1734) ->=thread-selected,id="1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1734) ->(gdb)\n"},"seq":150,"type":"event"}
1: (1734) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1735) ->*running,thread-id=\"all\"\n"},"seq":152,"type":"event"}
1: (1735) ->*running,thread-id="all"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1737) ->(gdb)\n"},"seq":154,"type":"event"}
1: (1737) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1739) <-1009-thread-info 1\n"},"seq":156,"type":"event"}
1: (1739) <-1009-thread-info 1
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1740) ->1009^done,threads=[{id=\"1\",target-id=\"Thread 1\",frame={level=\"0\",addr=\"0x0000000100031000\",func=\"??\",args=[],file=\"??\",fullname=\"??\",line=\"-1\"},state=\"running\"}]\n"},"seq":158,"type":"event"}
1: (1740) ->1009^done,threads=[{id="1",target-id="Thread 1",frame={level="0",addr="0x0000000100031000",func="??",args=[],file="??",fullname="??",line="-1"},state="running"}]
--> E (output): {"event":"output","body":{"category":"stdout","output":"=thread-selected,id=\"1\"\n"},"seq":160,"type":"event"}
1: (1741) ->(gdb)
=thread-selected,id="1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1743) 1009: elapsed time 3\n"},"seq":163,"type":"event"}
1: (1743) 1009: elapsed time 3
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1747) Send Event AD7ProcessInfoUpdatedEvent\n"},"seq":165,"type":"event"}
1: (1747) Send Event AD7ProcessInfoUpdatedEvent
--> E (output): {"event":"output","body":{"category":"console","output":"1: (1747) Send Event AD7ThreadCreateEvent\n"},"seq":167,"type":"event"}
1: (1747) Send Event AD7ThreadCreateEvent
--> E (thread): {"event":"thread","body":{"reason":"started","threadId":1},"seq":169,"type":"event"}
<--   C (threads-8): {"command":"threads","type":"request","seq":8}
--> R (threads-8): {"request_seq":8,"success":true,"command":"threads","body":{"threads":[{"id":1,"name":"Thread #1"}]},"seq":172,"type":"response"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5780) ->(gdb)\n"},"seq":174,"type":"event"}
1: (5780) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5781) ->=thread-exited,id=\"1\",group-id=\"i1\"\n"},"seq":176,"type":"event"}
1: (5781) ->=thread-exited,id="1",group-id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5782) ->=thread-group-exited,id=\"i1\",exit-code=\"0\"\n"},"seq":178,"type":"event"}
1: (5782) ->=thread-group-exited,id="i1",exit-code="0"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5782) ->*stopped,reason=\"exited-normally\"\n"},"seq":180,"type":"event"}
1: (5782) ->*stopped,reason="exited-normally"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5783) ->(gdb)\n"},"seq":182,"type":"event"}
1: (5783) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5787) Send Event AD7ThreadDestroyEvent\n"},"seq":184,"type":"event"}
1: (5787) Send Event AD7ThreadDestroyEvent
--> E (thread): {"event":"thread","body":{"reason":"exited","threadId":1},"seq":186,"type":"event"}
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5795) <--gdb-exit\n"},"seq":188,"type":"event"}
1: (5795) <--gdb-exit
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5796) ->^exit\n"},"seq":190,"type":"event"}
1: (5796) ->^exit
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5797) ->=thread-group-exited,id=\"i1\"\n"},"seq":192,"type":"event"}
1: (5797) ->=thread-group-exited,id="i1"
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5797) ->(gdb)\n"},"seq":194,"type":"event"}
1: (5797) ->(gdb)
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5802) ->\n"},"seq":196,"type":"event"}
1: (5802) ->
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5802) ->\n"},"seq":198,"type":"event"}
1: (5802) ->
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5804) <-logout\n"},"seq":200,"type":"event"}
1: (5804) <-logout
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5817) \"/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi\" exited with code 0 (0x0).\n"},"seq":202,"type":"event"}
1: (5817) "/Users/floh/.vscode/extensions/ms-vscode.cpptools-0.24.0-insiders3/debugAdapters/lldb/bin/lldb-mi" exited with code 0 (0x0).
--> E (output): {"event":"output","body":{"category":"console","output":"1: (5820) Send Event AD7ProgramDestroyEvent\n"},"seq":204,"type":"event"}
1: (5820) Send Event AD7ProgramDestroyEvent
--> E (output): {"event":"output","body":{"category":"console","output":"The program '/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp' has exited with code 0 (0x00000000).\r\n\n"},"seq":206,"type":"event"}
The program '/Users/floh/projects/fips-deploy/sokol-samples/sapp-metal-osx-vscode-debug/arraytex-sapp.app/Contents/MacOS/arraytex-sapp' has exited with code 0 (0x00000000).
--> E (exited): {"event":"exited","body":{"exitCode":0},"seq":208,"type":"event"}
--> E (terminated): {"event":"terminated","body":{},"seq":210,"type":"event"}
--> E (output): {"event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/DebugCompleted","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"14.0.60611.1","VS.Diagnostics.Debugger.HostVersion":"14.0.60611.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.DebugCompleted.BreakCounter":0}},"seq":212,"type":"event"}
<--   C (disconnect-9): {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":9}
--> R (disconnect-9): {"request_seq":9,"success":true,"command":"disconnect","body":{},"seq":215,"type":"response"}

Hi, sorry I forgot that I had updated to Catalina...I do not however have the Xcode beta. I'm guessing since we are both experiencing the issue, that it is a 10.15 beta issue. codelldb works however, I can confirm!

@floooh
Copy link

@floooh floooh commented Sep 11, 2019

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
Copy link

@liquid245 liquid245 commented Oct 8, 2019

Same problem.

@satysin
Copy link

@satysin satysin commented Oct 8, 2019

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 WardenGnaw added bug and removed more info needed labels Oct 8, 2019
@WardenGnaw WardenGnaw changed the title C++ code compiles fine but breakpoints are not being hit (LLDB) Can't debug on macOS Catalina (LLDB) Oct 8, 2019
@WardenGnaw WardenGnaw pinned this issue Oct 8, 2019
@WardenGnaw
Copy link
Member

@WardenGnaw WardenGnaw commented Oct 8, 2019

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
Copy link

@hologerry hologerry commented Oct 9, 2019

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

@mdyring
Copy link

@mdyring mdyring commented Oct 9, 2019

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

@liquid245
Copy link

@liquid245 liquid245 commented Oct 9, 2019

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

@liquid245
Copy link

@liquid245 liquid245 commented Oct 9, 2019

@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
Copy link

@floooh floooh commented Oct 9, 2019

@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
Copy link

@hologerry hologerry commented Oct 9, 2019

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

@floooh
Copy link

@floooh floooh commented Oct 9, 2019

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
Copy link

@hologerry hologerry commented Oct 9, 2019

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

@satysin
Copy link

@satysin satysin commented Oct 9, 2019

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

@kegato
Copy link

@kegato kegato commented Oct 9, 2019

I found a workaround:

  • Download Xcode 10.3 from here and extract it somewhere
  • Set miDebuggerPath in your launch.json to PATH_TO_XCODE.app/Contents/Developer/usr/bin/lldb-mi as suggested by @WardenGnaw

@WardenGnaw
Copy link
Member

@WardenGnaw WardenGnaw commented Oct 9, 2019

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
Copy link

@vaiden vaiden commented Oct 10, 2019

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

@puremourning
Copy link

@puremourning puremourning commented Mar 14, 2020

you have to set miDebuggerPath to point at lldb-mi not lldb. It won't exist in that location. Scroll up and read the thread (e.g. my comments and the maintainers' comments) to understand why.

@baguenaudier
Copy link

@baguenaudier baguenaudier commented Mar 14, 2020

It persists after I tried every workaround above....What shoule I do...

After hitting against this issue, I started using CodeLLDB and its working perfectly.

@DonizeteVida @mfornet
emm,I installed that extension,but the output showed this messages below:

Acquiring platform package for CodeLLDB.
Package is located at https://github.com/vadimcn/vscode-lldb/releases/download/v1.4.5/vscode-lldb-x86_64-darwin.vsix
Downloading...
Downloaded 0%

while I debugging with codelldb everytime.And I can't also open the download link.Maybe the net in my home or github have something wrong.I guess the codelldb works well if the net is well.

Same problem https://github.com/microsoft/vscode/issues/92202

@baguenaudier
Copy link

@baguenaudier baguenaudier commented Mar 14, 2020

you have to set miDebuggerPath to point at lldb-mi not lldb. It won't exist in that location. Scroll up and read the thread (e.g. my comments and the maintainers' comments) to understand why.

Thank you for your reply, but I can not find the lldb-mi in my computer, and I did not install Xcode, only command line tools. lldb version is lldb-1100.0.30.12

@puremourning
Copy link

@puremourning puremourning commented Mar 14, 2020

Quoting the maintainers @sean-mcmanus

Fixed in our latest Insiders release: https://github.com/microsoft/vscode-cpptools/releases/tag/0.27.0-insiders. But there's a known issue

Pause (break all) doesn't work when debugging on Mac. Workaround: use kill -2 to trigger the break.

Quoting me from further up, if you don't/can't use that:

https://github.com/puremourning/lldb-mi/releases

instructions:
#3829 (comment)

Or use the insiders release per the comments from the maintainer.

@maximilianbuff
Copy link

@maximilianbuff maximilianbuff commented Mar 15, 2020

@puremourning

after following your instructions (#3829 (comment)) I was facing some issues.
I could fix them with the following adjustments, but I am not sure if all of them where necessary:

  1. follow your instruction #3829 (comment)
  2. symlink the lldb-mi: ln -s ln -s /Users/<user_name>/lldb-mi/usr/local/bin/lldb-mi /usr/local/bin/lldb-mi
  3. fix missing "liblldb.9.0.0.dylib" by: cd /usr/local/opt/llvm/lib and symlink: ln -s liblldb.9.0.1.dylib liblldb.9.0.0.dylib
  4. delete "externalConsole": true, from my launch.json
  5. delete "miDebuggerPath": "" from launch.json

System: macOS 10.15.3

@AntonSidorov
Copy link

@AntonSidorov AntonSidorov commented Mar 27, 2020

Fixed in our latest Insiders release: https://github.com/microsoft/vscode-cpptools/releases/tag/0.27.0-insiders. But there's a known issue

Pause (break all) doesn't work when debugging on Mac. Workaround: use kill -2 <pid> to trigger the break.

I've had a similar issue on 10.15.3. Couldn't get CodeLLDB or the lldb-mi solutions to work at all. Switching to the insiders build (0.27.0-insiders4) has solved all the issues for me.

@Garithe
Copy link

@Garithe Garithe commented Mar 27, 2020

I still have question here with insiders5. My probelm is if set externalConsole false, it will start debugging but no where to get input. (seems not able to input in debug console, but output there is fine)
If set true, a now console will pop up but without anything running inside. And there is no output in debug console. My os is Catalina(10.15.4), Xcode is also the newest.
launch.json is just like this(copy from official site):

{
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) launch",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "lldb"
}
]
}

@puremourning
Copy link

@puremourning puremourning commented Mar 27, 2020

My probelm is if set externalConsole false, it will start debugging but no where to get input.

@Garithe this is a limitation of LLDB, not vscode-cpptools (it also applies to lldb-vscode). I'd recommend using "externalConsole": true .

If set true, a now console will pop up but without anything running inside

This is likely a different issue, probably reolated to the program argument in your launch configs apparently being a directory not a binary.

@Garithe
Copy link

@Garithe Garithe commented Mar 27, 2020

My probelm is if set externalConsole false, it will start debugging but no where to get input.

@Garithe this is a limitation of LLDB, not vscode-cpptools (it also applies to lldb-vscode). I'd recommend using "externalConsole": true .

If set true, a now console will pop up but without anything running inside

This is likely a different issue, probably reolated to the program argument in your launch configs apparently being a directory not a binary.

@puremourning Thanks for replying. But that's just a mistake when I copy the content.I did use "${fileDirname}/${fileBasenameNoExtension}". If it's a name thing, debugger shouldn't run when I set "externalConsole" false. By the way when I click run without debugging there is also nothing in the console, maybe this is indeed another problem

@sean-mcmanus
Copy link
Collaborator

@sean-mcmanus sean-mcmanus commented Mar 31, 2020

Fixed with 0.27.0.

@sean-mcmanus sean-mcmanus unpinned this issue Mar 31, 2020
@Saafo
Copy link

@Saafo Saafo commented Mar 31, 2020

Yeah, the 0.27.0 works well on 10.15.4.

Here's my configurations:

tasks.json

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "clangBuild",
            "type": "shell",
            "command": "clang",
            "args": [
                "-g",
                "-o${fileBasenameNoExtension}.out",
                "${file}"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

launch.json

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "clang - Build and debug active file",
            "type": "cppdbg",
            "request": "launch",
            "program": "${fileDirname}/${fileBasenameNoExtension}.out",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": true,
            "MIMode": "lldb",
            // "preLaunchTask": "clang build active file"
            "preLaunchTask": "clangBuild",
        }
    ]
}

However, now although I can uninstall the CodeLLDB extension, I can only debug using external console(Terminal.app). It seems there's no option as "IntegratedTerminal" so I can't use the integrated terminal to debug. When using single screen to debug, that would cause inconvenience. Hope you would support "IntegratedTerminal" option.

@spinicist
Copy link

@spinicist spinicist commented Mar 31, 2020

Thanks @sean-mcmanus! Looks good to me.

@Saafo To get the integrated terminal, set "externalConsole": false

@Saafo
Copy link

@Saafo Saafo commented Apr 1, 2020

@spinicist I've tried the "externalConsole": false;, however, the output printed in the debug console tab:
image
and the terminal tab is like this:
image
I still can't use the integrated terminal...

@Sukhrobjon
Copy link

@Sukhrobjon Sukhrobjon commented Apr 5, 2020

I am having the same issue as @Saafo, cant use my debugger

@spinicist
Copy link

@spinicist spinicist commented Apr 8, 2020

@Saafo That is the expected behaviour. The debugger has its own terminal, that is the "Integrated Terminal". The inability to take input has been a longstanding issue, if you need to provide input to your program then you can use the external console.

@Kendrick-Song
Copy link

@Kendrick-Song Kendrick-Song commented Apr 11, 2020

@Saafo How do you fix the issue, i have the same issue too.

@puremourning
Copy link

@puremourning puremourning commented Apr 11, 2020

It's really simple. The integrated terminal is not supported, and never was.

@Saafo
Copy link

@Saafo Saafo commented Apr 12, 2020

@Kendrick-Song I just can't solve it... I have to use the external terminal now.

@Chris-Nk
Copy link

@Chris-Nk Chris-Nk commented Jun 23, 2020

I had a very similar problem, but I was able to FINALLY get the debbuger WORKING. So, the one thing I didn't do after setting up my task json file was to press command+shift+B. So to solve the problem I was having, 1)I created a new .c file in a new folder
2)set up my task json file and then went back to my .c file(by pressing its window/tab in vscode)
3) then pressed command+shit+B. After this I then went on to create my launch json file as I had done before. Article that help is below.

Advice: Especial when you are new to anything(in this case Vscode), when asking a question please mention all the steps you took before you ran into an error/problem. For example: my problem was not pressing cmd+shift+B and had nothing to do with the files themselves. So whoever tries to help on let say github will most likely have no idea that--that's what I'm doing wrong. Also shoutout to @WardenGnaw and all the others that contributed to this.

Here is the link to the article that helped with this. The article is for c++ but pretty much the same thing. Now, I did not actual copy and past the code they give because I'm writing in c. The article is on medium so I think the code they provide is save. https://medium.com/gdplabs/build-and-debug-c-on-visual-studio-code-for-mac-77e05537105e

@Chris-Nk
Copy link

@Chris-Nk Chris-Nk commented Jun 23, 2020

@Kendrick-Song @Saafo read above response might be able to help you guys if you are still interested.

@Saafo
Copy link

@Saafo Saafo commented Jun 25, 2020

@Chris-Nk maybe you misunderstood what I mean.

Press cmd+shift+B only means Run Build Task, which means run the default task. However, I and maybe others had already set up the preLaunchTask in the launch.json. So there's no need to press cmd+shift+B.

Besides, what we care about is using the internal console as stdin and stdout, but the cpptool now only works with the debug console or external console. Problems are we can only use a external console, or can't directly read stdin when using debug console.

I'm not sure whether to open a new issue.

@THE-NAMELESS-SPECTRE
Copy link

@THE-NAMELESS-SPECTRE THE-NAMELESS-SPECTRE commented Aug 1, 2020

I have installed C/C++ 0.29.0.

But I still have the same problem

It open a Terminal and do nothing

This is my launch.json

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "2.0.0",
    "configurations": [
        {
            "name": "clang++ - Build and debug active file",
            "type": "cppdbg",
            "request": "launch",
            "program": "${fileDirname}/${fileBasenameNoExtension}",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": true,
            "MIMode": "lldb",
            "preLaunchTask": "clang++ build active file"
        }
    ]
}

and this one is task.json

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "type": "shell",
            "label": "clang++ build active file",
            "command": "/usr/bin/clang++",
            "args": [
                "-std=c++17",
                "-stdlib=libc++",
                "-g",
                "${file}",
                "-o",
                "${fileDirname}/${fileBasenameNoExtension}",
                "--debug"
            ],
            "options": {
                "cwd": "${workspaceFolder}"
            },
            "problemMatcher": [
                "$gcc"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

macOS 10.15.6

Apple clang version 12.0.0 (clang-1200.0.26.2)

lldb-1200.0.26.4

What should I do?

@sparkkk
Copy link

@sparkkk sparkkk commented Aug 26, 2020

@sean-mcmanus
@WardenGnaw
Sad to tell you that i encountered the same issue with @THE-NAMELESS-SPECTRE on 0.29.0

my log:
--> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/Launch","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"16.5.10630.1","VS.Diagnostics.Debugger.HostVersion":"16.5.10630.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":1748,"VS.Diagnostics.Debugger.Launch.IsCoreDump":false,"VS.Diagnostics.Debugger.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.SourceFileMappings":0,"VS.Diagnostics.Debugger.MIMode":"lldb"}},"seq":2} --> R (launch-2): {"type":"response","request_seq":2,"success":true,"command":"launch","body":{},"seq":4} --> E (initialized): {"type":"event","event":"initialized","body":{},"seq":6} <-- C (setBreakpoints-3): {"command":"setBreakpoints","arguments":{"source":{"name":"DescLoader.cpp","path":"/Users/sunty/VSCode/MyGraphic/DescLoader.cpp"},"lines":[859],"breakpoints":[{"line":859}],"sourceModified":false},"type":"request","seq":3} --> R (setBreakpoints-3): {"type":"response","request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":true,"line":859}]},"seq":9} --> E (breakpoint): {"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":1,"verified":true,"line":859}},"seq":11} <-- C (setBreakpoints-4): {"command":"setBreakpoints","arguments":{"source":{"name":"MyGraphic.cpp","path":"/Users/sunty/VSCode/MyGraphic/MyGraphic.cpp"},"lines":[34],"breakpoints":[{"line":34}],"sourceModified":false},"type":"request","seq":4} --> R (setBreakpoints-4): {"type":"response","request_seq":4,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":2,"verified":true,"line":34}]},"seq":14} --> E (breakpoint): {"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":2,"verified":true,"line":34}},"seq":16} <-- C (setFunctionBreakpoints-5): {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":5} --> R (setFunctionBreakpoints-5): {"type":"response","request_seq":5,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]},"seq":19} <-- C (configurationDone-6): {"command":"configurationDone","type":"request","seq":6} --> R (configurationDone-6): {"type":"response","request_seq":6,"success":true,"command":"configurationDone","body":{},"seq":22} --> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"Warning: Debuggee TargetArchitecture not detected, assuming x86_64.\n"},"seq":24} Warning: Debuggee TargetArchitecture not detected, assuming x86_64.

macOS 10.15.6
cpptool 0.29.0
clang 11.0.3

After I downgrade cpptool to 0.27.0, it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests