AcKing-Sam opened a new issue, #32423:
URL: https://github.com/apache/doris/issues/32423

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Description
   
   Hi, everyone. I want to debug backend of Doris by using VSCODE. However, I 
tried the [official 
doc](https://doris.apache.org/community/developer-guide/be-vscode-dev/), I 
still can't lauch the GDB to debug. Could I get some help?
   The below is my lauch.json
   ```json
   {
       "version": "0.2.0",
       "configurations": [
           {
               "name": "(gdb) Launch",
               "type": "cppdbg",
               "request": "launch",
               "program": "/home/qfshen/workspace/doris/output/be/lib/doris_be",
               "args": [],
               "stopAtEntry": false,
               "cwd": "/home/qfshen/workspace/doris/output/be",
               "environment": 
[{"name":"PALO_HOME","value":"/home/qfshen/workspace/doris/output/be/"},
                               
{"name":"UDF_RUNTIME_DIR","value":"/home/qfshen/workspace/doris/output/be/lib/udf-runtime"},
                               
{"name":"LOG_DIR","value":"/home/qfshen/workspace/doris/output/be/log"},
                               
{"name":"PID_DIR","value":"/home/qfshen/workspace/doris/output/be/bin"}
                              ],
               "externalConsole": true,
               "MIMode": "gdb",
               "miDebuggerPath": "/usr/bin/gdb",
               "setupCommands": [
                   {
                       "description": "Enable pretty-printing for gdb",
                       "text": "-enable-pretty-printing",
                       "ignoreFailures": true
                   }
               ]
           }
       ]
   }
   ```
   The doris location is correct:
   
![0x03](https://github.com/apache/doris/assets/69379048/6c9bdc20-bc4e-4451-8b02-4a07e0f1ee62)
   Also, my gdb version is :
   
![0x05](https://github.com/apache/doris/assets/69379048/2589eccb-ee2e-4a9a-b62f-8328d5e47ac8)
   
   ### Solution
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to