vadimcn / codelldb

A native debugger extension for VSCode based on LLDB
https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
MIT License
2.51k stars 245 forks source link

rust : cannot inspect Vec entries #741

Closed neyb closed 2 years ago

neyb commented 2 years ago

OS: archlinux x64 VSCode version: code OSS 1.69.2 CodeLLDB version: 1.7.0 Compiler: rustc Debuggee: simple binary

debugging a simple code, I cannot view vec entries : image

here is the code :

fn main() {
    let x = vec!["hello", "world"];
    println!("{}", x[..].join(" "));
}
logs ``` configuration: { type: 'lldb', request: 'launch', name: 'run testing', program: '${workspaceFolder}/target/debug/testing', args: [], cwd: '${workspaceFolder}', sourceMap: {}, sourceLanguages: [ 'rust' ], env: { RUST_BACKTRACE: 'short', ELECTRON_RUN_AS_NODE: '1', SHELL: '/bin/fish', SESSION_MANAGER: 'local/mercury:@/tmp/.ICE-unix/2122,unix/mercury:/tmp/.ICE-unix/2122', XDG_MENU_PREFIX: 'gnome-', SSH_AUTH_SOCK: '/run/user/1000/keyring/ssh', DESKTOP_SESSION: 'gnome', PWD: '/home/alban/dev/perso/tmp/testing', XDG_SESSION_DESKTOP: 'gnome', LOGNAME: 'alban', XDG_SESSION_TYPE: 'wayland', SYSTEMD_EXEC_PID: '2139', XAUTHORITY: '/run/user/1000/.mutter-Xwaylandauth.R9ENP1', GJS_DEBUG_TOPICS: 'JS ERROR;JS LOG', MOTD_SHOWN: 'pam', GDM_LANG: 'fr_FR.UTF-8', HOME: '/home/alban', USERNAME: 'alban', LANG: 'fr_FR.UTF-8', XDG_CURRENT_DESKTOP: 'GNOME', STARSHIP_SHELL: 'fish', WAYLAND_DISPLAY: 'wayland-0', INVOCATION_ID: 'bc78796c6df445d0a1eb76a1907adbd2', MANAGERPID: '2026', STARSHIP_SESSION_KEY: '3272919839144251', GJS_DEBUG_OUTPUT: 'stderr', GNOME_SETUP_DISPLAY: ':1', XDG_SESSION_CLASS: 'user', USER: 'alban', DISPLAY: ':0', SHLVL: '1', XDG_RUNTIME_DIR: '/run/user/1000', JOURNAL_STREAM: '8:16838', XDG_DATA_DIRS: '/home/alban/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/', PATH: '/home/alban/formation/formation-java-debutant/Exercises/jdk-17.0.3+7/bin:/home/alban/.jdks/temurin-17.0.3/bin:/home/alban/.jdks/temurin-17.0.3:/home/alban/.cargo/bin:/home/alban/bin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl', GDMSESSION: 'gnome', DBUS_SESSION_BUS_ADDRESS: 'unix:path=/run/user/1000/bus', MAIL: '/var/spool/mail/alban', GIO_LAUNCHED_DESKTOP_FILE_PID: '3388', GIO_LAUNCHED_DESKTOP_FILE: '/usr/share/applications/code-oss.desktop', VSCODE_CWD: '/home/alban/dev/perso/tmp/testing', APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL: 'true', VSCODE_CLI: '1', ELECTRON_NO_ATTACH_CONSOLE: '1', CHROME_DESKTOP: 'code-oss.desktop', ORIGINAL_XDG_CURRENT_DESKTOP: 'GNOME', GDK_BACKEND: 'x11', NO_AT_BRIDGE: '1', VSCODE_NLS_CONFIG: '{"locale":"fr","availableLanguages":{"*":"fr"},"_languagePackId":"eefaa11490da3b49c69ed678864e2a80.fr","_translationsConfigFile":"/home/alban/.config/Code - OSS/clp/eefaa11490da3b49c69ed678864e2a80.fr/tcf.json","_cacheRoot":"/home/alban/.config/Code - OSS/clp/eefaa11490da3b49c69ed678864e2a80.fr","_resolvedLanguagePackCoreLocation":"/home/alban/.config/Code - OSS/clp/eefaa11490da3b49c69ed678864e2a80.fr/3b889b090b5ad5793f524b5d1d39fda662b96a2a","_corruptedFile":"/home/alban/.config/Code - OSS/clp/eefaa11490da3b49c69ed678864e2a80.fr/corrupted.info","_languagePackSupport":true}', VSCODE_CODE_CACHE_PATH: '/home/alban/.config/Code - OSS/CachedData/3b889b090b5ad5793f524b5d1d39fda662b96a2a', VSCODE_IPC_HOOK: '/run/user/1000/vscode-351c0a82-1.69.2-main.sock', VSCODE_PID: '3420', COLORTERM: 'truecolor', LS_COLORS: 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:', VTE_VERSION: '6800', GNOME_TERMINAL_SCREEN: '/org/gnome/Terminal/screen/d66a141f_97de_43d3_95f9_49801dcd6bf4', TERM: 'xterm-256color', GNOME_TERMINAL_SERVICE: ':1.122', VSCODE_AMD_ENTRYPOINT: 'vs/workbench/api/node/extensionHostProcess', VSCODE_HANDLES_UNCAUGHT_ERRORS: 'true' }, relativePathBase: '/home/alban/dev/perso/tmp/testing' } liblldb: /home/alban/.vscode-oss/extensions/vadimcn.vscode-lldb-1.7.0/lldb/lib/liblldb.so environment: {} params: { evaluateForHovers: true, commandCompletions: true, sourceLanguages: [ 'rust' ] } [2022-07-25T17:21:59.464Z DEBUG codelldb] New debug session INFO(Python) 19:21:59 formatters: Initializing INFO(Python) 19:21:59 formatters.rust: Initializing [2022-07-25T17:21:59.555Z DEBUG codelldb::dap_codec] --> {"command":"initialize","arguments":{"clientID":"vscode","clientName":"Code - OSS","adapterID":"lldb","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"fr","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true},"type":"request","seq":1} [2022-07-25T17:21:59.555Z 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"}],"supportTerminateDebuggee":true,"supportsCancelRequest":true,"supportsCompletionsRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsDataBreakpoints":true,"supportsDelayedStackTraceLoading":true,"supportsEvaluateForHovers":true,"supportsFunctionBreakpoints":true,"supportsGotoTargetsRequest":true,"supportsHitConditionalBreakpoints":true,"supportsLogPoints":true,"supportsReadMemoryRequest":true,"supportsRestartFrame":true,"supportsSetVariable":true,"supportsWriteMemoryRequest":true}} [2022-07-25T17:21:59.571Z DEBUG codelldb::dap_codec] --> {"command":"launch","arguments":{"type":"lldb","request":"launch","name":"run testing","program":"/home/alban/dev/perso/tmp/testing/target/debug/testing","args":[],"cwd":"/home/alban/dev/perso/tmp/testing","sourceMap":{},"sourceLanguages":["rust"],"env":{"RUST_BACKTRACE":"short","ELECTRON_RUN_AS_NODE":"1","SHELL":"/bin/fish","SESSION_MANAGER":"local/mercury:@/tmp/.ICE-unix/2122,unix/mercury:/tmp/.ICE-unix/2122","XDG_MENU_PREFIX":"gnome-","SSH_AUTH_SOCK":"/run/user/1000/keyring/ssh","DESKTOP_SESSION":"gnome","PWD":"/home/alban/dev/perso/tmp/testing","XDG_SESSION_DESKTOP":"gnome","LOGNAME":"alban","XDG_SESSION_TYPE":"wayland","SYSTEMD_EXEC_PID":"2139","XAUTHORITY":"/run/user/1000/.mutter-Xwaylandauth.R9ENP1","GJS_DEBUG_TOPICS":"JS ERROR;JS LOG","MOTD_SHOWN":"pam","GDM_LANG":"fr_FR.UTF-8","HOME":"/home/alban","USERNAME":"alban","LANG":"fr_FR.UTF-8","XDG_CURRENT_DESKTOP":"GNOME","STARSHIP_SHELL":"fish","WAYLAND_DISPLAY":"wayland-0","INVOCATION_ID":"bc78796c6df445d0a1eb76a1907adbd2","MANAGERPID":"2026","STARSHIP_SESSION_KEY":"3272919839144251","GJS_DEBUG_OUTPUT":"stderr","GNOME_SETUP_DISPLAY":":1","XDG_SESSION_CLASS":"user","USER":"alban","DISPLAY":":0","SHLVL":"1","XDG_RUNTIME_DIR":"/run/user/1000","JOURNAL_STREAM":"8:16838","XDG_DATA_DIRS":"/home/alban/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/","PATH":"/home/alban/formation/formation-java-debutant/Exercises/jdk-17.0.3+7/bin:/home/alban/.jdks/temurin-17.0.3/bin:/home/alban/.jdks/temurin-17.0.3:/home/alban/.cargo/bin:/home/alban/bin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl","GDMSESSION":"gnome","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1000/bus","MAIL":"/var/spool/mail/alban","GIO_LAUNCHED_DESKTOP_FILE_PID":"3388","GIO_LAUNCHED_DESKTOP_FILE":"/usr/share/applications/code-oss.desktop","VSCODE_CWD":"/home/alban/dev/perso/tmp/testing","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"true","VSCODE_CLI":"1","ELECTRON_NO_ATTACH_CONSOLE":"1","CHROME_DESKTOP":"code-oss.desktop","ORIGINAL_XDG_CURRENT_DESKTOP":"GNOME","GDK_BACKEND":"x11","NO_AT_BRIDGE":"1","VSCODE_NLS_CONFIG":"{\"locale\":\"fr\",\"availableLanguages\":{\"*\":\"fr\"},\"_languagePackId\":\"eefaa11490da3b49c69ed678864e2a80.fr\",\"_translationsConfigFile\":\"/home/alban/.config/Code - OSS/clp/eefaa11490da3b49c69ed678864e2a80.fr/tcf.json\",\"_cacheRoot\":\"/home/alban/.config/Code - OSS/clp/eefaa11490da3b49c69ed678864e2a80.fr\",\"_resolvedLanguagePackCoreLocation\":\"/home/alban/.config/Code - OSS/clp/eefaa11490da3b49c69ed678864e2a80.fr/3b889b090b5ad5793f524b5d1d39fda662b96a2a\",\"_corruptedFile\":\"/home/alban/.config/Code - OSS/clp/eefaa11490da3b49c69ed678864e2a80.fr/corrupted.info\",\"_languagePackSupport\":true}","VSCODE_CODE_CACHE_PATH":"/home/alban/.config/Code - OSS/CachedData/3b889b090b5ad5793f524b5d1d39fda662b96a2a","VSCODE_IPC_HOOK":"/run/user/1000/vscode-351c0a82-1.69.2-main.sock","VSCODE_PID":"3420","COLORTERM":"truecolor","LS_COLORS":"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:","VTE_VERSION":"6800","GNOME_TERMINAL_SCREEN":"/org/gnome/Terminal/screen/d66a141f_97de_43d3_95f9_49801dcd6bf4","TERM":"xterm-256color","GNOME_TERMINAL_SERVICE":":1.122","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true"},"relativePathBase":"/home/alban/dev/perso/tmp/testing","_adapterSettings":{"displayFormat":"auto","showDisassembly":"auto","dereferencePointers":true,"suppressMissingSourceFiles":true,"evaluationTimeout":5,"consoleMode":"commands","sourceLanguages":null,"terminalPromptClear":null,"evaluateForHovers":true,"commandCompletions":true,"reproducer":false},"__sessionId":"fa834e27-8fd0-4621-884d-4d6c1f4c4eac"},"type":"request","seq":2} [2022-07-25T17:21:59.572Z DEBUG codelldb::dap_codec] <-- {"seq":2,"type":"event","event":"capabilities","body":{"capabilities":{"exceptionBreakpointFilters":[{"default":true,"filter":"rust_panic","label":"Rust: on panic"}],"supportTerminateDebuggee":true,"supportsCancelRequest":true,"supportsCompletionsRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsDataBreakpoints":true,"supportsDelayedStackTraceLoading":true,"supportsEvaluateForHovers":true,"supportsFunctionBreakpoints":true,"supportsGotoTargetsRequest":true,"supportsHitConditionalBreakpoints":true,"supportsLogPoints":true,"supportsReadMemoryRequest":true,"supportsRestartFrame":true,"supportsSetVariable":true,"supportsWriteMemoryRequest":true}}} [2022-07-25T17:21:59.572Z DEBUG codelldb::dap_codec] <-- {"seq":3,"type":"event","event":"output","body":{"output":"Console is in 'commands' mode, prefix expressions with '?'.\n"}} [2022-07-25T17:21:59.600Z DEBUG codelldb::dap_codec] <-- {"seq":4,"type":"event","event":"initialized"} [2022-07-25T17:21:59.600Z DEBUG codelldb::debug_session] Debug event: 0x5614e541a2d0 Event: broadcaster = 0x5614e4754c18 (lldb.target), type = 0x00000002 (modules-loaded), data = {testing} [2022-07-25T17:21:59.600Z DEBUG codelldb::dap_codec] <-- {"seq":5,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"testing","path":"/home/alban/dev/perso/tmp/testing/target/debug/testing","symbolFilePath":"/home/alban/dev/perso/tmp/testing/target/debug/testing","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-25T17:21:59.601Z DEBUG codelldb::dap_codec] <-- {"seq":6,"type":"request","command":"runInTerminal","arguments":{"args":["/home/alban/.vscode-oss/extensions/vadimcn.vscode-lldb-1.7.0/adapter/codelldb","terminal-agent","--connect=45979"],"cwd":"","kind":"integrated","title":"run testing"}} [2022-07-25T17:21:59.606Z DEBUG codelldb::dap_codec] --> {"command":"setBreakpoints","arguments":{"source":{"name":"main.rs","path":"/home/alban/dev/perso/tmp/testing/src/main.rs"},"lines":[3],"breakpoints":[{"line":3}],"sourceModified":false},"type":"request","seq":3} [2022-07-25T17:21:59.609Z DEBUG codelldb::debug_session] Debug event: 0x5614e55b6a90 Event: broadcaster = 0x5614e4754c18 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {} [2022-07-25T17:21:59.609Z DEBUG codelldb::dap_codec] <-- {"seq":7,"type":"response","request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"line":3,"message":"Resolved locations: 0","verified":true}]}} [2022-07-25T17:21:59.647Z DEBUG codelldb::dap_codec] --> {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4} [2022-07-25T17:21:59.648Z DEBUG codelldb::dap_codec] <-- {"seq":8,"type":"response","request_seq":4,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]}} [2022-07-25T17:21:59.649Z DEBUG codelldb::dap_codec] --> {"type":"response","seq":5,"command":"runInTerminal","request_seq":6,"success":true,"body":{"shellProcessId":4830}} [2022-07-25T17:21:59.692Z DEBUG codelldb::dap_codec] --> {"command":"setDataBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":6} [2022-07-25T17:21:59.692Z DEBUG codelldb::dap_codec] <-- {"seq":9,"type":"response","request_seq":6,"success":true,"command":"setDataBreakpoints","body":{"breakpoints":[]}} [2022-07-25T17:21:59.698Z DEBUG codelldb::dap_codec] --> {"command":"setExceptionBreakpoints","arguments":{"filters":["rust_panic"]},"type":"request","seq":7} [2022-07-25T17:21:59.700Z DEBUG codelldb::debug_session] Debug event: 0x5614e53da770 Event: broadcaster = 0x5614e4754c18 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {} [2022-07-25T17:21:59.700Z DEBUG codelldb::dap_codec] <-- {"seq":10,"type":"response","request_seq":7,"success":true,"command":"setExceptionBreakpoints"} [2022-07-25T17:21:59.703Z DEBUG codelldb::dap_codec] --> {"command":"configurationDone","type":"request","seq":8} [2022-07-25T17:21:59.703Z DEBUG codelldb::dap_codec] <-- {"seq":11,"type":"event","event":"output","body":{"output":"Launching: /home/alban/dev/perso/tmp/testing/target/debug/testing\n"}} [2022-07-25T17:21:59.711Z DEBUG codelldb::debug_session] Debug event: 0x5614e53edbb0 Event: broadcaster = 0x5614e4754c18 (lldb.target), type = 0x00000002 (modules-loaded), data = {ld-linux-x86-64.so.2} [2022-07-25T17:21:59.711Z DEBUG codelldb::dap_codec] <-- {"seq":12,"type":"event","event":"output","body":{"output":"Launched process 9491\n"}} [2022-07-25T17:21:59.712Z DEBUG codelldb::debug_session] Debug event: 0x5614e55f4480 Event: broadcaster = 0x5614e4754c18 (lldb.target), type = 0x00000002 (modules-loaded), data = {[vdso](0x00007ffff7fc4000)} [2022-07-25T17:21:59.712Z DEBUG codelldb::debug_session] Debug event: 0x5614e53eea80 Event: broadcaster = 0x5614e4754c18 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {} [2022-07-25T17:21:59.712Z DEBUG codelldb::debug_session] Debug event: 0x5614e55f4430 Event: broadcaster = 0x5614e4754c18 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {} [2022-07-25T17:21:59.712Z DEBUG codelldb::debug_session] Debug event: 0x5614e55e7390 Event: broadcaster = 0x5614e4754c18 (lldb.target), type = 0x00000002 (modules-loaded), data = {testing} [2022-07-25T17:21:59.712Z DEBUG codelldb::debug_session] Debug event: 0x5614e55dd040 Event: broadcaster = 0x5614e53ec3c8 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x5614e53ec390 (pid = 9491), state = running} [2022-07-25T17:21:59.712Z DEBUG codelldb::dap_codec] <-- {"seq":13,"type":"response","request_seq":2,"success":true,"command":"launch"} [2022-07-25T17:21:59.712Z DEBUG codelldb::dap_codec] <-- {"seq":14,"type":"response","request_seq":8,"success":true,"command":"configurationDone"} [2022-07-25T17:21:59.712Z DEBUG codelldb::dap_codec] <-- {"seq":15,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7FC6000","id":"7FFFF7FC6000","name":"ld-linux-x86-64.so.2","path":"/usr/lib/ld-linux-x86-64.so.2","symbolFilePath":"/usr/lib/ld-linux-x86-64.so.2","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-25T17:21:59.712Z DEBUG codelldb::dap_codec] <-- {"seq":16,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7FC4000","id":"7FFFF7FC4000","name":"[vdso]","path":"[vdso]","symbolStatus":"Symbols not found"},"reason":"new"}} [2022-07-25T17:21:59.712Z DEBUG codelldb::dap_codec] <-- {"seq":17,"type":"event","event":"breakpoint","body":{"breakpoint":{"id":1,"line":3,"message":"Resolved locations: 1","verified":true},"reason":"changed"}} [2022-07-25T17:21:59.712Z DEBUG codelldb::dap_codec] <-- {"seq":18,"type":"event","event":"breakpoint","body":{"breakpoint":{"id":2,"message":"Resolved locations: 1","verified":true},"reason":"changed"}} [2022-07-25T17:21:59.712Z DEBUG codelldb::dap_codec] <-- {"seq":19,"type":"event","event":"module","body":{"module":{"addressRange":"555555554000","id":"555555554000","name":"testing","path":"/home/alban/dev/perso/tmp/testing/target/debug/testing","symbolFilePath":"/home/alban/dev/perso/tmp/testing/target/debug/testing","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-25T17:21:59.712Z DEBUG codelldb::dap_codec] <-- {"seq":20,"type":"event","event":"continued","body":{"allThreadsContinued":true,"threadId":0}} [2022-07-25T17:21:59.713Z DEBUG codelldb::debug_session] Debug event: 0x7f654c019040 Event: broadcaster = 0x5614e4754c18 (lldb.target), type = 0x00000002 (modules-loaded), data = {ld-linux-x86-64.so.2} [2022-07-25T17:21:59.713Z DEBUG codelldb::debug_session] Debug event: 0x7f654c0089c0 Event: broadcaster = 0x5614e4754c18 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {} [2022-07-25T17:21:59.713Z DEBUG codelldb::dap_codec] <-- {"seq":21,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"ld-linux-x86-64.so.2","path":"/lib64/ld-linux-x86-64.so.2","symbolFilePath":"/lib64/ld-linux-x86-64.so.2","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-25T17:21:59.713Z DEBUG codelldb::debug_session] Debug event: 0x7f654c018980 Event: broadcaster = 0x5614e4754c18 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {} [2022-07-25T17:21:59.713Z DEBUG codelldb::debug_session] Debug event: 0x7f654c019cd0 Event: broadcaster = 0x5614e4754c18 (lldb.target), type = 0x00000004 (modules-unloaded), data = {ld-linux-x86-64.so.2} [2022-07-25T17:21:59.713Z DEBUG codelldb::debug_session] Debug event: 0x7f654c019d80 Event: broadcaster = 0x5614e4754c18 (lldb.target), type = 0x00000002 (modules-loaded), data = {[vdso](0x00007ffff7fc4000)} [2022-07-25T17:21:59.713Z DEBUG codelldb::dap_codec] <-- {"seq":22,"type":"event","event":"module","body":{"module":{"id":"FFFFFFFFFFFFFFFF","name":""},"reason":"removed"}} [2022-07-25T17:21:59.713Z DEBUG codelldb::dap_codec] <-- {"seq":23,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7FC4000","id":"7FFFF7FC4000","name":"[vdso]","path":"[vdso]","symbolStatus":"Symbols not found"},"reason":"new"}} [2022-07-25T17:21:59.718Z DEBUG codelldb::dap_codec] --> {"command":"threads","type":"request","seq":9} [2022-07-25T17:21:59.718Z DEBUG codelldb::dap_codec] <-- {"seq":24,"type":"response","request_seq":9,"success":true,"command":"threads","body":{"threads":[{"id":9491,"name":"1: tid=9491 \"testing\""}]}} [2022-07-25T17:21:59.720Z DEBUG codelldb::debug_session] Debug event: 0x7f654c0c7b00 Event: broadcaster = 0x5614e4754c18 (lldb.target), type = 0x00000002 (modules-loaded), data = {libgcc_s.so.1} [2022-07-25T17:21:59.720Z DEBUG codelldb::dap_codec] <-- {"seq":25,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7F81000","id":"7FFFF7F81000","name":"libgcc_s.so.1","path":"/usr/lib/libgcc_s.so.1","symbolFilePath":"/usr/lib/libgcc_s.so.1","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-25T17:21:59.724Z DEBUG codelldb::debug_session] Debug event: 0x7f654c0ca870 Event: broadcaster = 0x5614e4754c18 (lldb.target), type = 0x00000002 (modules-loaded), data = {libc.so.6} [2022-07-25T17:21:59.724Z DEBUG codelldb::debug_session] Debug event: 0x7f654c0ca930 Event: broadcaster = 0x5614e4754c18 (lldb.target), type = 0x00000002 (modules-loaded), data = {libgcc_s.so.1, libc.so.6} [2022-07-25T17:21:59.724Z DEBUG codelldb::dap_codec] <-- {"seq":26,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7D75000","id":"7FFFF7D75000","name":"libc.so.6","path":"/usr/lib/libc.so.6","symbolFilePath":"/usr/lib/libc.so.6","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-25T17:21:59.724Z DEBUG codelldb::dap_codec] <-- {"seq":27,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7F81000","id":"7FFFF7F81000","name":"libgcc_s.so.1","path":"/usr/lib/libgcc_s.so.1","symbolFilePath":"/usr/lib/libgcc_s.so.1","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-25T17:21:59.724Z DEBUG codelldb::dap_codec] <-- {"seq":28,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7D75000","id":"7FFFF7D75000","name":"libc.so.6","path":"/usr/lib/libc.so.6","symbolFilePath":"/usr/lib/libc.so.6","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-25T17:21:59.725Z DEBUG codelldb::debug_session::breakpoints] Callback for breakpoint location 1.1: where = testing`main + 87 at main.rs:3:20, address = 0x0000555555561027, resolved, hit count = 1 [2022-07-25T17:21:59.725Z DEBUG codelldb::debug_session] Debug event: 0x7f654c028de0 Event: broadcaster = 0x5614e53ec3c8 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x5614e53ec390 (pid = 9491), state = stopped} [2022-07-25T17:21:59.725Z DEBUG codelldb::dap_codec] <-- {"seq":29,"type":"event","event":"stopped","body":{"allThreadsStopped":true,"reason":"breakpoint","threadId":9491}} [2022-07-25T17:21:59.731Z DEBUG codelldb::dap_codec] --> {"command":"threads","type":"request","seq":10} [2022-07-25T17:21:59.731Z DEBUG codelldb::dap_codec] <-- {"seq":30,"type":"response","request_seq":10,"success":true,"command":"threads","body":{"threads":[{"id":9491,"name":"1: tid=9491 \"testing\""}]}} [2022-07-25T17:21:59.734Z DEBUG codelldb::dap_codec] --> {"command":"stackTrace","arguments":{"threadId":9491,"startFrame":0,"levels":1},"type":"request","seq":11} [2022-07-25T17:21:59.735Z DEBUG codelldb::dap_codec] <-- {"seq":31,"type":"response","request_seq":11,"success":true,"command":"stackTrace","body":{"stackFrames":[{"column":20,"id":1001,"line":3,"name":"main","source":{"name":"main.rs","path":"/home/alban/dev/perso/tmp/testing/src/main.rs"}}],"totalFrames":18}} [2022-07-25T17:22:00.148Z DEBUG codelldb::dap_codec] --> {"command":"scopes","arguments":{"frameId":1001},"type":"request","seq":12} [2022-07-25T17:22:00.149Z DEBUG codelldb::dap_codec] <-- {"seq":32,"type":"response","request_seq":12,"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}]}} [2022-07-25T17:22:00.155Z DEBUG codelldb::dap_codec] --> {"command":"variables","arguments":{"variablesReference":1002},"type":"request","seq":13} [2022-07-25T17:22:00.161Z DEBUG codelldb::dap_codec] <-- {"seq":33,"type":"response","request_seq":13,"success":true,"command":"variables","body":{"variables":[{"evaluateName":"x","memoryReference":"0x7FFFFFFFD688","name":"x","type":"alloc::vec::Vec<&str, alloc::alloc::Global>","value":"(2) vec![{...}, {...}]","variablesReference":1006}]}} [2022-07-25T17:22:00.167Z DEBUG codelldb::dap_codec] --> {"command":"stackTrace","arguments":{"threadId":9491,"startFrame":1,"levels":19},"type":"request","seq":14} [2022-07-25T17:22:00.167Z DEBUG codelldb::disassembly] testing`call_once + 11 at function.rs:248:5 [2022-07-25T17:22:00.168Z DEBUG codelldb::disassembly] testing`__rust_begin_short_backtrace + 14 at backtrace.rs:125:5 [2022-07-25T17:22:00.168Z DEBUG codelldb::disassembly] testing`{closure#0}<()> + 17 at rt.rs:145:18 [2022-07-25T17:22:00.168Z DEBUG codelldb::disassembly] testing`lang_start_internal + 782 [inlined] core::result::Result$LT$T$C$E$GT$::unwrap_or::h9f3cc79442cc6540 at result.rs:1439:22 testing`lang_start_internal + 782 [inlined] std::rt::lang_start_internal::_$u7b$$u7b$closure$u7d$$u7d$::h63502d2988634103 + 7 at rt.rs:128:48 testing`lang_start_internal + 775 [inlined] std::panicking::try::do_call::h4be475cff12d2aae at panicking.rs:492:40 testing`lang_start_internal + 775 [inlined] std::panicking::try::h1a3b25b8eaf9ba31 at panicking.rs:456:19 testing`lang_start_internal + 775 [inlined] std::panic::catch_unwind::h224588ada67b9b0b at panic.rs:137:14 testing`lang_start_internal + 775 at rt.rs:128:20 [2022-07-25T17:22:00.170Z DEBUG codelldb::disassembly] testing`lang_start<()> + 48 at rt.rs:144:17 [2022-07-25T17:22:00.170Z DEBUG codelldb::disassembly] testing`main + 28 [2022-07-25T17:22:00.170Z DEBUG codelldb::disassembly] libc.so.6`___lldb_unnamed_symbol3123 + 128 [2022-07-25T17:22:00.171Z DEBUG codelldb::disassembly] libc.so.6`__libc_start_main + 138 [2022-07-25T17:22:00.171Z DEBUG codelldb::disassembly] testing`_start + 37 [2022-07-25T17:22:00.171Z DEBUG codelldb::dap_codec] <-- {"seq":34,"type":"response","request_seq":14,"success":true,"command":"stackTrace","body":{"stackFrames":[{"column":0,"id":1007,"line":6,"name":"call_once","presentationHint":"subtle","source":{"name":"@core::ops::function::FnOnce::call_once::h8367dbb3537ae650","sourceReference":1000}},{"column":0,"id":1008,"line":6,"name":"__rust_begin_short_backtrace","presentationHint":"subtle","source":{"name":"@std::sys_common::backtrace::__rust_begin_short_backtrace::h7838b18c345aa51b","sourceReference":1001}},{"column":0,"id":1009,"line":7,"name":"{closure#0}<()>","presentationHint":"subtle","source":{"name":"@std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::hc1f261e33bef8980","sourceReference":1002}},{"column":0,"id":1010,"line":172,"name":"core::ops::function::impls::_$LT$impl$u20$core..ops..function..FnOnce$LT$A$GT$$u20$for$u20$$RF$F$GT$::call_once::h5f1ba3b861cac230","presentationHint":"subtle","source":{"name":"@std::rt::lang_start_internal::h2807b375c1959759","sourceReference":1003}},{"column":0,"id":1011,"line":170,"name":"std::panicking::try::do_call::h4febfdb770eca39d","presentationHint":"subtle","source":{"name":"@std::rt::lang_start_internal::h2807b375c1959759","sourceReference":1003}},{"column":0,"id":1012,"line":170,"name":"std::panicking::try::h8b0eac8a7d726dbf","presentationHint":"subtle","source":{"name":"@std::rt::lang_start_internal::h2807b375c1959759","sourceReference":1003}},{"column":0,"id":1013,"line":170,"name":"std::panic::catch_unwind::h11b83c489c0d8394","presentationHint":"subtle","source":{"name":"@std::rt::lang_start_internal::h2807b375c1959759","sourceReference":1003}},{"column":0,"id":1014,"line":170,"name":"std::rt::lang_start_internal::_$u7b$$u7b$closure$u7d$$u7d$::h63502d2988634103","presentationHint":"subtle","source":{"name":"@std::rt::lang_start_internal::h2807b375c1959759","sourceReference":1003}},{"column":0,"id":1015,"line":170,"name":"std::panicking::try::do_call::h4be475cff12d2aae","presentationHint":"subtle","source":{"name":"@std::rt::lang_start_internal::h2807b375c1959759","sourceReference":1003}},{"column":0,"id":1016,"line":170,"name":"std::panicking::try::h1a3b25b8eaf9ba31","presentationHint":"subtle","source":{"name":"@std::rt::lang_start_internal::h2807b375c1959759","sourceReference":1003}},{"column":0,"id":1017,"line":170,"name":"std::panic::catch_unwind::h224588ada67b9b0b","presentationHint":"subtle","source":{"name":"@std::rt::lang_start_internal::h2807b375c1959759","sourceReference":1003}},{"column":0,"id":1018,"line":170,"name":"lang_start_internal","presentationHint":"subtle","source":{"name":"@std::rt::lang_start_internal::h2807b375c1959759","sourceReference":1003}},{"column":0,"id":1019,"line":13,"name":"lang_start<()>","presentationHint":"subtle","source":{"name":"@std::rt::lang_start::h1b31ddbf1d8717e7","sourceReference":1004}},{"column":0,"id":1020,"line":10,"name":"main","presentationHint":"subtle","source":{"name":"@main","sourceReference":1005}},{"column":0,"id":1021,"line":29,"name":"___lldb_unnamed_symbol3123","presentationHint":"subtle","source":{"name":"@___lldb_unnamed_symbol3123","sourceReference":1006}},{"column":0,"id":1022,"line":44,"name":"__libc_start_main","presentationHint":"subtle","source":{"name":"@__libc_start_main","sourceReference":1007}},{"column":0,"id":1023,"line":15,"name":"_start","presentationHint":"subtle","source":{"name":"@_start","sourceReference":1008}}],"totalFrames":18}} [2022-07-25T17:22:04.671Z DEBUG codelldb::dap_codec] --> {"command":"variables","arguments":{"variablesReference":1006},"type":"request","seq":15} [2022-07-25T17:22:04.672Z DEBUG codelldb::dap_codec] <-- {"seq":35,"type":"response","request_seq":15,"success":true,"command":"variables","body":{"variables":[{"name":"","value":"","variablesReference":0},{"name":"","value":"","variablesReference":0},{"name":"[raw]","value":"alloc::vec::Vec<&str, alloc::alloc::Global>","variablesReference":1024}]}} ```
vadimcn commented 2 years ago

Could be a dupe of #726. What version of rust compiler? Does upgrading to codelldb v1.7.3 fix it?

neyb commented 2 years ago

updating extensions to 1.7.3 worked... for a reaon I ignore, I needed to uninstall /reinstall to update extension. sorry for the time lost & thank you !