puremourning / vimspector

vimspector - A multi-language debugging system for Vim
http://puremourning.github.io/vimspector-web
Apache License 2.0
4.08k stars 171 forks source link

breakpoints don't work after <Plug>VimspectorRestart #868

Closed zoumi closed 2 months ago

zoumi commented 3 months ago

Description

After I pressing \ to restart the debug session, the debugee can't stop at breakpoints, it just runs to the end.

Is it reproducible in vim?

Reproducible in Vim

Works with clean config?

Yes

Sample project works?

Not reproducible with sample project

Minimal Reproduction

List of steps to reproduce:

  1. set a breakpoint
  2. start debug(the programs pause at the breakpoint)
  3. restart debug

Expected Behaviour

The debugee should pause at breakpoint.

Actual Behaviour

The debugee runs to the end.

Additional information

No response

Installation Type

Vim packages (git clone)

Vimspector version

c37d50fc463013bdad2ba044615b0bc2ce163681

Debug Info

Vimspector Debug Info
--------------------------------------------------------------------------------
ConnectionType: job
Adapter: 
--------------------------------------------------------------------------------
{
  "attach": {
    "pidProperty": "processId",
    "pidSelect": "ask"
  },
  "command": [
    "D:/Users/OpenDebugAD7.exe"
  ],
  "configuration": {
    "args": [],
    "cwd": "D:\\work\\",
    "environment": [],
    "type": "cppvsdbg"
  },
  "name": "cppdbg",
  "env": {},
  "cwd": "D:\\work\\"
}
--------------------------------------------------------------------------------
Configuration: 
--------------------------------------------------------------------------------
{
  "configuration": {
    "cwd": "D:\\work\\",
    "MIMode": "gdb",
    "name": "my gdb attach",
    "customLaunchSetupCommands": [],
    "program": "D:\\work\\rb.exe",
    "environment": [],
    "type": "cppdbg",
    "request": "launch",
    "args": []
  },
  "adapter": "vscode-cpptools"
}
--------------------------------------------------------------------------------
API Prefix: 
Launch/Init: True / True
Workspace Root: D:\work\
Launch Config: 
--------------------------------------------------------------------------------
{
  "args": [],
  "cwd": "D:\\work\\",
  "environment": [],
  "type": "cppdbg",
  "MIMode": "gdb",
  "name": "my gdb attach",
  "customLaunchSetupCommands": [],
  "program": "D:\\work\\rb.exe",
  "request": "launch"
}
--------------------------------------------------------------------------------
Server Capabilities: 
--------------------------------------------------------------------------------
{
  "supportsConfigurationDoneRequest": true,
  "supportsFunctionBreakpoints": true,
  "supportsConditionalBreakpoints": true,
  "supportsEvaluateForHovers": true,
  "exceptionBreakpointFilters": [
    {
      "filter": "all",
      "label": "All C++ Exceptions",
      "default": false,
      "supportsCondition": true,
      "conditionDescription": "std::out_of_range,std::invalid_argument"
    }
  ],
  "supportsSetVariable": true,
  "supportsGotoTargetsRequest": true,
  "supportsCompletionsRequest": true,
  "completionTriggerCharacters": [],
  "supportsModulesRequest": true,
  "supportedChecksumAlgorithms": [],
  "supportsValueFormattingOptions": true,
  "supportsLogPoints": true,
  "supportsSetExpression": true,
  "supportsDataBreakpoints": true,
  "supportsReadMemoryRequest": true,
  "supportsDisassembleRequest": true,
  "supportsClipboardContext": true,
  "supportsSteppingGranularity": true,
  "supportsInstructionBreakpoints": true,
  "supportsExceptionFilterOptions": true
}
--------------------------------------------------------------------------------
Line Breakpoints: 
--------------------------------------------------------------------------------
{
  "D:\\work\\rb.c": [
    {
      "state": "ENABLED",
      "line": 19,
      "options": {},
      "is_instruction_breakpoint": null,
      "sign_id": 4,
      "server_bp": {
        "0": {
          "id": 1,
          "verified": true,
          "line": 36,
          "BoundBreakpoints": []
        }
      }
    },
    {
      "state": "ENABLED",
      "line": 322,
      "options": {},
      "is_instruction_breakpoint": null,
      "sign_id": 5,
      "server_bp": {
        "0": {
          "id": 2,
          "verified": true,
          "line": 322,
          "BoundBreakpoints": []
        }
      }
    },
    {
      "state": "ENABLED",
      "line": 296,
      "options": {},
      "is_instruction_breakpoint": null,
      "sign_id": 6,
      "server_bp": {
        "0": {
          "id": 3,
          "verified": true,
          "line": 296,
          "BoundBreakpoints": []
        }
      }
    }
  ],
  "d:\\work\\rb.c": []
}
--------------------------------------------------------------------------------
Func Breakpoints: 
--------------------------------------------------------------------------------
[]
--------------------------------------------------------------------------------
Ex Breakpoints: 
--------------------------------------------------------------------------------
{
  "filters": [
    "all"
  ]
}
--------------------------------------------------------------------------------

Log file

