- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.7k
docs: add LLDB crash workaround and issue reference #13704
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
          
     Open
      
      
            Subham-KRLX
  wants to merge
  13
  commits into
  microsoft:main
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
Subham-KRLX:fix/llcdbg-crash
  
      
      
   
  
    
  
  
  
 
  
      
    base: main
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
  
     Open
                    Changes from 5 commits
      Commits
    
    
            Show all changes
          
          
            13 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      22cfeb9
              
                docs: add LLDB crash workaround and issue reference
              
              
                Subham-KRLX 29bab77
              
                Add LLDB crash repro files and updated launch.json
              
              
                Subham-KRLX 742c4ca
              
                WIP: Prepare for rebase
              
              
                Subham-KRLX 39e3f80
              
                Merge branch 'main' into fix/llcdbg-crash
              
              
                Subham-KRLX 35d1166
              
                Merge branch 'main' into fix/llcdbg-crash
              
              
                Subham-KRLX 4aceff2
              
                Merge branch 'main' into fix/llcdbg-crash
              
              
                Subham-KRLX f9e627b
              
                Merge branch 'main' into fix/llcdbg-crash
              
              
                Subham-KRLX ec86cec
              
                Merge branch 'main' into fix/llcdbg-crash
              
              
                Subham-KRLX 21228fd
              
                Merge branch 'main' into fix/llcdbg-crash
              
              
                Subham-KRLX 3956cad
              
                Merge branch 'main' into fix/llcdbg-crash
              
              
                Subham-KRLX 2804261
              
                Merge branch 'main' into fix/llcdbg-crash
              
              
                Subham-KRLX ffdd11d
              
                Refactor launch.json for extension debugging
              
              
                Subham-KRLX a93f245
              
                Merge branch 'main' into fix/llcdbg-crash
              
              
                Subham-KRLX File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
            Binary file not shown.
          
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| <plist version="1.0"> | ||
| <dict> | ||
| <key>CFBundleDevelopmentRegion</key> | ||
| <string>English</string> | ||
| <key>CFBundleIdentifier</key> | ||
| <string>com.apple.xcode.dsym.a.out</string> | ||
| <key>CFBundleInfoDictionaryVersion</key> | ||
| <string>6.0</string> | ||
| <key>CFBundlePackageType</key> | ||
| <string>dSYM</string> | ||
| <key>CFBundleSignature</key> | ||
| <string>????</string> | ||
| <key>CFBundleShortVersionString</key> | ||
| <string>1.0</string> | ||
| <key>CFBundleVersion</key> | ||
| <string>1</string> | ||
| </dict> | ||
| </plist> | 
            Binary file not shown.
          
    
        
          
  
    
      
          
            5 changes: 5 additions & 0 deletions
          
          5 
        
  Code Samples/Fib/a.out.dSYM/Contents/Resources/Relocations/aarch64/a.out.yml
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| triple: 'arm64-apple-darwin' | ||
| binary-path: a.out | ||
| relocations: [] | ||
| ... | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -54,5 +54,5 @@ int main(int argc, char **argv) | |
|  | ||
| std::cout << "All threads exited!" << std::endl; | ||
|  | ||
| return 1; | ||
| return 0; | ||
| } | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1 +1,6 @@ | ||
| void * thread_proc(void* ctx); | ||
| #ifndef THREAD_H | ||
| #define THREAD_H | ||
|  | ||
| void* thread_proc(void* ctx); | ||
|  | ||
| #endif // THREAD_H | 
|         
                  Subham-KRLX marked this conversation as resolved.
              Show resolved
            Hide resolved | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,143 +1,26 @@ | ||
