- 
                Notifications
    
You must be signed in to change notification settings  - Fork 17
 
Feature : Enable LLDB Debugging for R Dev Container #267
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
      
      
            avinab-neogy
  wants to merge
  20
  commits into
  devel
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
feature/lldb-new
  
      
      
   
  
    
  
  
  
 
  
      
    base: devel
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 10 commits
      Commits
    
    
            Show all changes
          
          
            20 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      75c44f8
              
                changes to devconatiner.json
              
              
                avinab-neogy 1aeca18
              
                added launch configuration and changed script to move the file to .vs…
              
              
                avinab-neogy 22b804d
              
                made a correction to the referencing of the launch.json file in the s…
              
              
                avinab-neogy 95f6509
              
                added step to set cflags in building r tutorial
              
              
                avinab-neogy 08934b8
              
                added allow_ptrace script
              
              
                avinab-neogy 615558e
              
                added launch_r script to load the wrapper
              
              
                avinab-neogy 22b740f
              
                updated local script to build the library and make the wrapper execut…
              
              
                avinab-neogy 9b2b1f0
              
                updated which_r to execute launch_r and update it
              
              
                avinab-neogy 921324c
              
                removed vscode,devocntainer and scripts dir from files exclude beacus…
              
              
                avinab-neogy 6542a19
              
                [pre-commit.ci] Fixing issues with pre-commit
              
              
                pre-commit-ci[bot] bb7fc01
              
                merged with the latest devel
              
              
                avinab-neogy 314983c
              
                removed absolute paths
              
              
                avinab-neogy bccf15b
              
                updated allow ptrace to remove printing multiple times when the wrapp…
              
              
                avinab-neogy 0f93b02
              
                updated building r documentation to include the cflags step into the …
              
              
                avinab-neogy 5bc250b
              
                Update r.rterm.linux setting to use the launch_r.sh script with full …
              
              
                avinab-neogy 17591ff
              
                move the launch_script variable definition in which_r script
              
              
                avinab-neogy d04f11e
              
                [pre-commit.ci] Fixing issues with pre-commit
              
              
                pre-commit-ci[bot] 9c3aee5
              
                updated which_r.sh
              
              
                avinab-neogy 6f40896
              
                updated devcontainer.json
              
              
                avinab-neogy 95f5729
              
                updated devcontainer.json
              
              
                avinab-neogy 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
  
    
      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 | 
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| { | ||
| "name": "(lldb) Attach to R", | ||
| "type": "lldb", | ||
| "request": "attach", | ||
| "pid": "${command:pickMyProcess}", | ||
| "stopOnEntry": 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
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #include <sys/prctl.h> | ||
| #include <stdio.h> | ||
| 
     | 
||
| __attribute__((constructor)) void allow_ptrace() { | ||
| prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY); | ||
| fprintf(stderr, "allow_ptrace: called\n"); | ||
                
      
                  avinab-neogy marked this conversation as resolved.
               
              
                Outdated
          
            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 | 
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| #!/bin/bash | ||
| export LD_PRELOAD=/workspaces/r-dev-env/scripts/allow_ptrace.so | ||
| # exec /workspaces/r-dev-env/build/r-devel/bin/R "$@" | ||
                
      
                  avinab-neogy marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
| exec /usr/bin/R "$@" | ||
  
    
      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
    
  
  
    
              
  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.