2024-06-10 08:42:56,430 - INFO - debug_session.py:128 - 0 - **** INITIALISING NEW VIMSPECTOR SESSION FOR ID 0 ****
2024-06-10 08:42:56,430 - INFO - debug_session.py:130 - 0 - API is: 
2024-06-10 08:42:56,430 - INFO - debug_session.py:131 - 0 - VIMSPECTOR_HOME = D:\programs\vim\vimspector\python3\vimspector\..\..
2024-06-10 08:42:56,430 - INFO - debug_session.py:132 - 0 - gadgetDir = D:\programs\vim\vimspector\gadgets\windows
2024-06-10 08:42:56,430 - INFO - debug_session.py:226 - 0 - User requested start debug session with {}
2024-06-10 08:42:56,430 - DEBUG - debug_session.py:250 - 0 - Reading gadget config: D:\programs\vim\vimspector\gadgets\windows\.gadgets.json
2024-06-10 08:42:56,446 - DEBUG - debug_session.py:250 - 0 - Reading gadget config: None
2024-06-10 08:42:58,388 - DEBUG - utils.py:633 - None - Returning workspaceRoot from the map for workspaceRoot with args ()
2024-06-10 08:42:58,388 - INFO - debug_session.py:485 - 0 - Configuration: {"configuration": {"cwd": "D:\\work\\", "MIMode": "gdb", "name": "my gdb attach", "customLaunchSetupCommands": [], "program": "D:\\work\\/rb.exe", "environment": [], "type": "cppdbg", "request": "launch", "args": []}, "adapter": "vscode-cpptools"}
2024-06-10 08:42:58,388 - INFO - debug_session.py:487 - 0 - Adapter: {"attach": {"pidProperty": "processId", "pidSelect": "ask"}, "command": ["D:/Users/OpenDebugAD7.exe"], "configuration": {"args": [], "cwd": "D:\\work\\", "environment": [], "type": "cppvsdbg"}, "name": "cppdbg"}
2024-06-10 08:42:58,404 - DEBUG - debug_session.py:1203 - 0 - min_width/height: 129/50, actual: 158/44 - result: horizontal
2024-06-10 08:42:58,873 - DEBUG - debug_session.py:1787 - 0 - LAUNCH!
2024-06-10 08:42:58,873 - INFO - debug_session.py:1402 - 0 - Starting debug adapter with: {"attach": {"pidProperty": "processId", "pidSelect": "ask"}, "command": ["D:/Users/OpenDebugAD7.exe"], "configuration": {"args": [], "cwd": "D:\\work\\", "environment": [], "type": "cppvsdbg"}, "name": "cppdbg"}
2024-06-10 08:42:58,873 - DEBUG - debug_session.py:1421 - 0 - Connection Type: job
2024-06-10 08:42:58,936 - INFO - debug_session.py:1505 - 0 - Debug Adapter Started
2024-06-10 08:42:58,936 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "initialize", "arguments": {"adapterID": "cppdbg", "clientID": "vimspector", "clientName": "vimspector", "linesStartAt1": true, "columnsStartAt1": true, "locale": "en_GB", "pathFormat": "path", "supportsVariableType": true, "supportsVariablePaging": false, "supportsRunInTerminalRequest": true, "supportsMemoryReferences": true, "supportsStartDebuggingRequest": true}, "seq": 0, "type": "request"}
2024-06-10 08:43:02,808 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 0, 'success': True, 'command': 'initialize', 'body': {'supportsConfigurationDoneRequest': True, 'supportsFunctionBreakpoints': True, 'supportsConditionalBreakpoints': True, 'supportsEvaluateForHovers': True, 'exceptionBreakpointFilters': [{'filter': 'all', 'label': 'All C++ Exceptions', 'default': False, 'supportsCondition': True, 'conditionDescription': 'std::out_of_range,std::invalid_argument'}], 'supportsSetVariable': True, 'supportsGotoTargetsRequest': True, 'supportsCompletionsRequest': True, 'completionTriggerCharacters': [], 'supportsModulesRequest': True, 'supportedChecksumAlgorithms': [], 'supportsValueFormattingOptions': True, 'supportsLogPoints': True, 'supportsSetExpression': True, 'supportsDataBreakpoints': True, 'supportsReadMemoryRequest': True, 'supportsDisassembleRequest': True, 'supportsClipboardContext': True, 'supportsSteppingGranularity': True, 'supportsInstructionBreakpoints': True, 'supportsExceptionFilterOptions': True}, 'seq': 1}
2024-06-10 08:43:02,808 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "launch", "arguments": {"args": [], "cwd": "D:\\work\\", "environment": [], "type": "cppdbg", "MIMode": "gdb", "name": "my gdb attach", "customLaunchSetupCommands": [], "program": "D:\\work\\/rb.exe", "request": "launch"}, "seq": 1, "type": "request"}
2024-06-10 08:43:02,892 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'request', 'command': 'runInTerminal', 'arguments': {'kind': 'integrated', 'title': 'cppdbg: rb.exe', 'cwd': '', 'args': ['D:\\debugAdapters\\bin\\WindowsDebugLauncher.exe', '--stdin=Microsoft-MIEngine-In-y4latxek.rhx', '--stdout=Microsoft-MIEngine-Out-ts2znrq2.bbz', '--stderr=Microsoft-MIEngine-Error-fv50ukgv.ykb', '--pid=Microsoft-MIEngine-Pid-xh3rkavl.rvr', '--dbgExe=D:\\programs\\mingw-w64\\x86_64-5.3.0-posix-seh-rt_v4-rev0\\mingw64\\bin\\gdb.exe', '--interpreter=mi'], 'env': {}}, 'seq': 2}
2024-06-10 08:43:02,892 - DEBUG - debug_session.py:1966 - 0 - Defaulting working directory to D:\work\cube_workspace\WICOM_SW\Core\Src\my_utils
2024-06-10 08:43:03,389 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"seq": 2, "type": "response", "request_seq": 2, "command": "runInTerminal", "body": {"processId": 4468}, "success": true}
2024-06-10 08:43:04,629 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'telemetry', 'output': 'VS/Diagnostics/Debugger/MIEngine/WindowsRuntime', 'data': {'VS.Diagnostics.Debugger.MIEngine.WindowsRuntime': 'MinGW'}}, 'seq': 3}
2024-06-10 08:43:04,677 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'telemetry', 'output': 'VS/Diagnostics/Debugger/Launch', 'data': {'VS.Diagnostics.Debugger.ImplementationName': 'Microsoft.MIDebugEngine', 'VS.Diagnostics.Debugger.EngineVersion': '17.8.20302.1', 'VS.Diagnostics.Debugger.HostVersion': '17.8.20302.1', 'VS.Diagnostics.Debugger.AdapterId': 'cppdbg', 'VS.Diagnostics.Debugger.Launch.Duration': 1857, 'VS.Diagnostics.Debugger.MIMode': 'gdb', 'VS.Diagnostics.Debugger.FrameworkVersion': '6.0.2724.6912'}}, 'seq': 4}
2024-06-10 08:43:04,677 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 1, 'success': True, 'command': 'launch', 'body': {}, 'seq': 5}
2024-06-10 08:43:04,693 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'initialized', 'body': {}, 'seq': 6}
2024-06-10 08:43:04,693 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "setBreakpoints", "arguments": {"source": {"name": "rb.c", "path": "D:\\work\\\\rb.c"}, "breakpoints": [{"line": 19}, {"line": 322}, {"line": 296}], "sourceModified": false}, "seq": 3, "type": "request"}
2024-06-10 08:43:04,693 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "setFunctionBreakpoints", "arguments": {"breakpoints": []}, "seq": 4, "type": "request"}
2024-06-10 08:43:04,693 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "setExceptionBreakpoints", "arguments": {"filters": ["all"]}, "seq": 5, "type": "request"}
2024-06-10 08:43:04,792 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 3, 'success': True, 'command': 'setBreakpoints', 'body': {'breakpoints': [{'id': 1, 'verified': True, 'line': 19, 'BoundBreakpoints': []}, {'id': 2, 'verified': True, 'line': 322, 'BoundBreakpoints': []}, {'id': 3, 'verified': True, 'line': 296, 'BoundBreakpoints': []}]}, 'seq': 7}
2024-06-10 08:43:04,792 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'breakpoint', 'body': {'reason': 'changed', 'breakpoint': {'id': 1, 'verified': True, 'line': 36, 'BoundBreakpoints': []}}, 'seq': 8}
2024-06-10 08:43:04,792 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'breakpoint', 'body': {'reason': 'changed', 'breakpoint': {'id': 2, 'verified': True, 'line': 322, 'BoundBreakpoints': []}}, 'seq': 9}
2024-06-10 08:43:04,792 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'breakpoint', 'body': {'reason': 'changed', 'breakpoint': {'id': 3, 'verified': True, 'line': 296, 'BoundBreakpoints': []}}, 'seq': 10}
2024-06-10 08:43:04,829 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 4, 'success': True, 'command': 'setFunctionBreakpoints', 'body': {'breakpoints': []}, 'seq': 11}
2024-06-10 08:43:04,829 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 5, 'success': True, 'command': 'setExceptionBreakpoints', 'body': {'breakpoints': []}, 'seq': 12}
2024-06-10 08:43:04,829 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "configurationDone", "seq": 6, "type": "request"}
2024-06-10 08:43:04,902 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 6, 'success': True, 'command': 'configurationDone', 'body': {}, 'seq': 13}
2024-06-10 08:43:04,945 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "threads", "seq": 7, "type": "request"}
2024-06-10 08:43:04,945 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '=thread-group-added,id="i1"\nGNU gdb (GDB) 7.10.1\nCopyright (C) 2015 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"\nand "show warranty" for details.\nThis GDB was configured as "x86_64-w64-mingw32".\nType "show configuration" for configuration details.\nFor bug reporting instructions, please see:\n<http://www.gnu.org/software/gdb/bugs/>.\nFind the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\nFor help, type "help".\nType "apropos word" to search for commands related to "word".\nWarning: Debuggee TargetArchitecture not detected, assuming x86_64.\n=cmd-param-changed,param="pagination",value="off"\n'}, 'seq': 14}
2024-06-10 08:43:04,945 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stderr', 'output': 'Warning: Exceptions are not supported in this scenario.\r\n'}, 'seq': 15}
2024-06-10 08:43:04,945 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '[New Thread 4632.0x23ec]\n'}, 'seq': 16}
2024-06-10 08:43:04,945 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '[New Thread 4632.0xe70]\n'}, 'seq': 17}
2024-06-10 08:43:05,077 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '\nBreakpoint '}, 'seq': 18}
2024-06-10 08:43:05,077 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '1, main () at Core\\Src\\my_utils\\rb.c:284\n'}, 'seq': 19}
2024-06-10 08:43:05,077 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '284\t    test_print("test fast bolck ringbuf...");\n'}, 'seq': 20}
2024-06-10 08:43:05,077 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 7, 'success': True, 'command': 'threads', 'body': {'threads': []}, 'seq': 21}
2024-06-10 08:43:05,077 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'process', 'body': {'startMethod': 'launch', 'name': 'D:\\work\\/rb.exe', 'systemProcessId': 4632, 'pointerSize': 64}, 'seq': 22}
2024-06-10 08:43:05,077 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'thread', 'body': {'reason': 'started', 'threadId': 1}, 'seq': 23}
2024-06-10 08:43:05,077 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "threads", "seq": 8, "type": "request"}
2024-06-10 08:43:05,077 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'thread', 'body': {'reason': 'started', 'threadId': 2}, 'seq': 24}
2024-06-10 08:43:05,077 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded 'C:\\Windows\\SYSTEM32\\ntdll.dll'. Symbols loaded.\r\n"}, 'seq': 25}
2024-06-10 08:43:05,077 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'module', 'body': {'reason': 'new', 'module': {'id': 1, 'name': 'ntdll.dll', 'path': 'C:\\Windows\\SYSTEM32\\ntdll.dll', 'symbolFilePath': 'C:\\Windows\\SYSTEM32\\ntdll.dll', 'vsLoadAddress': '140704907464704', 'vsPreferredLoadAddress': '140704907464704', 'vsModuleSize': 2045232, 'vsLoadOrder': 0, 'vsTimestampUTC': '1601328639', 'vsIs64Bit': True}}, 'seq': 26}
2024-06-10 08:43:05,077 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded 'C:\\Windows\\System32\\kernel32.dll'. Symbols loaded.\r\n"}, 'seq': 27}
2024-06-10 08:43:05,077 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'module', 'body': {'reason': 'new', 'module': {'id': 2, 'name': 'kernel32.dll', 'path': 'C:\\Windows\\System32\\kernel32.dll', 'symbolFilePath': 'C:\\Windows\\System32\\kernel32.dll', 'vsLoadAddress': '140704880398336', 'vsPreferredLoadAddress': '140704880398336', 'vsModuleSize': 766716, 'vsLoadOrder': 1, 'vsTimestampUTC': '1601328642', 'vsIs64Bit': True}}, 'seq': 28}
2024-06-10 08:43:05,077 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded 'C:\\Windows\\System32\\KernelBase.dll'. Symbols loaded.\r\n"}, 'seq': 29}
2024-06-10 08:43:05,092 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'module', 'body': {'reason': 'new', 'module': {'id': 3, 'name': 'KernelBase.dll', 'path': 'C:\\Windows\\System32\\KernelBase.dll', 'symbolFilePath': 'C:\\Windows\\System32\\KernelBase.dll', 'vsLoadAddress': '140704867684352', 'vsPreferredLoadAddress': '140704867684352', 'vsModuleSize': 2906548, 'vsLoadOrder': 2, 'vsTimestampUTC': '1601328618', 'vsIs64Bit': True}}, 'seq': 30}
2024-06-10 08:43:05,092 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded 'C:\\Windows\\System32\\msvcrt.dll'. Symbols loaded.\r\n"}, 'seq': 31}
2024-06-10 08:43:05,093 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'module', 'body': {'reason': 'new', 'module': {'id': 4, 'name': 'msvcrt.dll', 'path': 'C:\\Windows\\System32\\msvcrt.dll', 'symbolFilePath': 'C:\\Windows\\System32\\msvcrt.dll', 'vsLoadAddress': '140704901697536', 'vsPreferredLoadAddress': '140704901697536', 'vsModuleSize': 640164, 'vsLoadOrder': 3, 'vsTimestampUTC': '1575709751', 'vsIs64Bit': True}}, 'seq': 32}
2024-06-10 08:43:05,093 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '\nBreakpoint '}, 'seq': 33}
2024-06-10 08:43:05,093 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '4, main () at Core\\Src\\my_utils\\rb.c:296\n'}, 'seq': 34}
2024-06-10 08:43:05,093 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '296\t    p0 = rb_batch_put(&rb, test_buf1, 20);\n'}, 'seq': 35}
2024-06-10 08:43:05,109 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': 'Execute debugger commands using "-exec <command>", for example "-exec info registers" will list registers in use (when GDB is the debugger)\r\n'}, 'seq': 36}
2024-06-10 08:43:05,109 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 8, 'success': True, 'command': 'threads', 'body': {'threads': [{'id': 1, 'name': ' [1]'}, {'id': 2, 'name': ' [2]'}]}, 'seq': 38}
2024-06-10 08:43:05,109 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "threads", "seq": 9, "type": "request"}
2024-06-10 08:43:05,109 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'stopped', 'body': {'reason': 'breakpoint', 'threadId': 1, 'allThreadsStopped': True, 'source': {'name': 'rb.c', 'path': 'd:\\work\\\\rb.c', 'sources': [], 'checksums': []}, 'line': 296, 'column': 1}, 'seq': 37}
2024-06-10 08:43:05,114 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "threads", "seq": 10, "type": "request"}
2024-06-10 08:43:05,130 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 9, 'success': True, 'command': 'threads', 'body': {'threads': [{'id': 1, 'name': ' [1]'}, {'id': 2, 'name': ' [2]'}]}, 'seq': 39}
2024-06-10 08:43:05,130 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 10, 'success': True, 'command': 'threads', 'body': {'threads': [{'id': 1, 'name': ' [1]'}, {'id': 2, 'name': ' [2]'}]}, 'seq': 40}
2024-06-10 08:43:05,130 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "stackTrace", "arguments": {"threadId": 1}, "seq": 11, "type": "request"}
2024-06-10 08:43:05,177 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 11, 'success': True, 'command': 'stackTrace', 'body': {'stackFrames': [{'id': 1000, 'name': 'main()', 'source': {'name': 'rb.c', 'path': 'd:\\work\\\\rb.c', 'sources': [], 'checksums': []}, 'line': 296, 'column': 1, 'instructionPointerReference': '0x0000000000401965'}], 'totalFrames': 1}, 'seq': 41}
2024-06-10 08:43:05,292 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "scopes", "arguments": {"frameId": 1000}, "seq": 12, "type": "request"}
2024-06-10 08:43:09,409 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 12, 'success': True, 'command': 'scopes', 'body': {'scopes': [{'presentationHint': 'locals', 'name': 'Locals', 'variablesReference': 1000, 'expensive': False}, {'presentationHint': 'registers', 'name': 'Registers', 'variablesReference': 1001, 'expensive': True}]}, 'seq': 42}
2024-06-10 08:43:09,409 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "variables", "arguments": {"variablesReference": 1000}, "seq": 13, "type": "request"}
2024-06-10 08:43:09,549 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 13, 'success': True, 'command': 'variables', 'body': {'variables': [{'name': 'rb_buf', 'value': '[8]', 'type': 'Sizet [8]', 'evaluateName': 'rb_buf', 'variablesReference': 1002, 'memoryReference': '0x000000000061fdf0'}, {'name': 'test_buf1', 'value': '[20]', 'type': 'Sizet [20]', 'evaluateName': 'test_buf1', 'variablesReference': 1003, 'memoryReference': '0x000000000061fda0'}, {'name': 'start_addr', 'value': '0x10', 'type': 'Sizet *', 'evaluateName': 'start_addr', 'variablesReference': 1004, 'memoryReference': '0x0000000000000010'}, {'name': 'test_buf2', 'value': '[20]', 'type': 'Sizet [20]', 'evaluateName': 'test_buf2', 'variablesReference': 1005, 'memoryReference': '0x000000000061fd40'}, {'name': 'rb', 'value': '{...}', 'type': 'SizetRingbuf', 'evaluateName': 'rb', 'variablesReference': 1006}, {'name': 'p0', 'value': '4', 'type': 'rb_size_t', 'evaluateName': 'p0', 'variablesReference': 0, 'memoryReference': '0x0000000000000004'}, {'name': 'p1', 'value': '0', 'type': 'rb_size_t', 'evaluateName': 'p1', 'variablesReference': 0, 'memoryReference': '0x0000000000000000'}, {'name': 'p2', 'value': '0', 'type': 'rb_size_t', 'evaluateName': 'p2', 'variablesReference': 0, 'memoryReference': '0x0000000000000000'}, {'name': 'i', 'value': "20 '\\024'", 'type': 'uint8_t', 'evaluateName': 'i', 'variablesReference': 0, 'memoryReference': '0x0000000000000014'}, {'name': 'b', 'value': '0', 'type': 'Sizet', 'evaluateName': 'b', 'variablesReference': 0, 'memoryReference': '0x0000000000000000'}, {'name': 'test_buf3', 'value': '[117]', 'type': 'Sizet [117]', 'evaluateName': 'test_buf3', 'variablesReference': 1007, 'memoryReference': '0x000000000061fb40'}, {'name': 'dst_read_index', 'value': '0', 'type': 'rb_size_t', 'evaluateName': 'dst_read_index', 'variablesReference': 0, 'memoryReference': '0x0000000000000000'}]}, 'seq': 43}
2024-06-10 08:43:13,810 - DEBUG - debug_session.py:518 - 0 - Stop debug adapter with callback: start
2024-06-10 08:43:13,810 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "disconnect", "arguments": {}, "seq": 14, "type": "request"}
2024-06-10 08:43:13,857 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': 'Kill the program being debugged? (y or n) [answered Y; input not from terminal]\n'}, 'seq': 44}
2024-06-10 08:43:13,857 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "The program 'D:\\work\\/rb.exe' has exited with code 0 (0x00000000).\r\n\r\n"}, 'seq': 45}
2024-06-10 08:43:13,857 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'telemetry', 'output': 'VS/Diagnostics/Debugger/DebugCompleted', 'data': {'VS.Diagnostics.Debugger.ImplementationName': 'Microsoft.MIDebugEngine', 'VS.Diagnostics.Debugger.EngineVersion': '17.8.20302.1', 'VS.Diagnostics.Debugger.HostVersion': '17.8.20302.1', 'VS.Diagnostics.Debugger.AdapterId': 'cppdbg', 'VS.Diagnostics.Debugger.DebugCompleted.BreakCounter': 1}}, 'seq': 46}
2024-06-10 08:43:13,857 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 14, 'success': True, 'command': 'disconnect', 'body': {}, 'seq': 47}
2024-06-10 08:43:13,857 - DEBUG - debug_session.py:1524 - 0 - Setting server exit handler before disconnect
2024-06-10 08:43:13,888 - INFO - debug_session.py:2049 - 0 - The server has terminated with status 0
2024-06-10 08:43:13,895 - DEBUG - debug_session.py:2067 - 0 - Running server exit handler
2024-06-10 08:43:13,895 - INFO - debug_session.py:485 - 0 - Configuration: {"configuration": {"cwd": "D:\\work\\", "MIMode": "gdb", "name": "my gdb attach", "customLaunchSetupCommands": [], "program": "D:\\work\\/rb.exe", "environment": [], "type": "cppdbg", "request": "launch", "args": []}, "adapter": "vscode-cpptools"}
2024-06-10 08:43:13,895 - INFO - debug_session.py:487 - 0 - Adapter: {"attach": {"pidProperty": "processId", "pidSelect": "ask"}, "command": ["D:/Users/OpenDebugAD7.exe"], "configuration": {"args": [], "cwd": "D:\\work\\", "environment": [], "type": "cppvsdbg"}, "name": "cppdbg", "env": {}, "cwd": "D:\\work\\cube_workspace\\WICOM_SW\\Core\\Src"}
2024-06-10 08:43:13,895 - DEBUG - debug_session.py:1787 - 0 - LAUNCH!
2024-06-10 08:43:13,895 - INFO - debug_session.py:1402 - 0 - Starting debug adapter with: {"attach": {"pidProperty": "processId", "pidSelect": "ask"}, "command": ["D:/Users/OpenDebugAD7.exe"], "configuration": {"args": [], "cwd": "D:\\work\\", "environment": [], "type": "cppvsdbg"}, "name": "cppdbg", "env": {}, "cwd": "D:\\work\\cube_workspace\\WICOM_SW\\Core\\Src"}
2024-06-10 08:43:13,895 - DEBUG - debug_session.py:1421 - 0 - Connection Type: job
2024-06-10 08:43:13,926 - INFO - debug_session.py:1505 - 0 - Debug Adapter Started
2024-06-10 08:43:13,926 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "initialize", "arguments": {"adapterID": "cppdbg", "clientID": "vimspector", "clientName": "vimspector", "linesStartAt1": true, "columnsStartAt1": true, "locale": "en_GB", "pathFormat": "path", "supportsVariableType": true, "supportsVariablePaging": false, "supportsRunInTerminalRequest": true, "supportsMemoryReferences": true, "supportsStartDebuggingRequest": true}, "seq": 0, "type": "request"}
2024-06-10 08:43:14,412 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 0, 'success': True, 'command': 'initialize', 'body': {'supportsConfigurationDoneRequest': True, 'supportsFunctionBreakpoints': True, 'supportsConditionalBreakpoints': True, 'supportsEvaluateForHovers': True, 'exceptionBreakpointFilters': [{'filter': 'all', 'label': 'All C++ Exceptions', 'default': False, 'supportsCondition': True, 'conditionDescription': 'std::out_of_range,std::invalid_argument'}], 'supportsSetVariable': True, 'supportsGotoTargetsRequest': True, 'supportsCompletionsRequest': True, 'completionTriggerCharacters': [], 'supportsModulesRequest': True, 'supportedChecksumAlgorithms': [], 'supportsValueFormattingOptions': True, 'supportsLogPoints': True, 'supportsSetExpression': True, 'supportsDataBreakpoints': True, 'supportsReadMemoryRequest': True, 'supportsDisassembleRequest': True, 'supportsClipboardContext': True, 'supportsSteppingGranularity': True, 'supportsInstructionBreakpoints': True, 'supportsExceptionFilterOptions': True}, 'seq': 1}
2024-06-10 08:43:14,412 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "launch", "arguments": {"args": [], "cwd": "D:\\work\\", "environment": [], "type": "cppdbg", "MIMode": "gdb", "name": "my gdb attach", "customLaunchSetupCommands": [], "program": "D:\\work\\/rb.exe", "request": "launch"}, "seq": 1, "type": "request"}
2024-06-10 08:43:14,474 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'request', 'command': 'runInTerminal', 'arguments': {'kind': 'integrated', 'title': 'cppdbg: rb.exe', 'cwd': '', 'args': ['D:\\Users\\WindowsDebugLauncher.exe', '--stdin=Microsoft-MIEngine-In-yv1ugzno.v0z', '--stdout=Microsoft-MIEngine-Out-4hqtclt5.q0t', '--stderr=Microsoft-MIEngine-Error-rbkdt4as.1st', '--pid=Microsoft-MIEngine-Pid-5ky2fi2g.ot3', '--dbgExe=D:\\programs\\mingw-w64\\x86_64-5.3.0-posix-seh-rt_v4-rev0\\mingw64\\bin\\gdb.exe', '--interpreter=mi'], 'env': {}}, 'seq': 2}
2024-06-10 08:43:14,474 - DEBUG - debug_session.py:1966 - 0 - Defaulting working directory to D:\work\cube_workspace\WICOM_SW\Core\Src\my_utils
2024-06-10 08:43:14,729 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"seq": 2, "type": "response", "request_seq": 2, "command": "runInTerminal", "body": {"processId": 6156}, "success": true}
2024-06-10 08:43:14,870 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'telemetry', 'output': 'VS/Diagnostics/Debugger/MIEngine/WindowsRuntime', 'data': {'VS.Diagnostics.Debugger.MIEngine.WindowsRuntime': 'MinGW'}}, 'seq': 3}
2024-06-10 08:43:14,933 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'telemetry', 'output': 'VS/Diagnostics/Debugger/Launch', 'data': {'VS.Diagnostics.Debugger.ImplementationName': 'Microsoft.MIDebugEngine', 'VS.Diagnostics.Debugger.EngineVersion': '17.8.20302.1', 'VS.Diagnostics.Debugger.HostVersion': '17.8.20302.1', 'VS.Diagnostics.Debugger.AdapterId': 'cppdbg', 'VS.Diagnostics.Debugger.Launch.Duration': 498, 'VS.Diagnostics.Debugger.MIMode': 'gdb', 'VS.Diagnostics.Debugger.FrameworkVersion': '6.0.2724.6912'}}, 'seq': 4}
2024-06-10 08:43:14,933 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 1, 'success': True, 'command': 'launch', 'body': {}, 'seq': 5}
2024-06-10 08:43:14,933 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'initialized', 'body': {}, 'seq': 6}
2024-06-10 08:43:14,933 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "setBreakpoints", "arguments": {"source": {"name": "rb.c", "path": "D:\\work\\\\rb.c"}, "breakpoints": [{"line": 19}, {"line": 322}, {"line": 296}], "sourceModified": false}, "seq": 3, "type": "request"}
2024-06-10 08:43:14,933 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "setBreakpoints", "arguments": {"source": {"name": "rb.c", "path": "d:\\work\\\\rb.c"}, "breakpoints": [], "sourceModified": false}, "seq": 4, "type": "request"}
2024-06-10 08:43:14,933 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "setFunctionBreakpoints", "arguments": {"breakpoints": []}, "seq": 5, "type": "request"}
2024-06-10 08:43:14,933 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "setExceptionBreakpoints", "arguments": {"filters": ["all"]}, "seq": 6, "type": "request"}
2024-06-10 08:43:15,018 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 3, 'success': True, 'command': 'setBreakpoints', 'body': {'breakpoints': [{'id': 1, 'verified': True, 'line': 19, 'BoundBreakpoints': []}, {'id': 2, 'verified': True, 'line': 322, 'BoundBreakpoints': []}, {'id': 3, 'verified': True, 'line': 296, 'BoundBreakpoints': []}]}, 'seq': 7}
2024-06-10 08:43:15,018 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'breakpoint', 'body': {'reason': 'changed', 'breakpoint': {'id': 1, 'verified': True, 'line': 36, 'BoundBreakpoints': []}}, 'seq': 8}
2024-06-10 08:43:15,018 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'breakpoint', 'body': {'reason': 'changed', 'breakpoint': {'id': 2, 'verified': True, 'line': 322, 'BoundBreakpoints': []}}, 'seq': 9}
2024-06-10 08:43:15,018 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'breakpoint', 'body': {'reason': 'changed', 'breakpoint': {'id': 3, 'verified': True, 'line': 296, 'BoundBreakpoints': []}}, 'seq': 10}
2024-06-10 08:43:15,018 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 4, 'success': True, 'command': 'setBreakpoints', 'body': {'breakpoints': []}, 'seq': 11}
2024-06-10 08:43:15,055 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 5, 'success': True, 'command': 'setFunctionBreakpoints', 'body': {'breakpoints': []}, 'seq': 12}
2024-06-10 08:43:15,055 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 6, 'success': True, 'command': 'setExceptionBreakpoints', 'body': {'breakpoints': []}, 'seq': 13}
2024-06-10 08:43:15,055 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "configurationDone", "seq": 7, "type": "request"}
2024-06-10 08:43:15,087 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 7, 'success': True, 'command': 'configurationDone', 'body': {}, 'seq': 14}
2024-06-10 08:43:15,118 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "threads", "seq": 8, "type": "request"}
2024-06-10 08:43:15,118 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '=thread-group-added,id="i1"\nGNU gdb (GDB) 7.10.1\nCopyright (C) 2015 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"\nand "show warranty" for details.\nThis GDB was configured as "x86_64-w64-mingw32".\nType "show configuration" for configuration details.\nFor bug reporting instructions, please see:\n<http://www.gnu.org/software/gdb/bugs/>.\nFind the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\nFor help, type "help".\nType "apropos word" to search for commands related to "word".\nWarning: Debuggee TargetArchitecture not detected, assuming x86_64.\n=cmd-param-changed,param="pagination",value="off"\n'}, 'seq': 15}
2024-06-10 08:43:15,240 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stderr', 'output': 'Warning: Exceptions are not supported in this scenario.\r\n'}, 'seq': 16}
2024-06-10 08:43:15,240 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '[New Thread 9316.0x2ef8]\n'}, 'seq': 17}
2024-06-10 08:43:15,240 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '[New Thread 9316.0x1b44]\n'}, 'seq': 18}
2024-06-10 08:43:15,240 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 8, 'success': True, 'command': 'threads', 'body': {'threads': []}, 'seq': 19}
2024-06-10 08:43:15,240 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '\nBreakpoint '}, 'seq': 20}
2024-06-10 08:43:15,240 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '1, main () at Core\\Src\\my_utils\\rb.c:284\n'}, 'seq': 21}
2024-06-10 08:43:15,240 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '284\t    test_print("test fast bolck ringbuf...");\n'}, 'seq': 22}
2024-06-10 08:43:15,240 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'process', 'body': {'startMethod': 'launch', 'name': 'D:\\work\\/rb.exe', 'systemProcessId': 9316, 'pointerSize': 64}, 'seq': 23}
2024-06-10 08:43:15,256 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'thread', 'body': {'reason': 'started', 'threadId': 1}, 'seq': 24}
2024-06-10 08:43:15,256 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "threads", "seq": 9, "type": "request"}
2024-06-10 08:43:15,256 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'thread', 'body': {'reason': 'started', 'threadId': 2}, 'seq': 25}
2024-06-10 08:43:15,256 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded 'C:\\Windows\\SYSTEM32\\ntdll.dll'. Symbols loaded.\r\n"}, 'seq': 26}
2024-06-10 08:43:15,256 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'module', 'body': {'reason': 'new', 'module': {'id': 1, 'name': 'ntdll.dll', 'path': 'C:\\Windows\\SYSTEM32\\ntdll.dll', 'symbolFilePath': 'C:\\Windows\\SYSTEM32\\ntdll.dll', 'vsLoadAddress': '140704907464704', 'vsPreferredLoadAddress': '140704907464704', 'vsModuleSize': 2045232, 'vsLoadOrder': 0, 'vsTimestampUTC': '1601328639', 'vsIs64Bit': True}}, 'seq': 27}
2024-06-10 08:43:15,256 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded 'C:\\Windows\\System32\\kernel32.dll'. Symbols loaded.\r\n"}, 'seq': 28}
2024-06-10 08:43:15,256 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'module', 'body': {'reason': 'new', 'module': {'id': 2, 'name': 'kernel32.dll', 'path': 'C:\\Windows\\System32\\kernel32.dll', 'symbolFilePath': 'C:\\Windows\\System32\\kernel32.dll', 'vsLoadAddress': '140704880398336', 'vsPreferredLoadAddress': '140704880398336', 'vsModuleSize': 766716, 'vsLoadOrder': 1, 'vsTimestampUTC': '1601328642', 'vsIs64Bit': True}}, 'seq': 29}
2024-06-10 08:43:15,256 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded 'C:\\Windows\\System32\\KernelBase.dll'. Symbols loaded.\r\n"}, 'seq': 30}
2024-06-10 08:43:15,256 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'module', 'body': {'reason': 'new', 'module': {'id': 3, 'name': 'KernelBase.dll', 'path': 'C:\\Windows\\System32\\KernelBase.dll', 'symbolFilePath': 'C:\\Windows\\System32\\KernelBase.dll', 'vsLoadAddress': '140704867684352', 'vsPreferredLoadAddress': '140704867684352', 'vsModuleSize': 2906548, 'vsLoadOrder': 2, 'vsTimestampUTC': '1601328618', 'vsIs64Bit': True}}, 'seq': 31}
2024-06-10 08:43:15,256 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded 'C:\\Windows\\System32\\msvcrt.dll'. Symbols loaded.\r\n"}, 'seq': 32}
2024-06-10 08:43:15,256 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'module', 'body': {'reason': 'new', 'module': {'id': 4, 'name': 'msvcrt.dll', 'path': 'C:\\Windows\\System32\\msvcrt.dll', 'symbolFilePath': 'C:\\Windows\\System32\\msvcrt.dll', 'vsLoadAddress': '140704901697536', 'vsPreferredLoadAddress': '140704901697536', 'vsModuleSize': 640164, 'vsLoadOrder': 3, 'vsTimestampUTC': '1575709751', 'vsIs64Bit': True}}, 'seq': 33}
2024-06-10 08:43:15,287 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 9, 'success': True, 'command': 'threads', 'body': {'threads': [{'id': 1, 'name': ' [1]'}, {'id': 2, 'name': ' [2]'}]}, 'seq': 34}
2024-06-10 08:43:15,287 - DEBUG - debug_adapter_connection.py:205 - 0 - Sending Message: {"command": "threads", "seq": 10, "type": "request"}
2024-06-10 08:43:15,303 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'response', 'request_seq': 10, 'success': True, 'command': 'threads', 'body': {'threads': [{'id': 1, 'name': ' [1]'}, {'id': 2, 'name': ' [2]'}]}, 'seq': 35}
2024-06-10 08:43:15,334 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': 'test fast bolck ringbuf...\n'}, 'seq': 36}
2024-06-10 08:43:15,334 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': 'rb test sucess finished.\n'}, 'seq': 37}
2024-06-10 08:43:15,334 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '[Thread 9316.0x1b44 exited with code 0]\n'}, 'seq': 38}
2024-06-10 08:43:15,334 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'thread', 'body': {'reason': 'exited', 'threadId': 2}, 'seq': 39}
2024-06-10 08:43:15,334 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '[Inferior 1 (process 9316) exited normally]\n'}, 'seq': 40}
2024-06-10 08:43:15,334 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'thread', 'body': {'reason': 'exited', 'threadId': 1}, 'seq': 41}
2024-06-10 08:43:15,334 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "The program 'D:\\work\\/rb.exe' has exited with code 0 (0x00000000).\r\n\r\n"}, 'seq': 42}
2024-06-10 08:43:15,334 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'exited', 'body': {'exitCode': 0}, 'seq': 43}
2024-06-10 08:43:15,356 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'terminated', 'body': {}, 'seq': 44}
2024-06-10 08:43:15,356 - DEBUG - debug_adapter_connection.py:266 - 0 - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'telemetry', 'output': 'VS/Diagnostics/Debugger/DebugCompleted', 'data': {'VS.Diagnostics.Debugger.ImplementationName': 'Microsoft.MIDebugEngine', 'VS.Diagnostics.Debugger.EngineVersion': '17.8.20302.1', 'VS.Diagnostics.Debugger.HostVersion': '17.8.20302.1', 'VS.Diagnostics.Debugger.AdapterId': 'cppdbg', 'VS.Diagnostics.Debugger.DebugCompleted.BreakCounter': 0}}, 'seq': 45}

Vim version

VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Jan  5 2024 23:07:59)
MS-Windows 64-bit console version
Included patches: 1-15
Compiled by appveyor@APPVEYOR-VM

Python version

Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

Neovim diagnostics

No response

Operating System

windows 10

Declaration

puremourning commented 3 months ago

Please provide complete steps to reproduce using the sample project.