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

Rust now emits with a new PDB language identifier, breaking debugging on Windows #633

Closed
arlosi opened this issue Feb 5, 2022 · 19 comments

Comments

@arlosi
Copy link

arlosi commented Feb 5, 2022

Rust now has a dedicated language identifier in the PDB format, instead of emitting as Masm.
https://reviews.llvm.org/D115300

This broke CodeLLDB's ability to debug binaries produced by the latest Rust compiler on Windows:
rust-lang/rust#93624

I see that CodeLLDB is using a patched LLVM that detects Masm as potentially Rust code via this vadimcn/llvm-project@4aba5a4 commit. Can we update the patch to also detect Rust (0x15) as Rust code ?

Let me know if I can help.

@vadimcn
Copy link
Owner

vadimcn commented Feb 5, 2022

Thanks for letting me know!
I'm planning to get a new version out in the next few weeks. Since this is currently broken only on nightly, ISTM there's no particular urgency to this issue.

@genusistimelord
Copy link

yeah this has caused me issues already so I had to switch from nightly to stable just to test a software bug.... Anyways keep up the good work on the project!

@genusistimelord
Copy link

@vadimcn is there anyways you could start releasing a beta version with the fix for this on VC as I know VC added the ability to have multiple Versions of the same lib including Alpha and Beta's? As this has really affected a huge majority of my development now since most everything I use needs nightly features that have no replacement within stable for.

Or do you already have a fixed version I could build and manually install?

@RagibHasin
Copy link

@genusistimelord my development work is also affected by this, as I use nightly compiler by default. I reverted to nightly-2022-01-27 as that is the last nightly without the LLVM patches.

I also tried to build an LLVM with all the relevant patches baked in, but could not find any clear instruction on how to go forward with it and abandoned it as a lost cause.

If @vadimcn could kindly publish the instructions for updating CodeLLDB's fork of LLVM, other contributors would be able to fiddle with it, maybe?

@arlosi
Copy link
Author

arlosi commented Feb 17, 2022

The fix is now in the latest LLVM via this change: https://reviews.llvm.org/D119044

@arlosi arlosi changed the title Rust nightly now emits with a new PDB language identifier, breaking debugging Rust nightly now emits with a new PDB language identifier, breaking debugging on Windows Feb 28, 2022
@arlosi arlosi changed the title Rust nightly now emits with a new PDB language identifier, breaking debugging on Windows Rust now emits with a new PDB language identifier, breaking debugging on Windows Mar 2, 2022
@arlosi
Copy link
Author

arlosi commented Mar 2, 2022

This change ended up hitting Rust 1.59.0 (the current stable release), rather than 1.60.0 as intended.

@vadimcn is there anything we can do to help expedite a fix?

For those that are interested, here's what happened on the Rust side that caused it to hit stable one version early:

@vadimcn
Copy link
Owner

vadimcn commented Mar 5, 2022

Okay, I've a new build. Please test it!

@genusistimelord
Copy link

genusistimelord commented Mar 5, 2022

@vadimcn it works sometimes but not other times? it ran with a smaller source set but wont run for my server source.

Running `cargo build --bin=araiseal_server --package=araiseal_server --message-format=json`...
    Finished dev [unoptimized + debuginfo] target(s) in 0.22s
