klesh commented on issue #8532:
URL: 
https://github.com/apache/incubator-devlake/issues/8532#issuecomment-3496280677

   > I can use a dynamic token provider that proactively refreshes the token 
shortly before it expires.
   > 
   > Also, I am very hesitant on publishing any commits until i am able to test 
my code so can you please guide me a little as to how to setup a testing bench 
for devlake, i have tried reading the documentaiton and using docker, but it 
just takes forever and never finishes building.
   
   Good question.
   I use VSCode, here are my configurations to launch the backend for debugging:
   
   tasks.json for building plugins
   ```json
   {
        "version": "2.0.0",
        "tasks": [
                {
                        "label": "debugPlugins",
                        "type": "shell",
                        "command": 
"${workspaceFolder}/backend/scripts/build-plugins.sh",
                        "options": {
                                "env": {
                                        "PKG_CONFIG_PATH": 
"/usr/local/lib/pkgconfig",
                                        // "DEVLAKE_PLUGINS": 
"github,github_graphql,org,refdiff,dora,gitextractor",
                                        // "DEVLAKE_PLUGINS": 
"github,gitlab,org,refdiff,dora,gitextractor",
                                        // "DEVLAKE_PLUGINS": "jira",
                                        // "DEVLAKE_PLUGINS": "tapd",
                                        "DEVLAKE_PLUGINS": "zentao",
                                        // "DEVLAKE_PLUGINS": "pagerduty",
                                        "DEVLAKE_DEBUG": "1",
                                        "PLUGIN_DIR": 
"${workspaceFolder}/backend/bin/plugins"
                                }
                        }
                }
         ]
   }
   ```
   
   
   launch.json
   ```json
   {
     // 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": "Backend",
         "type": "go",
         "request": "launch",
         "mode": "auto",
         "program": "backend/server/main.go",
         "cwd": "backend",
         "env": {
           "FORCE_MIGRATION": "true",
           "VIRTUAL_ENV": "${workspaceFolder}/backend/python/venv",
           "DISABLED_REMOTE_PLUGINS": "true",
           "LD_LIBRARY_PATH": "/usr/local/lib",
           "PLUGIN_DIR": "${workspaceFolder}/backend/bin/plugins"
         },
         "preLaunchTask": "debugPlugins"
       }
     ]
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to