| // A launch configuration that compiles the extension and then opens it inside a new window | ||
| { | ||
| "version": "0.1.0", | ||
| "configurations": [ | ||
| { | ||
| // debugs the extension | ||
| "name": "Run Extension", | ||
| "type": "extensionHost", | ||
| "request": "launch", | ||
| "args": [ | ||
| "--no-sandbox", | ||
| "--disable-updates", | ||
| "--skip-welcome", | ||
| "--skip-release-notes", | ||
| "--disable-workspace-trust", | ||
| "--extensionDevelopmentPath=${workspaceFolder}", | ||
| ], | ||
| "sourceMaps": true, | ||
| "outFiles": [ | ||
| "${workspaceFolder}/dist/**" | ||
| ], | ||
| // you can use a watch task as a prelaunch task and it works like you'd want it to. | ||
| "preLaunchTask": "watch" | ||
| }, | ||
| { | ||
| // debugs the extension (selecting the workspace) | ||
| "name": "Run Extension-Select Workspace", | ||
| "type": "extensionHost", | ||
| "request": "launch", | ||
| "args": [ | ||
| "--no-sandbox", | ||
| "--disable-updates", | ||
| "--skip-welcome", | ||
| "--skip-release-notes", | ||
| "--disable-workspace-trust", | ||
| "--extensionDevelopmentPath=${workspaceFolder}", | ||
| "${input:pickWorkspace}" | ||
| ], | ||
| "sourceMaps": true, | ||
| "outFiles": [ | ||
| "${workspaceFolder}/dist/**" | ||
| ], | ||
| // you can use a watch task as a prelaunch task and it works like you'd want it to. | ||
| "preLaunchTask": "watch" | ||
| }, | ||
| { | ||
| // debug scenario tests (selecting the workspace) | ||
| "name": "VSCode Tests", | ||
| "type": "extensionHost", | ||
| "request": "launch", | ||
| "runtimeExecutable": "${execPath}", | ||
| "env": { | ||
| "SCENARIO": "${input:pickScenario}" | ||
| }, | ||
| "args": [ | ||
| "--no-sandbox", | ||
| "--disable-updates", | ||
| "--skip-welcome", | ||
| "--skip-release-notes", | ||
| "--disable-extensions", | ||
| "--extensionDevelopmentPath=${workspaceFolder}", | ||
| "--extensionTestsPath=${workspaceFolder}/dist/test/common/selectTests", | ||
| "--scenario=${input:pickScenario}", | ||
| "${input:pickScenario}" | ||
| ], | ||
| "sourceMaps": true, | ||
| "outFiles": [ | ||
| "${workspaceFolder}/dist/**" | ||
| ], | ||
| // you can use a watch task as a prelaunch task and it works like you'd want it to. | ||
| "preLaunchTask": "watch" | ||
| }, | ||
| { | ||
| // used for debugging unit tests | ||
| "name": "MochaTest", | ||
| "type": "node", | ||
| "request": "attach", | ||
| "port": 9229, | ||
| "continueOnAttach": true, | ||
| "autoAttachChildProcesses": false, | ||
| "skipFiles": [ | ||
| "<node_internals>/**" | ||
| ], | ||
| "outFiles": [ | ||
| "${workspaceFolder}/dist/**", | ||
| "!**/node_modules/**" | ||
| ] | ||
| } | ||
| ], | ||
| "inputs": [ | ||
| { | ||
| "type": "pickString", | ||
| "id": "pickScenario", | ||
| "description": "Select which scenario to debug VSCode tests.", | ||
| "options": [ | ||
| { | ||
| "label": "MultirootDeadlockTest ", | ||
| "value": "${workspaceFolder}/test/scenarios/MultirootDeadlockTest/assets/test.code-workspace" | ||
| }, | ||
| { | ||
| "label": "SimpleCppProject ", | ||
| "value": "${workspaceFolder}/test/scenarios/SimpleCppProject/assets/simpleCppProject.code-workspace" | ||
| }, | ||
| { | ||
| "label": "SingleRootProject ", | ||
| "value": "${workspaceFolder}/test/scenarios/SingleRootProject/assets/" | ||
| }, | ||
| { | ||
| "label": "CompilerDetection ", | ||
| "value": "${workspaceFolder}/test/scenarios/CompilerDetection/assets" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "type": "pickString", | ||
| "id": "pickWorkspace", | ||
| "description": "Select which workspace scenario to debug VSCode.", | ||
| "default": "-n", | ||
| "options": [ | ||
| { | ||
| "label": "(Debug with new window) ", | ||
| "value": "-n" | ||
| }, | ||
| { | ||
| "label": "MultirootDeadlockTest ", | ||
| "value": "${workspaceFolder}/test/scenarios/MultirootDeadlockTest/assets/test.code-workspace" | ||
| }, | ||
| { | ||
| "label": "SimpleCppProject ", | ||
| "value": "${workspaceFolder}/test/scenarios/SimpleCppProject/assets/simpleCppProject.code-workspace" | ||
| }, | ||
| { | ||
| "label": "SingleRootProject ", | ||
| "value": "${workspaceFolder}/test/scenarios/SingleRootProject/assets/" | ||
| }, | ||
| { | ||
| "label": "CompilerDetection ", | ||
| "value": "${workspaceFolder}/test/scenarios/CompilerDetection/assets" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| "version": "0.2.0", | ||
|         
                  Subham-KRLX marked this conversation as resolved.
              Outdated
          
            Show resolved
            Hide resolved | ||
| "configurations": [ | ||
| { | ||
| "name": "Debug", | ||
| "type": "cppdbg", | ||
| "request": "launch", | ||
| "program": "${workspaceFolder}/a.out", | ||
| "args": [], | ||
| "stopAtEntry": false, | ||
| "cwd": "${workspaceFolder}", | ||
| "environment": [], | ||
| "externalConsole": false, | ||
| "MIMode": "lldb" | ||
| }, | ||
| { | ||
| "name": "Attach to a.out", | ||
| "type": "cppdbg", | ||
| "request": "attach", | ||
| "program": "${workspaceFolder}/Code Samples/Fib/a.out", | ||
| "processId": "${command:pickProcess}", | ||
| "MIMode": "lldb", | ||
| "stopAtEntry": false | ||
| } | ||
| ] | ||
| } | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              |         
                  Subham-KRLX marked this conversation as resolved.
              Show resolved
            Hide resolved | 
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
      
      Oops, something went wrong.
      
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.