Raw artifacts:
{
  fileName: 'c:\\Sources\\Araiseal_Server\\target\\debug\\araiseal_server.exe',
  name: 'araiseal_server',
  kind: 'bin'
}
Filtered artifacts: 
{
  fileName: 'c:\\Sources\\Araiseal_Server\\target\\debug\\araiseal_server.exe',
  name: 'araiseal_server',
  kind: 'bin'
}
configuration: {
  type: 'lldb',
  request: 'launch',
  name: "Debug executable 'araiseal_server'",
  args: [],
  cwd: '${workspaceFolder}',
  __configurationTarget: 5,
  relativePathBase: 'c:\\Sources\\Araiseal_Server',
  program: 'c:\\Sources\\Araiseal_Server\\target\\debug\\araiseal_server.exe',
  sourceLanguages: [ 'rust' ]
}
liblldb: c:\Users\genusis\.vscode\extensions\vadimcn.vscode-lldb-1.7.0-dev.2203050755\lldb\bin\liblldb.dll
environment: {}
params: {
  evaluateForHovers: true,
  commandCompletions: true,
  sourceLanguages: [ 'rust' ]
}
[2022-03-06T03:07:36.142Z DEBUG codelldb] New debug session
INFO(Python) 22:07:36 formatters: Initializing
INFO(Python) 22:07:36 formatters.rust: Initializing
[2022-03-06T03:07:36.257Z 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-us","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true},"type":"request","seq":1}
[2022-03-06T03:07:36.257Z 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-03-06T03:07:36.274Z DEBUG codelldb::dap_codec] --> {"command":"launch","arguments":{"type":"lldb","request":"launch","name":"Debug executable 'araiseal_server'","args":[],"cwd":"C:\\Sources\\Araiseal_Server","__configurationTarget":5,"relativePathBase":"c:\\Sources\\Araiseal_Server","program":"c:\\Sources\\Araiseal_Server\\target\\debug\\araiseal_server.exe","sourceLanguages":["rust"],"_adapterSettings":{"displayFormat":"auto","showDisassembly":"auto","dereferencePointers":true,"suppressMissingSourceFiles":true,"evaluationTimeout":5,"consoleMode":"commands","sourceLanguages":null,"terminalPromptClear":null,"evaluateForHovers":true,"commandCompletions":true,"reproducer":false},"__sessionId":"3e033c15-b3ed-4f7a-a3bb-e7126297e173"},"type":"request","seq":2}
[2022-03-06T03:07:36.274Z 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-03-06T03:07:36.274Z DEBUG codelldb::dap_codec] <-- {"seq":3,"type":"event","event":"output","body":{"output":"Console is in 'commands' mode, prefix expressions with '?'.\n"}}
[2022-03-06T03:07:36.606Z DEBUG codelldb::dap_codec] <-- {"seq":4,"type":"event","event":"initialized"}
[2022-03-06T03:07:36.606Z DEBUG codelldb::debug_session] Debug event: 00000212593288C0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {araiseal_server.exe}
[2022-03-06T03:07:36.606Z DEBUG codelldb::dap_codec] <-- {"seq":5,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"araiseal_server.exe","path":"c:\\Sources\\Araiseal_Server\\target\\debug\\araiseal_server.exe","symbolFilePath":"c:\\Sources\\Araiseal_Server\\target\\debug\\araiseal_server.exe","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:36.607Z DEBUG codelldb::dap_codec] <-- {"seq":6,"type":"request","command":"runInTerminal","arguments":{"args":["c:\\Users\\genusis\\.vscode\\extensions\\vadimcn.vscode-lldb-1.7.0-dev.2203050755\\adapter\\codelldb.exe","terminal-agent","--connect=50772"],"cwd":"","kind":"integrated","title":"Debug executable 'araiseal_server'"}}
[2022-03-06T03:07:36.624Z DEBUG codelldb::dap_codec] --> {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":3}
[2022-03-06T03:07:36.624Z DEBUG codelldb::dap_codec] <-- {"seq":7,"type":"response","request_seq":3,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]}}
[2022-03-06T03:07:36.632Z DEBUG codelldb::dap_codec] --> {"command":"setDataBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4}
[2022-03-06T03:07:36.632Z DEBUG codelldb::dap_codec] <-- {"seq":8,"type":"response","request_seq":4,"success":true,"command":"setDataBreakpoints","body":{"breakpoints":[]}}
[2022-03-06T03:07:36.690Z DEBUG codelldb::dap_codec] --> {"command":"setExceptionBreakpoints","arguments":{"filters":["rust_panic"]},"type":"request","seq":5}
[2022-03-06T03:07:37.367Z DEBUG codelldb::debug_session] Debug event: 00000212582496C0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2022-03-06T03:07:37.367Z DEBUG codelldb::dap_codec] <-- {"seq":9,"type":"response","request_seq":5,"success":true,"command":"setExceptionBreakpoints"}
[2022-03-06T03:07:37.374Z DEBUG codelldb::dap_codec] --> {"command":"configurationDone","type":"request","seq":6}
[2022-03-06T03:07:37.374Z DEBUG codelldb::dap_codec] <-- {"seq":10,"type":"response","request_seq":6,"success":true,"command":"configurationDone"}
[2022-03-06T03:07:37.389Z DEBUG codelldb::dap_codec] --> {"command":"threads","type":"request","seq":7}
[2022-03-06T03:07:37.389Z DEBUG codelldb::dap_codec] <-- {"seq":11,"type":"response","request_seq":7,"success":true,"command":"threads","body":{"threads":[]}}
[2022-03-06T03:07:37.808Z DEBUG codelldb::dap_codec] --> {"type":"response","seq":8,"command":"runInTerminal","request_seq":6,"success":true,"body":{"shellProcessId":4196}}
[adapter\src\terminal.rs:104] FreeConsole() = 1
[2022-03-06T03:07:37.878Z DEBUG codelldb::dap_codec] <-- {"seq":12,"type":"event","event":"output","body":{"output":"Launching: c:\\Sources\\Araiseal_Server\\target\\debug\\araiseal_server.exe\n"}}
[adapter\src\terminal.rs:105] AttachConsole(pid) = 1
[adapter\src\terminal.rs:109] FreeConsole() = 1
[2022-03-06T03:07:38.126Z ERROR codelldb::debug_session] unknown error
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260183510 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":13,"type":"response","request_seq":2,"success":false,"command":"","message":"unknown error","show_user":true}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 00000212601826D0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {araiseal_server.exe}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 00000212601844D0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {ntdll.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260184610 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {ntdll.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260184390 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {kernel32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":14,"type":"event","event":"breakpoint","body":{"breakpoint":{"id":1,"message":"Resolved locations: 0","verified":false},"reason":"changed"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260183D50 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {kernel32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":15,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"araiseal_server.exe","path":"c:\\Sources\\Araiseal_Server\\target\\debug\\araiseal_server.exe","symbolFilePath":"c:\\Sources\\Araiseal_Server\\target\\debug\\araiseal_server.exe","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260183E90 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {KernelBase.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260183950 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {KernelBase.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":16,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF62D50000","id":"7FFF62D50000","name":"ntdll.dll","path":"C:\\Windows\\System32\\ntdll.dll","symbolFilePath":"C:\\Windows\\System32\\ntdll.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 00000212601847D0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {ws2_32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":17,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF62D50000","id":"7FFF62D50000","name":"ntdll.dll","path":"C:\\Windows\\System32\\ntdll.dll","symbolFilePath":"C:\\Windows\\System32\\ntdll.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260184810 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {ws2_32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":18,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF61370000","id":"7FFF61370000","name":"kernel32.dll","path":"C:\\Windows\\System32\\kernel32.dll","symbolFilePath":"C:\\Windows\\System32\\kernel32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260185510 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {rpcrt4.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":19,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF61370000","id":"7FFF61370000","name":"kernel32.dll","path":"C:\\Windows\\System32\\kernel32.dll","symbolFilePath":"C:\\Windows\\System32\\kernel32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260184B90 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {rpcrt4.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":20,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF60600000","id":"7FFF60600000","name":"KernelBase.dll","path":"C:\\Windows\\System32\\KernelBase.dll","symbolFilePath":"C:\\Windows\\System32\\KernelBase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260184A10 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {bcrypt.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":21,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF60600000","id":"7FFF60600000","name":"KernelBase.dll","path":"C:\\Windows\\System32\\KernelBase.dll","symbolFilePath":"C:\\Windows\\System32\\KernelBase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":22,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF61470000","id":"7FFF61470000","name":"ws2_32.dll","path":"C:\\Windows\\System32\\ws2_32.dll","symbolFilePath":"C:\\Windows\\System32\\ws2_32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260184B10 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {bcrypt.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":23,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF61470000","id":"7FFF61470000","name":"ws2_32.dll","path":"C:\\Windows\\System32\\ws2_32.dll","symbolFilePath":"C:\\Windows\\System32\\ws2_32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260184D10 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {libpq.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":24,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF61070000","id":"7FFF61070000","name":"rpcrt4.dll","path":"C:\\Windows\\System32\\rpcrt4.dll","symbolFilePath":"C:\\Windows\\System32\\rpcrt4.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":25,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF61070000","id":"7FFF61070000","name":"rpcrt4.dll","path":"C:\\Windows\\System32\\rpcrt4.dll","symbolFilePath":"C:\\Windows\\System32\\rpcrt4.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260184CD0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {libpq.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":26,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF5F5D0000","id":"7FFF5F5D0000","name":"bcrypt.dll","path":"C:\\Windows\\System32\\bcrypt.dll","symbolFilePath":"C:\\Windows\\System32\\bcrypt.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260185310 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {ucrtbase.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":27,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF5F5D0000","id":"7FFF5F5D0000","name":"bcrypt.dll","path":"C:\\Windows\\System32\\bcrypt.dll","symbolFilePath":"C:\\Windows\\System32\\bcrypt.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":28,"type":"event","event":"module","body":{"module":{"addressRange":"180000000","id":"180000000","name":"libpq.dll","path":"C:\\Sources\\Araiseal_Server\\libpq.dll","symbolFilePath":"C:\\Sources\\Araiseal_Server\\libpq.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260185E10 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {ucrtbase.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":29,"type":"event","event":"module","body":{"module":{"addressRange":"180000000","id":"180000000","name":"libpq.dll","path":"C:\\Sources\\Araiseal_Server\\libpq.dll","symbolFilePath":"C:\\Sources\\Araiseal_Server\\libpq.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260186190 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {vcruntime140.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":30,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF609A0000","id":"7FFF609A0000","name":"ucrtbase.dll","path":"C:\\Windows\\System32\\ucrtbase.dll","symbolFilePath":"C:\\Windows\\System32\\ucrtbase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":31,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF609A0000","id":"7FFF609A0000","name":"ucrtbase.dll","path":"C:\\Windows\\System32\\ucrtbase.dll","symbolFilePath":"C:\\Windows\\System32\\ucrtbase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260185E90 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {vcruntime140.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":32,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF52640000","id":"7FFF52640000","name":"vcruntime140.dll","path":"C:\\Windows\\System32\\vcruntime140.dll","symbolFilePath":"C:\\Windows\\System32\\vcruntime140.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260185DD0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {Wldap32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":33,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF52640000","id":"7FFF52640000","name":"vcruntime140.dll","path":"C:\\Windows\\System32\\vcruntime140.dll","symbolFilePath":"C:\\Windows\\System32\\vcruntime140.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 00000212601864D0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {Wldap32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":34,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF60DA0000","id":"7FFF60DA0000","name":"Wldap32.dll","path":"C:\\Windows\\System32\\Wldap32.dll","symbolFilePath":"C:\\Windows\\System32\\Wldap32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":35,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF60DA0000","id":"7FFF60DA0000","name":"Wldap32.dll","path":"C:\\Windows\\System32\\Wldap32.dll","symbolFilePath":"C:\\Windows\\System32\\Wldap32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 00000212601858D0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {advapi32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260185A10 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {advapi32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":36,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF60E00000","id":"7FFF60E00000","name":"advapi32.dll","path":"C:\\Windows\\System32\\advapi32.dll","symbolFilePath":"C:\\Windows\\System32\\advapi32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":37,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF60E00000","id":"7FFF60E00000","name":"advapi32.dll","path":"C:\\Windows\\System32\\advapi32.dll","symbolFilePath":"C:\\Windows\\System32\\advapi32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 00000212613D1300 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {libssl-1_1-x64.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 00000212613D1C00 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {libssl-1_1-x64.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":38,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF09CF0000","id":"7FFF09CF0000","name":"libssl-1_1-x64.dll","path":"C:\\Sources\\Araiseal_Server\\libssl-1_1-x64.dll","symbolFilePath":"C:\\Sources\\Araiseal_Server\\libssl-1_1-x64.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":39,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF09CF0000","id":"7FFF09CF0000","name":"libssl-1_1-x64.dll","path":"C:\\Sources\\Araiseal_Server\\libssl-1_1-x64.dll","symbolFilePath":"C:\\Sources\\Araiseal_Server\\libssl-1_1-x64.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 00000212613D1000 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {msvcrt.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 00000212613D0F00 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {msvcrt.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":40,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF62170000","id":"7FFF62170000","name":"msvcrt.dll","path":"C:\\Windows\\System32\\msvcrt.dll","symbolFilePath":"C:\\Windows\\System32\\msvcrt.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 00000212605546E0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {libcrypto-1_1-x64.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":41,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF62170000","id":"7FFF62170000","name":"msvcrt.dll","path":"C:\\Windows\\System32\\msvcrt.dll","symbolFilePath":"C:\\Windows\\System32\\msvcrt.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":42,"type":"event","event":"module","body":{"module":{"addressRange":"7FFED8790000","id":"7FFED8790000","name":"libcrypto-1_1-x64.dll","path":"C:\\Sources\\Araiseal_Server\\libcrypto-1_1-x64.dll","symbolFilePath":"C:\\Sources\\Araiseal_Server\\libcrypto-1_1-x64.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260554320 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {libcrypto-1_1-x64.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260554EA0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {sechost.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":43,"type":"event","event":"module","body":{"module":{"addressRange":"7FFED8790000","id":"7FFED8790000","name":"libcrypto-1_1-x64.dll","path":"C:\\Sources\\Araiseal_Server\\libcrypto-1_1-x64.dll","symbolFilePath":"C:\\Sources\\Araiseal_Server\\libcrypto-1_1-x64.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":44,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF61530000","id":"7FFF61530000","name":"sechost.dll","path":"C:\\Windows\\System32\\sechost.dll","symbolFilePath":"C:\\Windows\\System32\\sechost.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260554E20 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {sechost.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 00000212605546A0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {crypt32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":45,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF61530000","id":"7FFF61530000","name":"sechost.dll","path":"C:\\Windows\\System32\\sechost.dll","symbolFilePath":"C:\\Windows\\System32\\sechost.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":46,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF60230000","id":"7FFF60230000","name":"crypt32.dll","path":"C:\\Windows\\System32\\crypt32.dll","symbolFilePath":"C:\\Windows\\System32\\crypt32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260554C60 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {crypt32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260554C20 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {shell32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":47,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF60230000","id":"7FFF60230000","name":"crypt32.dll","path":"C:\\Windows\\System32\\crypt32.dll","symbolFilePath":"C:\\Windows\\System32\\crypt32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":48,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF61750000","id":"7FFF61750000","name":"shell32.dll","path":"C:\\Windows\\System32\\shell32.dll","symbolFilePath":"C:\\Windows\\System32\\shell32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260554660 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {shell32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260554760 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {user32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":49,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF61750000","id":"7FFF61750000","name":"shell32.dll","path":"C:\\Windows\\System32\\shell32.dll","symbolFilePath":"C:\\Windows\\System32\\shell32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260554A60 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {user32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":50,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF61FC0000","id":"7FFF61FC0000","name":"user32.dll","path":"C:\\Windows\\System32\\user32.dll","symbolFilePath":"C:\\Windows\\System32\\user32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260555EA0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {msvcp_win.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260555DE0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {msvcp_win.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":51,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF61FC0000","id":"7FFF61FC0000","name":"user32.dll","path":"C:\\Windows\\System32\\user32.dll","symbolFilePath":"C:\\Windows\\System32\\user32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260556060 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {win32u.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260555C20 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {win32u.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260555720 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {gdi32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":52,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF60190000","id":"7FFF60190000","name":"msvcp_win.dll","path":"C:\\Windows\\System32\\msvcp_win.dll","symbolFilePath":"C:\\Windows\\System32\\msvcp_win.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260555E20 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {gdi32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":53,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF60190000","id":"7FFF60190000","name":"msvcp_win.dll","path":"C:\\Windows\\System32\\msvcp_win.dll","symbolFilePath":"C:\\Windows\\System32\\msvcp_win.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260555CE0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {gdi32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":54,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF60B30000","id":"7FFF60B30000","name":"win32u.dll","path":"C:\\Windows\\System32\\win32u.dll","symbolFilePath":"C:\\Windows\\System32\\win32u.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 00000212605552E0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {gdi32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":55,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF60B30000","id":"7FFF60B30000","name":"win32u.dll","path":"C:\\Windows\\System32\\win32u.dll","symbolFilePath":"C:\\Windows\\System32\\win32u.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260555F60 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":56,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"gdi32.dll","path":"C:\\Windows\\System32\\gdi32.dll","symbolFilePath":"C:\\Windows\\System32\\gdi32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 00000212605551A0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000004 (modules-unloaded), data = {gdi32.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":57,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"gdi32.dll","path":"C:\\Windows\\System32\\gdi32.dll","symbolFilePath":"C:\\Windows\\System32\\gdi32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260555F20 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {gdi32full.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":58,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"gdi32.dll","path":"C:\\Windows\\System32\\gdi32.dll","symbolFilePath":"C:\\Windows\\System32\\gdi32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260555520 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000002 (modules-loaded), data = {gdi32full.dll}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":59,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"gdi32.dll","path":"C:\\Windows\\System32\\gdi32.dll","symbolFilePath":"C:\\Windows\\System32\\gdi32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 0000021260555560 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":60,"type":"event","event":"module","body":{"module":{"id":"FFFFFFFFFFFFFFFF","name":""},"reason":"removed"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::debug_session] Debug event: 00000212605555A0 Event: broadcaster = 0000021259213938 (lldb.target), type = 0x00000004 (modules-unloaded), data = {araiseal_server.exe}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":61,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF60460000","id":"7FFF60460000","name":"gdi32full.dll","path":"C:\\Windows\\System32\\gdi32full.dll","symbolFilePath":"C:\\Windows\\System32\\gdi32full.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":62,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF60460000","id":"7FFF60460000","name":"gdi32full.dll","path":"C:\\Windows\\System32\\gdi32full.dll","symbolFilePath":"C:\\Windows\\System32\\gdi32full.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2022-03-06T03:07:38.126Z DEBUG codelldb::dap_codec] <-- {"seq":63,"type":"event","event":"module","body":{"module":{"id":"FFFFFFFFFFFFFFFF","name":""},"reason":"removed"}}
[2022-03-06T03:07:38.138Z DEBUG codelldb::dap_codec] --> {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":9}
[2022-03-06T03:07:38.138Z DEBUG codelldb::dap_codec] <-- {"seq":64,"type":"response","request_seq":9,"success":true,"command":"disconnect"}
[2022-03-06T03:07:38.647Z DEBUG codelldb::dap_session] Client has disconnected
[2022-03-06T03:07:38.647Z DEBUG codelldb::debug_session] End of the requests stream
[2022-03-06T03:07:38.647Z DEBUG codelldb::debug_session] DebugSession::drop()
[2022-03-06T03:07:38.647Z DEBUG codelldb] End of debug session
[2022-03-06T03:07:38.660Z DEBUG codelldb] Exiting
Debug adapter exit code=0, signal=null.

Also i noticed a weird thing in the Variables list.

image

it looks like multiple of the same variable? Anyways if this is something unrelated i can make a new issue if it is a issue.

but debugging sometimes works in rust nightly and the newest stable with your changes.

image

@genusistimelord
Copy link

@vadimcn I tried it at my work on a different PC and it seems to have ran just fine now.. Weird other than that it is a issue i just need to figure out what the cause could be.

@arlosi
Copy link
Author

arlosi commented Mar 7, 2022

@vadimcn your dev build is working here. I tested with 1.59.0 and 1.58.1 on x86_64-pc-windows-msvc.

I also occasionally see duplicate variables in the locals list (though never as many as @genusistimelord). The duplicates appeared in both the v1.6.10 release and this dev build, so it seems to be a separate issue (at least for me).

Let me know you need help with more testing before getting this published. Thanks for this extension!

@genusistimelord
Copy link

we will test whatever needs to be tested for you @vadimcn just let us know.

@arlosi
Copy link
Author

arlosi commented Mar 10, 2022

@vadimcn do you have an estimate when you'd be comfortable pushing a new release to the VS marketplace?

@genusistimelord
Copy link

@vadimcn I figured out what the cause was on my Home PC. It was due to missing dll's for postgresql stuff. Would be nice if the debugger could have disclosed what dll's the exe is looking for on start up. Not sure if it is possible though.
Anyways it works fine at home now.

@vadimcn
Copy link
Owner

vadimcn commented Mar 13, 2022

Would be nice if the debugger could have disclosed what dll's the exe is looking for on start up.

Unfortunately, Windows does not provide this information in the process launch error. AFAIK, the best one can do is to enable loaded debug info ouput. However this is a global registry setting that requires admin privileges, so not something I'd like a debugger to do automatically.

@vadimcn
Copy link
Owner

vadimcn commented Mar 13, 2022

Fixed in v1.7.0

@vadimcn vadimcn closed this as completed Mar 13, 2022
@CdeM-LucBergeron
Copy link

I am encountering that same error with version 1.7.0 of CodeLLDB.
Here is my launch.json file :
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "(Windows) Launch", "type": "cppvsdbg", "request": "launch", "program": "${workspaceRoot}/target/debug/void_destiny.exe", "args": [], "stopAtEntry": false, "cwd": "${workspaceRoot}", "environment": [], "console": "externalTerminal" } ] }
When I debug my code I get this message in the terminal :
Breakpoint warning: No executable code of the debugger’s target code type is associated with this line. Possible causes include: conditional compilation, compiler optimizations, or the target architecture of this line is not supported by the current debugger code type.

I'm using

  • Vscode version 1.66.2
  • rust version 1.60.0
  • CodeLLDB version 1.7.0

@genusistimelord
Copy link

what rust compiler are you using on windows gcc or the windows msvc?

@CdeM-LucBergeron
Copy link

what rust compiler are you using on windows gcc or the windows msvc?

Here is what I have:
stable-x86_64-pc-windows-msvc - Up to date : 1.60.0 (7737e0b5c 2022-04-04) nightly-x86_64-pc-windows-msvc - Update available : 1.62.0-nightly (18f314e70 2022-04-24) -> 1.62.0-nightly (055bf4ccd 2022-04-25) rustup - Up to date : 1.24.3

@genusistimelord
Copy link

genusistimelord commented Apr 29, 2022

I have tested this myself with stable-x86_64-pc-windows-msvc - rustc 1.60.0 (7737e0b5c 2022-04-04)

image

Seems to work just fine for me. Maybe you need to run a cargo clean or something. @CdeM-LucBergeron

I basically went to the breakpoint then did a Step over.

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

5 participants