-
Notifications
You must be signed in to change notification settings - Fork 261
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
Doesn't work in MacOS Sonoma. #999
Comments
I hope the following link will be helpful to you. |
thanks mate! it is working... |
Have the same problem. Recently installed macOS Sonoma on my Intel MBP and every debug session returns #456 (reply in thread) solves it for me too. Workable for now, though I hope a future release will solve this properly. :) If I can help with logs or anything, let me know. |
Hi — after struggling with this for a day, I came here to file an issue and stumbled across this. (Didn't appear in my searches before). Just upgraded an Intel iMac Pro to Sonoma and could not get CodeLLDB to work. Deleting |
I don't own a Mac currently, so I can't investigate what's going on there, sorry. |
I'd suggest that's probably a good idea. I think there are other tools around that require people to install xcode command line tools, and the added hassle of that is probably worth avoiding this confusing situation. Or maybe just a prominent note in the installation instructions could help? |
Don't think that's such a weird requirement, tbh. Where are you getting the debugserver? Maybe it's just a question of bundling the latest? |
One of my goals was to make CodeLLDB self-sufficient, so that you wouldn't need to install anything besides the VSCode extension. I must admit, this turned out to be harder to achieve than I had expected 😒
The debugserver comes from xcode 10 command line tools, IIRC. The reason for using an old version being that newer versions didn't work on older MacOS'es, however this one seemed to be universally compatible. |
Yeah, that would definitely be the most convenient. And CodeLLDB has been super convenient, so thank you for your hard work. 👍
I guess it worked up til now. Apparently there is no version of the debugserver that works on all version from 10 up to Sonoma :/ Even it hadn't broken now, I guess we can never have the guarantee 10's debugserver will continue working on all future versions of macOS. The only way out I see is: either you bundle the new debugserver too and somehow pick the right one one at install/runtime, or people have to install it themselves. 🤔 Imho the second option is less convenient, but it does make every version of CodeLLDB future compatible, because future users can just upgrade the debugserver themselves. |
Suggestion: use the debug server from Xcode/CLT if it is there, else fall back to the bundled one? |
Is there any way forward with this issue? Just ran into on the C++ codebase at my work and I'm certain a lot more people will now that Sonoma is getting more traction. |
Here's a new build that includes a more recent debugserver: v1.10.1-dev.2312052337 Can people please try it out? I can't test it myself, as I don't have the hardware. And so far I was not able to install Sonoma in a VM (does anybody have a link to working instructions, or better yet, a ready-made QEMU image?). |
I'm on Ventura but using Xcode 15.0.1 and have the same problem, and the |
Nope, didn't resolve it, @vadimcn :/ Don't know how to help you with Sonoma, but I'm happy to offer testing builds on my intel MBP if you've got more. |
@vadimcn I'm more than happy to test out CodeLLDB on macOS (regularly), and contribute solutions. Having some trouble building locally just now. If you're not sure about the problem in that discussion, I can spend some time to work it out/fix it. |
Hello there, thanks @vadimcn for your hard work. Incidentally I just cannot imagine a use case where one would like to debug a process but would not have macOS' Command line tools installed TBH. |
I'm on an M1 Sonoma 14.4.1 (23E224), none of the suggested workarounds fix this problem for me. I've updated to the latest version of Sonoma, removed and reinstalled all my extensions, and removed the bundled debugserver, still getting the same error. Just running lldb from the commandline seems to work fine.
I can sort of get it to work with the following steps.
However, if I try with the CodeLens debug button, even with the launch.json generated above I still get the "MIDebuggerPath" error. This method produces these results whether or not I have removed Note prior to Sonoma, I did not need to create any launch.json for debugging with CodeLens to work. Edited to add the generated launch.json:
|
Same problem here, I just update my mac |
This started working for me without any direct intervention on my part. I believe a VS Code or Rust Analyzer update resolved the issue. Unfortunately, I did not note the VS Code version in my previous report. I'm currently on VS Code Version: 1.89.0 Still on the same version of MacOS as noted above. |
I have encountered this issue on macOS Ventura 13.1 while attempting to debug a hobby kernel inside of Qemu. Deleting the |
Initial debug configuration: {
type: 'lldb',
request: 'launch',
name: 'Debug',
program: '${workspaceFolder}/build/Musavir',
args: [],
cwd: '${workspaceFolder}/../bin',
__configurationTarget: 6
}
Resolved debug configuration: {
type: 'lldb',
request: 'launch',
name: 'Debug',
program: '${workspaceFolder}/build/Musavir',
args: [],
cwd: '${workspaceFolder}/../bin',
__configurationTarget: 6,
relativePathBase: '/Users/x64/VSCodeProjects/Musavir',
_adapterSettings: {
displayFormat: 'auto',
showDisassembly: 'auto',
dereferencePointers: true,
suppressMissingSourceFiles: true,
evaluationTimeout: 5,
consoleMode: 'commands',
sourceLanguages: null,
terminalPromptClear: null,
evaluateForHovers: true,
commandCompletions: true,
reproducer: false
}
}
Debug adapter exit code=0 (0x0), signal=null.
The text was updated successfully, but these errors were encountered: