You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GDB / LLDB version: system lldb is lldb-1600.0.39.109
Bug Summary and Steps to Reproduce
Bug Summary:
NOTE: This is not a new problem, but it seems to get worse with each new macOS version :/
When debugging a Cocoa application in VSCode with the C/C++ extension, it takes 10 seconds or so in each debug session until the applicationDidFinishLaunching callback is reached. Most of that time is spent between [NSApp run] and applicationDidFinishLaunching. This long wait time is the same between the first and followup debug sessions.
In Xcode, only the first debug session after starting Xcode shows a similar slow behaviour, while the following debug sessions start much faster (not quite instantly, but fast enough to not be an issue).
It would be good to at least investigate why there is this difference between VScode and XCode.
Steps to reproduce:
In Xcode, create the 'Game' builtin project, build and do some debugging. Note how everything is reasonably fast, especially in the followup debug sessions.
Create a launch.json in VSCode pointing to the same executable (which is a bit tricky to find: in Xcode Product => Show Build Folder in Finder to find the executable.
Debug the same executable in VSCode and note how very long it takes until window appears
...in VSCode, there's a metric shitton of log output on the debug console during that waiting time, all about loading symbols from system frameworks like this:
...maybe this symbol loading is the main reason for the long waiting time, and this is somehow cached in XCode?
Personally I'm not interested in those symbols anyway, maybe there's an LLDB setting for this system framework symbol loading to be skipped, or delayed until they are actually needed?
Debug output log is too long attach, but it's about 1000 lines of lines like this:Loaded '/System/Library/PrivateFrameworks/LinkServices.framework/Versions/A/LinkServices'. Symbols loaded.
Other Extensions
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
PS: maybe look into lldb settings like symbols.enable-lldb-index-cache and symbols.load-on-demand, those seem to help a bit when tinkering on the CodeLLDB debug console, still not as fast on followup sessions as Xcode though.
Is there a way to inject an .lldbinit file into the C/C++ Extension debug session?
Thank you for reporting this issue. We’ll let you know if we need more information to investigate it. Additionally, if you're working with GDB/LLDB, please note that the code is open source at https://github.com/microsoft/MIEngine/wiki/Contributing-Code . Your contributions are always welcome and appreciated.
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
NOTE: This is not a new problem, but it seems to get worse with each new macOS version :/
When debugging a Cocoa application in VSCode with the C/C++ extension, it takes 10 seconds or so in each debug session until the
applicationDidFinishLaunching
callback is reached. Most of that time is spent between[NSApp run]
andapplicationDidFinishLaunching
. This long wait time is the same between the first and followup debug sessions.In Xcode, only the first debug session after starting Xcode shows a similar slow behaviour, while the following debug sessions start much faster (not quite instantly, but fast enough to not be an issue).
It would be good to at least investigate why there is this difference between VScode and XCode.
Steps to reproduce:
Product => Show Build Folder in Finder
to find the executable....in VSCode, there's a metric shitton of log output on the debug console during that waiting time, all about loading symbols from system frameworks like this:
Loaded '/System/Library/PrivateFrameworks/CoreSDB.framework/Versions/A/CoreSDB'. Symbols loaded.
...maybe this symbol loading is the main reason for the long waiting time, and this is somehow cached in XCode?
Personally I'm not interested in those symbols anyway, maybe there's an LLDB setting for this system framework symbol loading to be skipped, or delayed until they are actually needed?
Debugger Configurations
Debugger Logs
Other Extensions
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: