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

No "pretty printing" of rust containers in v1.11.0 #1166

Open
prifio opened this issue Nov 1, 2024 · 7 comments
Open

No "pretty printing" of rust containers in v1.11.0 #1166

prifio opened this issue Nov 1, 2024 · 7 comments

Comments

@prifio
Copy link

prifio commented Nov 1, 2024

OS: Windows 11 23H2
VSCode version: 1.95.0
CodeLLDB version: 1.11.0
Compiler: rust 1.81.0-x86_64-pc-windows-msvc toolchain
Debuggee: PDB

There are not "pretty printing" of rust containers (in my example Vec and HashMap) in the "Debug > Variables" window, so I cannot see elements of containers. This feature works in the previous 1.10.0 version of CodeLLDB, but not in the actual 1.11.0.

Actual behavior (in v.1.11.0):
codelldb_bad_print

Expected behavior (is taken from v1.10.0):
codelldb_good_print

I ran the examples above using "Debug" button from "Run|Debug" CodeLens (which is in the editor above the first line "fn main() {"). But the problem remains when I use my custom "launch.json" config file.

Log output suspicious lines
...
INFO(Python) 11:36:19 lang_support.rust: Loading Rust formatters from C:\Users\tolya_ash\.rustup\toolchains\1.81.0-x86_64-pc-windows-msvc\lib/rustlib/etc
error: module importing failed: invalid pathname 'C:\Users\tolya_ash\.rustup\toolchains\1.81.0-x86_64-pc-windows-msvc\lib/rustlib/etc\lldb_lookup.py'
error: Error reading commands from file lldb_commands - file not found.
INFO(Python) 11:36:19 lang_support.rust: Loading Rust formatters from C:\Users\tolya_ash\.rustup\toolchains\1.81.0-x86_64-pc-windows-msvc\lib/rustlib/etc
error: module importing failed: invalid pathname 'C:\Users\tolya_ash\.rustup\toolchains\1.81.0-x86_64-pc-windows-msvc\lib/rustlib/etc\lldb_lookup.py'
error: Error reading commands from file lldb_commands - file not found.
...
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
...
Full log output
Initial debug configuration: {
  type: 'lldb',
  request: 'launch',
  name: 'run report_prj',
  cwd: '${workspaceFolder}',
  program: '${workspaceFolder}\\target\\debug\\report_prj.exe',
  env: {
    RUST_BACKTRACE: 'short',
    ADVISOR_2024_DIR: 'C:\\Program Files (x86)\\Intel\\oneAPI\\advisor\\2024.2',
    ALLUSERSPROFILE: 'C:\\ProgramData',
    APPDATA: 'C:\\Users\\tolya_ash\\AppData\\Roaming',
    CHROME_CRASHPAD_PIPE_NAME: '\\\\.\\pipe\\crashpad_21924_NMBLXCYTMGQODGZO',
    COMPUTERNAME: 'NEPTUNE',
    ComSpec: 'C:\\Windows\\system32\\cmd.exe',
    CommonProgramFiles: 'C:\\Program Files\\Common Files',
    'CommonProgramFiles(x86)': 'C:\\Program Files (x86)\\Common Files',
    CommonProgramW6432: 'C:\\Program Files\\Common Files',
    DriverData: 'C:\\Windows\\System32\\Drivers\\DriverData',
    ELECTRON_RUN_AS_NODE: '1',
    GNUPLOT_LIB: 'C:\\Program Files\\gnuplot\\demo;C:\\Program Files\\gnuplot\\demo\\games;C:\\Program Files\\gnuplot\\share',
    HOMEDRIVE: 'C:',
    HOMEPATH: '\\Users\\tolya_ash',
    LOCALAPPDATA: 'C:\\Users\\tolya_ash\\AppData\\Local',
    LOGONSERVER: '\\\\LIGHT',
    NUMBER_OF_PROCESSORS: '32',
    ORIGINAL_XDG_CURRENT_DESKTOP: 'undefined',
    OS: 'Windows_NT',
    OneDrive: 'C:\\Users\\tolya_ash\\OneDrive',
    PATHEXT: '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC',
    PROCESSOR_ARCHITECTURE: 'AMD64',
    PROCESSOR_IDENTIFIER: 'AMD64 Family 25 Model 97 Stepping 2, AuthenticAMD',
    PROCESSOR_LEVEL: '25',
    PROCESSOR_REVISION: '6102',
    PSModulePath: 'C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules',
    PUBLIC: 'C:\\Users\\Public',
    PYTHONPATH: 'C:\\condor\\lib\\python;C:\\condor\\bin',
    Path: 'C:\\Program Files\\Eclipse Adoptium\\jdk-21.0.5.11-hotspot\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\MiKTeX\\miktex\\bin\\x64\\;C:\\Program Files\\WinRAR;C:\\Program Files\\MATLAB\\R2023b\\runtime\\win64;C:\\Program Files\\MATLAB\\R2023b\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\tikzit;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\Git\\cmd;C:\\condor\\bin\\;C:\\Program Files\\gnuplot\\bin;C:\\Program Files\\doxygen\\bin;C:\\Program Files\\CMake\\bin;C:\\Program Files\\GitHub CLI\\;C:\\Users\\tolya_ash\\.cargo\\bin;C:\\Users\\tolya_ash\\AppData\\Local\\Microsoft\\WindowsApps;',
    ProgramData: 'C:\\ProgramData',
    ProgramFiles: 'C:\\Program Files',
    'ProgramFiles(x86)': 'C:\\Program Files (x86)',
    ProgramW6432: 'C:\\Program Files',
    SESSIONNAME: 'Console',
    SystemDrive: 'C:',
    SystemRoot: 'C:\\Windows',
    TEMP: 'C:\\Users\\TOLYA_~1\\AppData\\Local\\Temp',
    TMP: 'C:\\Users\\TOLYA_~1\\AppData\\Local\\Temp',
    USERDNSDOMAIN: 'CODING.LOCAL',
    USERDOMAIN: 'CODING',
    USERDOMAIN_ROAMINGPROFILE: 'CODING',
    USERNAME: 'tolya_ash',
    USERPROFILE: 'C:\\Users\\tolya_ash',
    VSCODE_CODE_CACHE_PATH: 'C:\\Users\\tolya_ash\\AppData\\Roaming\\Code\\CachedData\\912bb683695358a54ae0c670461738984cbb5b95',
    VSCODE_CRASH_REPORTER_PROCESS_TYPE: 'extensionHost',
    VSCODE_CWD: 'C:\\Users\\tolya_ash\\Desktop\\vscode',
    VSCODE_ESM_ENTRYPOINT: 'vs/workbench/api/node/extensionHostProcess',
    VSCODE_HANDLES_UNCAUGHT_ERRORS: 'true',
    VSCODE_IPC_HOOK: '\\\\.\\pipe\\9b720a67-1.95.0-main-sock',
    VSCODE_L10N_BUNDLE_LOCATION: '',
    VSCODE_NLS_CONFIG: '{"userLocale":"en-us","osLocale":"en-us","resolvedLanguage":"en","defaultMessagesFile":"C:\\\\Users\\\\tolya_ash\\\\Desktop\\\\vscode\\\\resources\\\\app\\\\out\\\\nls.messages.json","locale":"en-us","availableLanguages":{}}',
    VSCODE_PID: '21924',
    VTUNE_PROFILER_2024_DIR: 'C:\\Program Files (x86)\\Intel\\oneAPI\\vtune\\2024.2',
    windir: 'C:\\Windows',
    RUSTC_TOOLCHAIN: 'C:\\Users\\tolya_ash\\.rustup\\toolchains\\1.81.0-x86_64-pc-windows-msvc'
  },
  args: [],
  sourceMap: {},
  sourceLanguages: [ 'rust' ]
}
Resolved debug configuration: {
  type: 'lldb',
  request: 'launch',
  name: 'run report_prj',
  cwd: '${workspaceFolder}',
  program: '${workspaceFolder}\\target\\debug\\report_prj.exe',
  env: {
    RUST_BACKTRACE: 'short',
    ADVISOR_2024_DIR: 'C:\\Program Files (x86)\\Intel\\oneAPI\\advisor\\2024.2',
    ALLUSERSPROFILE: 'C:\\ProgramData',
    APPDATA: 'C:\\Users\\tolya_ash\\AppData\\Roaming',
    CHROME_CRASHPAD_PIPE_NAME: '\\\\.\\pipe\\crashpad_21924_NMBLXCYTMGQODGZO',
    COMPUTERNAME: 'NEPTUNE',
    ComSpec: 'C:\\Windows\\system32\\cmd.exe',
    CommonProgramFiles: 'C:\\Program Files\\Common Files',
    'CommonProgramFiles(x86)': 'C:\\Program Files (x86)\\Common Files',
    CommonProgramW6432: 'C:\\Program Files\\Common Files',
    DriverData: 'C:\\Windows\\System32\\Drivers\\DriverData',
    ELECTRON_RUN_AS_NODE: '1',
    GNUPLOT_LIB: 'C:\\Program Files\\gnuplot\\demo;C:\\Program Files\\gnuplot\\demo\\games;C:\\Program Files\\gnuplot\\share',
    HOMEDRIVE: 'C:',
    HOMEPATH: '\\Users\\tolya_ash',
    LOCALAPPDATA: 'C:\\Users\\tolya_ash\\AppData\\Local',
    LOGONSERVER: '\\\\LIGHT',
    NUMBER_OF_PROCESSORS: '32',
    ORIGINAL_XDG_CURRENT_DESKTOP: 'undefined',
    OS: 'Windows_NT',
    OneDrive: 'C:\\Users\\tolya_ash\\OneDrive',
    PATHEXT: '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC',
    PROCESSOR_ARCHITECTURE: 'AMD64',
    PROCESSOR_IDENTIFIER: 'AMD64 Family 25 Model 97 Stepping 2, AuthenticAMD',
    PROCESSOR_LEVEL: '25',
    PROCESSOR_REVISION: '6102',
    PSModulePath: 'C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules',
    PUBLIC: 'C:\\Users\\Public',
    PYTHONPATH: 'C:\\condor\\lib\\python;C:\\condor\\bin',
    Path: 'C:\\Program Files\\Eclipse Adoptium\\jdk-21.0.5.11-hotspot\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\MiKTeX\\miktex\\bin\\x64\\;C:\\Program Files\\WinRAR;C:\\Program Files\\MATLAB\\R2023b\\runtime\\win64;C:\\Program Files\\MATLAB\\R2023b\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\tikzit;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\Git\\cmd;C:\\condor\\bin\\;C:\\Program Files\\gnuplot\\bin;C:\\Program Files\\doxygen\\bin;C:\\Program Files\\CMake\\bin;C:\\Program Files\\GitHub CLI\\;C:\\Users\\tolya_ash\\.cargo\\bin;C:\\Users\\tolya_ash\\AppData\\Local\\Microsoft\\WindowsApps;',
    ProgramData: 'C:\\ProgramData',
    ProgramFiles: 'C:\\Program Files',
    'ProgramFiles(x86)': 'C:\\Program Files (x86)',
    ProgramW6432: 'C:\\Program Files',
    SESSIONNAME: 'Console',
    SystemDrive: 'C:',
    SystemRoot: 'C:\\Windows',
    TEMP: 'C:\\Users\\TOLYA_~1\\AppData\\Local\\Temp',
    TMP: 'C:\\Users\\TOLYA_~1\\AppData\\Local\\Temp',
    USERDNSDOMAIN: 'CODING.LOCAL',
    USERDOMAIN: 'CODING',
    USERDOMAIN_ROAMINGPROFILE: 'CODING',
    USERNAME: 'tolya_ash',
    USERPROFILE: 'C:\\Users\\tolya_ash',
    VSCODE_CODE_CACHE_PATH: 'C:\\Users\\tolya_ash\\AppData\\Roaming\\Code\\CachedData\\912bb683695358a54ae0c670461738984cbb5b95',
    VSCODE_CRASH_REPORTER_PROCESS_TYPE: 'extensionHost',
    VSCODE_CWD: 'C:\\Users\\tolya_ash\\Desktop\\vscode',
    VSCODE_ESM_ENTRYPOINT: 'vs/workbench/api/node/extensionHostProcess',
    VSCODE_HANDLES_UNCAUGHT_ERRORS: 'true',
    VSCODE_IPC_HOOK: '\\\\.\\pipe\\9b720a67-1.95.0-main-sock',
    VSCODE_L10N_BUNDLE_LOCATION: '',
    VSCODE_NLS_CONFIG: '{"userLocale":"en-us","osLocale":"en-us","resolvedLanguage":"en","defaultMessagesFile":"C:\\\\Users\\\\tolya_ash\\\\Desktop\\\\vscode\\\\resources\\\\app\\\\out\\\\nls.messages.json","locale":"en-us","availableLanguages":{}}',
    VSCODE_PID: '21924',
    VTUNE_PROFILER_2024_DIR: 'C:\\Program Files (x86)\\Intel\\oneAPI\\vtune\\2024.2',
    windir: 'C:\\Windows',
    RUSTC_TOOLCHAIN: 'C:\\Users\\tolya_ash\\.rustup\\toolchains\\1.81.0-x86_64-pc-windows-msvc'
  },
  args: [],
  sourceMap: {},
  sourceLanguages: [ 'rust', 'rust' ],
  expressions: 'native',
  relativePathBase: 'c:\\Users\\tolya_ash\\Desktop\\work\\report_prj',
  _adapterSettings: {
    displayFormat: 'auto',
    showDisassembly: 'auto',
    dereferencePointers: true,
    suppressMissingSourceFiles: true,
    evaluationTimeout: 5,
    consoleMode: 'evaluate',
    sourceLanguages: null,
    scriptConfig: {},
    terminalPromptClear: null,
    evaluateForHovers: true,
    commandCompletions: true,
    reproducer: false
  }
}
liblldb: c:\Users\tolya_ash\.vscode\extensions\vadimcn.vscode-lldb-1.11.0\lldb\bin\liblldb.dll
environment: {}
settings: {
  evaluateForHovers: true,
  commandCompletions: true,
  sourceLanguages: [ 'rust', 'rust' ]
}
[DEBUG codelldb] Connecting to 127.0.0.1:53163
[DEBUG codelldb] New debug session
[DEBUG codelldb::dap_codec] --> {"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"lldb","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true,"supportsArgsCanBeInterpretedByShell":true,"supportsMemoryEvent":true,"supportsStartDebuggingRequest":true,"supportsANSIStyling":true},"type":"request","seq":1}
[DEBUG codelldb::dap_codec] <-- {"seq":1,"type":"response","request_seq":1,"success":true,"command":"initialize","body":{"exceptionBreakpointFilters":[{"default":true,"filter":"rust_panic","label":"Rust: on panic","supportsCondition":true}],"supportTerminateDebuggee":true,"supportsCancelRequest":true,"supportsCompletionsRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsDataBreakpoints":true,"supportsDelayedStackTraceLoading":true,"supportsDisassembleRequest":true,"supportsEvaluateForHovers":true,"supportsExceptionFilterOptions":true,"supportsExceptionInfoRequest":true,"supportsFunctionBreakpoints":true,"supportsGotoTargetsRequest":true,"supportsHitConditionalBreakpoints":true,"supportsInstructionBreakpoints":true,"supportsLogPoints":true,"supportsReadMemoryRequest":true,"supportsSetVariable":true,"supportsSteppingGranularity":true,"supportsWriteMemoryRequest":true}}
[DEBUG codelldb::dap_codec] --> {"command":"launch","arguments":{"type":"lldb","request":"launch","name":"run report_prj","cwd":"C:\\Users\\tolya_ash\\Desktop\\work\\report_prj","program":"C:\\Users\\tolya_ash\\Desktop\\work\\report_prj\\target\\debug\\report_prj.exe","env":{"RUST_BACKTRACE":"short","ADVISOR_2024_DIR":"C:\\Program Files (x86)\\Intel\\oneAPI\\advisor\\2024.2","ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\tolya_ash\\AppData\\Roaming","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_21924_NMBLXCYTMGQODGZO","COMPUTERNAME":"NEPTUNE","ComSpec":"C:\\Windows\\system32\\cmd.exe","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","ELECTRON_RUN_AS_NODE":"1","GNUPLOT_LIB":"C:\\Program Files\\gnuplot\\demo;C:\\Program Files\\gnuplot\\demo\\games;C:\\Program Files\\gnuplot\\share","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\tolya_ash","LOCALAPPDATA":"C:\\Users\\tolya_ash\\AppData\\Local","LOGONSERVER":"\\\\LIGHT","NUMBER_OF_PROCESSORS":"32","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","OneDrive":"C:\\Users\\tolya_ash\\OneDrive","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"AMD64 Family 25 Model 97 Stepping 2, AuthenticAMD","PROCESSOR_LEVEL":"25","PROCESSOR_REVISION":"6102","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules","PUBLIC":"C:\\Users\\Public","PYTHONPATH":"C:\\condor\\lib\\python;C:\\condor\\bin","Path":"C:\\Program Files\\Eclipse Adoptium\\jdk-21.0.5.11-hotspot\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\MiKTeX\\miktex\\bin\\x64\\;C:\\Program Files\\WinRAR;C:\\Program Files\\MATLAB\\R2023b\\runtime\\win64;C:\\Program Files\\MATLAB\\R2023b\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\tikzit;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\Git\\cmd;C:\\condor\\bin\\;C:\\Program Files\\gnuplot\\bin;C:\\Program Files\\doxygen\\bin;C:\\Program Files\\CMake\\bin;C:\\Program Files\\GitHub CLI\\;C:\\Users\\tolya_ash\\.cargo\\bin;C:\\Users\\tolya_ash\\AppData\\Local\\Microsoft\\WindowsApps;","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","SESSIONNAME":"Console","SystemDrive":"C:","SystemRoot":"C:\\Windows","TEMP":"C:\\Users\\TOLYA_~1\\AppData\\Local\\Temp","TMP":"C:\\Users\\TOLYA_~1\\AppData\\Local\\Temp","USERDNSDOMAIN":"CODING.LOCAL","USERDOMAIN":"CODING","USERDOMAIN_ROAMINGPROFILE":"CODING","USERNAME":"tolya_ash","USERPROFILE":"C:\\Users\\tolya_ash","VSCODE_CODE_CACHE_PATH":"C:\\Users\\tolya_ash\\AppData\\Roaming\\Code\\CachedData\\912bb683695358a54ae0c670461738984cbb5b95","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"C:\\Users\\tolya_ash\\Desktop\\vscode","VSCODE_ESM_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\9b720a67-1.95.0-main-sock","VSCODE_L10N_BUNDLE_LOCATION":"","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en-us\",\"osLocale\":\"en-us\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"C:\\\\Users\\\\tolya_ash\\\\Desktop\\\\vscode\\\\resources\\\\app\\\\out\\\\nls.messages.json\",\"locale\":\"en-us\",\"availableLanguages\":{}}","VSCODE_PID":"21924","VTUNE_PROFILER_2024_DIR":"C:\\Program Files (x86)\\Intel\\oneAPI\\vtune\\2024.2","windir":"C:\\Windows","RUSTC_TOOLCHAIN":"C:\\Users\\tolya_ash\\.rustup\\toolchains\\1.81.0-x86_64-pc-windows-msvc"},"args":[],"sourceMap":{},"sourceLanguages":["rust","rust"],"expressions":"native","relativePathBase":"c:\\Users\\tolya_ash\\Desktop\\work\\report_prj","_adapterSettings":{"displayFormat":"auto","showDisassembly":"auto","dereferencePointers":true,"suppressMissingSourceFiles":true,"evaluationTimeout":5,"consoleMode":"evaluate","sourceLanguages":null,"scriptConfig":{},"terminalPromptClear":null,"evaluateForHovers":true,"commandCompletions":true,"reproducer":false},"__sessionId":"72e49de1-cbeb-49af-8f58-4d7b4c910f8a"},"type":"request","seq":2}
[DEBUG codelldb::dap_codec] <-- {"seq":2,"type":"event","event":"output","body":{"category":"console","output":"Console is in 'evaluation' mode, prefix commands with '/cmd ' or '`'.\n"}}
INFO(Python) 11:36:19 lang_support.rust: Loading Rust formatters from C:\Users\tolya_ash\.rustup\toolchains\1.81.0-x86_64-pc-windows-msvc\lib/rustlib/etc
error: module importing failed: invalid pathname 'C:\Users\tolya_ash\.rustup\toolchains\1.81.0-x86_64-pc-windows-msvc\lib/rustlib/etc\lldb_lookup.py'
error: Error reading commands from file lldb_commands - file not found.
INFO(Python) 11:36:19 lang_support.rust: Loading Rust formatters from C:\Users\tolya_ash\.rustup\toolchains\1.81.0-x86_64-pc-windows-msvc\lib/rustlib/etc
error: module importing failed: invalid pathname 'C:\Users\tolya_ash\.rustup\toolchains\1.81.0-x86_64-pc-windows-msvc\lib/rustlib/etc\lldb_lookup.py'
error: Error reading commands from file lldb_commands - file not found.
[DEBUG codelldb::dap_codec] <-- {"seq":3,"type":"event","event":"initialized"}
[DEBUG codelldb::dap_codec] <-- {"seq":4,"type":"request","command":"runInTerminal","arguments":{"args":["c:\\Users\\tolya_ash\\.vscode\\extensions\\vadimcn.vscode-lldb-1.11.0\\adapter\\codelldb.exe","terminal-agent","--connect=53165"],"cwd":"","kind":"integrated","title":"run report_prj"}}
[DEBUG codelldb::dap_codec] --> {"command":"setBreakpoints","arguments":{"source":{"name":"main.rs","path":"c:\\Users\\tolya_ash\\Desktop\\work\\report_prj\\src\\main.rs"},"lines":[5],"breakpoints":[{"line":5}],"sourceModified":false},"type":"request","seq":3}
[DEBUG codelldb::dap_codec] --> {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4}
[DEBUG codelldb::dap_codec] --> {"command":"setInstructionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":5}
[DEBUG codelldb::dap_codec] --> {"command":"setExceptionBreakpoints","arguments":{"filters":[],"filterOptions":[{"filterId":"rust_panic"}]},"type":"request","seq":6}
[DEBUG codelldb::dap_codec] --> {"command":"setDataBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":7}
[DEBUG codelldb::debug_session] Debug event: 000001D51D5FB7E0 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {bkpt: 1 type: breakpoint added}
[DEBUG codelldb::dap_codec] <-- {"seq":5,"type":"response","request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"line":5,"message":"Resolved locations: 0","verified":true}]}}
[DEBUG codelldb::dap_codec] <-- {"seq":6,"type":"response","request_seq":4,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]}}
[DEBUG codelldb::dap_codec] <-- {"seq":7,"type":"response","request_seq":5,"success":true,"command":"setInstructionBreakpoints","body":{"breakpoints":[]}}
[DEBUG codelldb::debug_session] Debug event: 000001D51D5FD2E0 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {bkpt: 2 type: breakpoint added}
[DEBUG codelldb::dap_codec] <-- {"seq":8,"type":"response","request_seq":6,"success":true,"command":"setExceptionBreakpoints"}
[DEBUG codelldb::dap_codec] <-- {"seq":9,"type":"response","request_seq":7,"success":true,"command":"setDataBreakpoints","body":{"breakpoints":[]}}
[DEBUG codelldb::dap_codec] --> {"command":"configurationDone","type":"request","seq":8}
[DEBUG codelldb::dap_codec] --> {"type":"response","seq":9,"command":"runInTerminal","request_seq":4,"success":true,"body":{"shellProcessId":31264}}
[DEBUG codelldb::dap_codec] <-- {"seq":10,"type":"event","event":"output","body":{"category":"console","output":"Launching: C:\\Users\\tolya_ash\\Desktop\\work\\report_prj\\target\\debug\\report_prj.exe\n"}}
[adapter\codelldb\src\terminal.rs:109:13] winapi::um::wincon::FreeConsole() = 1
[DEBUG codelldb::dap_codec] <-- {"seq":11,"type":"event","event":"output","body":{"category":"console","output":"Launched process 25200\n"}}
[DEBUG codelldb::dap_codec] <-- {"seq":12,"type":"response","request_seq":2,"success":true,"command":"launch"}
[DEBUG codelldb::dap_codec] <-- {"seq":13,"type":"response","request_seq":8,"success":true,"command":"configurationDone"}
[DEBUG codelldb::debug_session] Debug event: 000001D51D5FB7E0 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000002 (modules-loaded), data = {report_prj.exe}
[DEBUG codelldb::debug_session] Debug event: 000001D51D5FD2E0 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000004 (modules-unloaded), data = {report_prj.exe, report_prj.exe}
[DEBUG codelldb::dap_codec] <-- {"seq":14,"type":"event","event":"module","body":{"module":{"addressRange":"7FF7A7CA0000","id":"7FF7A7CA0000","name":"report_prj.exe","path":"C:\\Users\\tolya_ash\\Desktop\\work\\report_prj\\target\\debug\\report_prj.exe","symbolFilePath":"C:\\Users\\tolya_ash\\Desktop\\work\\report_prj\\target\\debug\\report_prj.exe","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51D5FBC60 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {bkpt: 1 type: locations removed}
[DEBUG codelldb::dap_codec] <-- {"seq":15,"type":"event","event":"module","body":{"module":{"id":"7FF7A7CA0000","name":""},"reason":"removed"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51B70D0A0 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {bkpt: 2 type: locations removed}
[DEBUG codelldb::dap_codec] <-- {"seq":16,"type":"event","event":"module","body":{"module":{"id":"7FF7A7CA0000","name":""},"reason":"removed"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43B5D0 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000002 (modules-loaded), data = {report_prj.exe}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43C1D0 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {bkpt: 1 type: locations resolved}
[DEBUG codelldb::dap_codec] <-- {"seq":17,"type":"event","event":"module","body":{"module":{"addressRange":"7FF7A7CA0000","id":"7FF7A7CA0000","name":"report_prj.exe","path":"C:\\Users\\tolya_ash\\Desktop\\work\\report_prj\\target\\debug\\report_prj.exe","symbolFilePath":"C:\\Users\\tolya_ash\\Desktop\\work\\report_prj\\target\\debug\\report_prj.exe","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43B750 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {bkpt: 2 type: locations resolved}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43B8D0 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000002 (modules-loaded), data = {report_prj.exe}
[DEBUG codelldb::dap_codec] <-- {"seq":18,"type":"event","event":"breakpoint","body":{"breakpoint":{"id":1,"line":5,"message":"Resolved locations: 1","verified":true},"reason":"changed"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43B150 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000002 (modules-loaded), data = {ntdll.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":19,"type":"event","event":"breakpoint","body":{"breakpoint":{"id":2,"message":"Resolved locations: 1","verified":true},"reason":"changed"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43CA10 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000002 (modules-loaded), data = {ntdll.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":20,"type":"event","event":"module","body":{"module":{"addressRange":"7FF7A7CA0000","id":"7FF7A7CA0000","name":"report_prj.exe","path":"C:\\Users\\tolya_ash\\Desktop\\work\\report_prj\\target\\debug\\report_prj.exe","symbolFilePath":"C:\\Users\\tolya_ash\\Desktop\\work\\report_prj\\target\\debug\\report_prj.exe","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43BC90 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000002 (modules-loaded), data = {kernel32.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":21,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFE6EB0000","id":"7FFFE6EB0000","name":"ntdll.dll","path":"C:\\Windows\\System32\\ntdll.dll","symbolFilePath":"C:\\Windows\\System32\\ntdll.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43B810 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000002 (modules-loaded), data = {kernel32.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":22,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFE6EB0000","id":"7FFFE6EB0000","name":"ntdll.dll","path":"C:\\Windows\\System32\\ntdll.dll","symbolFilePath":"C:\\Windows\\System32\\ntdll.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43B210 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000002 (modules-loaded), data = {KernelBase.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":23,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFE4F80000","id":"7FFFE4F80000","name":"kernel32.dll","path":"C:\\Windows\\System32\\kernel32.dll","symbolFilePath":"C:\\Windows\\System32\\kernel32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43C590 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000002 (modules-loaded), data = {KernelBase.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":24,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFE4F80000","id":"7FFFE4F80000","name":"kernel32.dll","path":"C:\\Windows\\System32\\kernel32.dll","symbolFilePath":"C:\\Windows\\System32\\kernel32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43BD50 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000002 (modules-loaded), data = {bcryptprimitives.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":25,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFE4630000","id":"7FFFE4630000","name":"KernelBase.dll","path":"C:\\Windows\\System32\\KernelBase.dll","symbolFilePath":"C:\\Windows\\System32\\KernelBase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43BE10 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000002 (modules-loaded), data = {bcryptprimitives.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":26,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFE4630000","id":"7FFFE4630000","name":"KernelBase.dll","path":"C:\\Windows\\System32\\KernelBase.dll","symbolFilePath":"C:\\Windows\\System32\\KernelBase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43BED0 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000002 (modules-loaded), data = {ucrtbase.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":27,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFE44F0000","id":"7FFFE44F0000","name":"bcryptprimitives.dll","path":"C:\\Windows\\System32\\bcryptprimitives.dll","symbolFilePath":"C:\\Windows\\System32\\bcryptprimitives.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43B2D0 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000002 (modules-loaded), data = {ucrtbase.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":28,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFE44F0000","id":"7FFFE44F0000","name":"bcryptprimitives.dll","path":"C:\\Windows\\System32\\bcryptprimitives.dll","symbolFilePath":"C:\\Windows\\System32\\bcryptprimitives.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43C110 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000002 (modules-loaded), data = {vcruntime140.dll}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43D010 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000002 (modules-loaded), data = {vcruntime140.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":29,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFE4A20000","id":"7FFFE4A20000","name":"ucrtbase.dll","path":"C:\\Windows\\System32\\ucrtbase.dll","symbolFilePath":"C:\\Windows\\System32\\ucrtbase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51C43B390 Event: broadcaster = 000001D51D3D14B8 (lldb.target), type = 0x00000002 (modules-loaded), data = {report_prj.exe}
[DEBUG codelldb::dap_codec] <-- {"seq":30,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFE4A20000","id":"7FFFE4A20000","name":"ucrtbase.dll","path":"C:\\Windows\\System32\\ucrtbase.dll","symbolFilePath":"C:\\Windows\\System32\\ucrtbase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::dap_codec] <-- {"seq":31,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFD3AA0000","id":"7FFFD3AA0000","name":"vcruntime140.dll","path":"C:\\Windows\\System32\\vcruntime140.dll","symbolFilePath":"C:\\Windows\\System32\\vcruntime140.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 000001D51C989220 Event: broadcaster = 000001D51D266BA8 (lldb.process), type = 0x00000001 (state-changed), data = { process = 000001D51D266B80 (pid = 25200), state = running}
[DEBUG codelldb::dap_codec] <-- {"seq":32,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFD3AA0000","id":"7FFFD3AA0000","name":"vcruntime140.dll","path":"C:\\Windows\\System32\\vcruntime140.dll","symbolFilePath":"C:\\Windows\\System32\\vcruntime140.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::dap_codec] <-- {"seq":33,"type":"event","event":"module","body":{"module":{"addressRange":"7FF7A7CA0000","id":"7FF7A7CA0000","name":"report_prj.exe","path":"C:\\Users\\tolya_ash\\Desktop\\work\\report_prj\\target\\debug\\report_prj.exe","symbolFilePath":"C:\\Users\\tolya_ash\\Desktop\\work\\report_prj\\target\\debug\\report_prj.exe","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::dap_codec] <-- {"seq":34,"type":"event","event":"continued","body":{"allThreadsContinued":true,"threadId":15760}}
[DEBUG codelldb::debug_session::breakpoints] Callback for breakpoint location 1.1: where = report_prj.exe`static void report_prj::main() + 161 at main.rs:5, address = 0x00007ff7a7ca10a1, resolved, hit count = 1 
    
[DEBUG codelldb::debug_session] Debug event: 000001D51C988720 Event: broadcaster = 000001D51D266BA8 (lldb.process), type = 0x00000001 (state-changed), data = { process = 000001D51D266B80 (pid = 25200), state = stopped}
[DEBUG codelldb::dap_codec] <-- {"seq":35,"type":"event","event":"stopped","body":{"allThreadsStopped":true,"reason":"breakpoint","threadId":33492}}
[DEBUG codelldb::dap_codec] --> {"command":"threads","type":"request","seq":10}
[DEBUG codelldb::dap_codec] <-- {"seq":36,"type":"response","request_seq":10,"success":true,"command":"threads","body":{"threads":[{"id":15760,"name":"3: tid=15760 \"\""},{"id":19476,"name":"2: tid=19476 \"\""},{"id":28484,"name":"4: tid=28484 \"\""},{"id":33492,"name":"1: tid=33492 \"main\""}]}}
[DEBUG codelldb::dap_codec] --> {"command":"threads","type":"request","seq":11}
[DEBUG codelldb::dap_codec] <-- {"seq":37,"type":"response","request_seq":11,"success":true,"command":"threads","body":{"threads":[{"id":15760,"name":"3: tid=15760 \"\""},{"id":19476,"name":"2: tid=19476 \"\""},{"id":28484,"name":"4: tid=28484 \"\""},{"id":33492,"name":"1: tid=33492 \"main\""}]}}
[DEBUG codelldb::dap_codec] --> {"command":"stackTrace","arguments":{"threadId":33492,"startFrame":0,"levels":1},"type":"request","seq":12}
[DEBUG codelldb::dap_codec] <-- {"seq":38,"type":"response","request_seq":12,"success":true,"command":"stackTrace","body":{"stackFrames":[{"column":0,"id":1001,"instructionPointerReference":"0x7FF7A7CA10A1","line":5,"name":"static void report_prj::main()","source":{"name":"main.rs","path":"C:\\Users\\tolya_ash\\Desktop\\work\\report_prj\\src\\main.rs"}}]}}
[DEBUG codelldb::dap_codec] --> {"command":"scopes","arguments":{"frameId":1001},"type":"request","seq":13}
[DEBUG codelldb::dap_codec] <-- {"seq":39,"type":"response","request_seq":13,"success":true,"command":"scopes","body":{"scopes":[{"expensive":false,"name":"Local","variablesReference":1002},{"expensive":false,"name":"Static","variablesReference":1003},{"expensive":false,"name":"Global","variablesReference":1004},{"expensive":false,"name":"Registers","variablesReference":1005}]}}
[DEBUG codelldb::dap_codec] --> {"command":"variables","arguments":{"variablesReference":1002},"type":"request","seq":14}
[DEBUG codelldb::dap_codec] --> {"command":"stackTrace","arguments":{"threadId":33492,"startFrame":1,"levels":19},"type":"request","seq":15}
[DEBUG codelldb::dap_codec] <-- {"seq":40,"type":"response","request_seq":14,"success":true,"command":"variables","body":{"variables":[{"evaluateName":"x","memoryReference":"0x262170F640","name":"x","presentationHint":{"attributes":["readOnly"]},"type":"alloc::vec::Vec<i32,alloc::alloc::Global>","value":"{len:3}","variablesReference":1008},{"evaluateName":"y","memoryReference":"0x262170F658","name":"y","presentationHint":{"attributes":["readOnly"]},"type":"std::collections::hash::map::HashMap<i32,i32,std::hash::random::RandomState>","value":"{...}","variablesReference":1009}]}}
[DEBUG codelldb::disassembly] report_prj.exe`void core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >( *) + 11 at function.rs:250
[DEBUG codelldb::disassembly] report_prj.exe`void std::sys::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >( *) + 14 at backtrace.rs:158
[DEBUG codelldb::disassembly] report_prj.exe`int std::rt::lang_start::closure$0<tuple$<> >(struct std::rt::lang_start::closure_env$0<tuple$<> > *) + 17 at rt.rs:162
[DEBUG codelldb::disassembly] report_prj.exe`void std::rt::lang_start_internal() + 121 at rt.rs:141
[DEBUG codelldb::disassembly] report_prj.exe`__int64 std::rt::lang_start<tuple$<> >( *, __int64, unsigned char * *, unsigned char) + 58 at rt.rs:161
[DEBUG codelldb::disassembly] report_prj.exe`main + 25
[DEBUG codelldb::disassembly] report_prj.exe`static int __scrt_common_main_seh() + 268 at exe_common.inl:288
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
[DEBUG codelldb::disassembly] kernel32.dll`BaseThreadInitThunk + 29
[DEBUG codelldb::disassembly] ntdll.dll`RtlUserThreadStart + 40
[DEBUG codelldb::dap_codec] <-- {"seq":41,"type":"response","request_seq":15,"success":true,"command":"stackTrace","body":{"stackFrames":[{"column":0,"id":1010,"instructionPointerReference":"0x7FF7A7CA3F5B","line":6,"name":"void core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >( *)","presentationHint":"subtle","source":{"name":"@core::ops::function::FnOnce::call_once","sourceReference":1000}},{"column":0,"id":1011,"instructionPointerReference":"0x7FF7A7CA116E","line":6,"name":"void std::sys::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >( *)","presentationHint":"subtle","source":{"name":"@std::sys::backtrace::__rust_begin_short_backtrace","sourceReference":1001}},{"column":0,"id":1012,"instructionPointerReference":"0x7FF7A7CA3161","line":7,"name":"int std::rt::lang_start::closure$0<tuple$<> >(struct std::rt::lang_start::closure_env$0<tuple$<> > *)","presentationHint":"subtle","source":{"name":"@std::rt::lang_start::{{closure}}","sourceReference":1002}},{"column":0,"id":1013,"instructionPointerReference":"0x7FF7A7CA9EE9","line":29,"name":"void std::rt::lang_start_internal()","presentationHint":"subtle","source":{"name":"@std::rt::lang_start_internal","sourceReference":1003}},{"column":0,"id":1014,"instructionPointerReference":"0x7FF7A7CA313A","line":16,"name":"__int64 std::rt::lang_start<tuple$<> >( *, __int64, unsigned char * *, unsigned char)","presentationHint":"subtle","source":{"name":"@std::rt::lang_start","sourceReference":1004}},{"column":0,"id":1015,"instructionPointerReference":"0x7FF7A7CA1159","line":9,"name":"main","presentationHint":"subtle","source":{"name":"@main","sourceReference":1005}},{"column":0,"id":1016,"instructionPointerReference":"0x7FF7A7CBE2F0","line":3,"name":"static int __scrt_common_main_seh()","presentationHint":"subtle","source":{"name":"@7ff7a7cbe2f0..7ff7a7cbe357","sourceReference":1006}},{"column":0,"id":1017,"instructionPointerReference":"0x7FFFE4F9257D","line":12,"name":"BaseThreadInitThunk","presentationHint":"subtle","source":{"name":"@BaseThreadInitThunk","sourceReference":1007}},{"column":0,"id":1018,"instructionPointerReference":"0x7FFFE6F0AF08","line":12,"name":"RtlUserThreadStart","presentationHint":"subtle","source":{"name":"@RtlUserThreadStart","sourceReference":1008}}]}}
@vadimcn
Copy link
Owner

vadimcn commented Nov 4, 2024

Codelldb no longer bundles formatters for Rust data types and instead loads the ones shipped with rustc. I suspect that you haven't installed the -gnu target for your toolchain, which includes the lldb formatters. If you install it, container formatters should be functional, though enums will be still broken :(

@prifio
Copy link
Author

prifio commented Nov 4, 2024

Rust support was reduced, missed it, my fault :(
As far I understand, the problem is that rust-msvc comes without lldb-formatters (is it true?), so v1.11.0 CodeLLDB cannot use them.

It implies that users of the -msvc toolchain have to use C/C++ extension for debugging to see pretty-printed rust structures (or switch toolchain or downgrade CodeLLDB). Two words about this problem in wiki page would be great. An error window with something like "'lldb_lookup.py' not found/pretty print for rust-msvc is not supported" would be awesome.

@vadimcn
Copy link
Owner

vadimcn commented Nov 7, 2024

Not quite so bleak: one can install LLDB formatters via rustup target add x86_64-pc-windows-gnu and still compile for the -msvc target.
But fair enough, in v1.11.1 I've added a message that will make this suggestion to Windows users when the formatters files cannot be found.

@kikijiki
Copy link

kikijiki commented Nov 10, 2024

I have x86_64-pc-windows-gnu but there is no lldb_lookup.py, just some natvis files. Am I missing something?
Edit: I had to do rustup toolchain install stable-x86_64-pc-windows-gnu to get that file.

@kikijiki
Copy link

I think there are some issues, at least for me.

  • Instruction mention rustup target add x86_64-pc-windows-gnu but it should be rustup toolchain install stable-x86_64-pc-windows-gnu.
  • The files are still not getting picked up:

image

  • Lastly, I tried copying those files under the msvc path, and while it stops the warning it breaks the actual debugger view (get a bunch of <error: invalid value object>).

@facefaceless
Copy link

I think there are some issues, at least for me.

  • Instruction mention rustup target add x86_64-pc-windows-gnu but it should be rustup toolchain install stable-x86_64-pc-windows-gnu.
  • The files are still not getting picked up:

image

  • Lastly, I tried copying those files under the msvc path, and while it stops the warning it breaks the actual debugger view (get a bunch of <error: invalid value object>).

It seems that you are using Windows. I have similar issues too. I solve it by switching to gnu toolchain and setting codelldb to pre-load a pretty-printer script.

  1. Switch to gnu by rustup default stable-x86_64-pc-windows-gnu. (reasons are here)
  2. Download the script from this project, place it somwhere.
  3. Add one setting
    "lldb.launch.preRunCommands": [ "command script import <path to rust_prettifier_for_lldb.py>" ]
    to .vscode/setting.json to instruct lldb to pre-load the script every time.

It works for debugging sessions started by keyboard F5 or by clicking on Debug text above unit test functions (thanks ra).

@kikijiki
Copy link

@facefaceless Thanks for the suggestion!
I could make it work, even though with Tauri I had to use some extra workarounds (they only support msvc it seems, tauri-apps/tauri#4794).

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

No branches or pull requests

4 participants