Open AcKing-Sam opened 7 months ago
I haven't used Launch debugging, but attach debugging doris is very convenient, maybe you can try to use lldb's attach debugging here is my config
{
"name": "CodeLLDB attach",
"type": "lldb",
"request": "attach",
"program": "${workspaceFolder}/output/be/lib/doris_be",
"pid": "${command:pickMyProcess}"
}
Simply select the be process that has been started and you're done!
But it looks like the documentation's PALO_HOME hasn't been changed to DORIS_HOME, so I reckon I should need to use DORIS_HOME instead of PALO_HOME now
I haven't used Launch debugging, but attach debugging doris is very convenient, maybe you can try to use lldb's attach debugging here is my config
{ "name": "CodeLLDB attach", "type": "lldb", "request": "attach", "program": "${workspaceFolder}/output/be/lib/doris_be", "pid": "${command:pickMyProcess}" }
Simply select the be process that has been started and you're done!
Thanks for your help! I will try using attach
instead of launch
to debug.
But it looks like the documentation's PALO_HOME hasn't been changed to DORIS_HOME, so I reckon I should need to use DORIS_HOME instead of PALO_HOME now
Yes, I noticed this problem and I changed to DORIS_HOME
, however it still did not work ;)
I haven't used Launch debugging, but attach debugging doris is very convenient, maybe you can try to use lldb's attach debugging here is my config
{ "name": "CodeLLDB attach", "type": "lldb", "request": "attach", "program": "${workspaceFolder}/output/be/lib/doris_be", "pid": "${command:pickMyProcess}" }
Simply select the be process that has been started and you're done!
Could you please tell me your dev environment, like size of RAM and number of cores? I doubt that it can't run because of the machine(for me, it's 4c8g ubuntu) :)
I haven't used Launch debugging, but attach debugging doris is very convenient, maybe you can try to use lldb's attach debugging here is my config
{ "name": "CodeLLDB attach", "type": "lldb", "request": "attach", "program": "${workspaceFolder}/output/be/lib/doris_be", "pid": "${command:pickMyProcess}" }
Simply select the be process that has been started and you're done!
Could you please tell me your dev environment, like size of RAM and number of cores? I doubt that it can't run because of the machine(for me, it's 4c8g ubuntu) :)
My machine is 16c16g, despite that sometimes there's not enough RAM, 4c8g doesn't look like it's up to the minimum configuration
I haven't used Launch debugging, but attach debugging doris is very convenient, maybe you can try to use lldb's attach debugging here is my config
{ "name": "CodeLLDB attach", "type": "lldb", "request": "attach", "program": "${workspaceFolder}/output/be/lib/doris_be", "pid": "${command:pickMyProcess}" }
Simply select the be process that has been started and you're done!
Could you please tell me your dev environment, like size of RAM and number of cores? I doubt that it can't run because of the machine(for me, it's 4c8g ubuntu) :)
My machine is 16c16g, despite that sometimes there's not enough RAM, 4c8g doesn't look like it's up to the minimum configuration
Thanks a lot for your kind help! It seems the machine setting is a reason.
I haven't used Launch debugging, but attach debugging doris is very convenient, maybe you can try to use lldb's attach debugging here is my config
{ "name": "CodeLLDB attach", "type": "lldb", "request": "attach", "program": "${workspaceFolder}/output/be/lib/doris_be", "pid": "${command:pickMyProcess}" }
Simply select the be process that has been started and you're done!
Could you please tell me your dev environment, like size of RAM and number of cores? I doubt that it can't run because of the machine(for me, it's 4c8g ubuntu) :)
My machine is 16c16g, despite that sometimes there's not enough RAM, 4c8g doesn't look like it's up to the minimum configuration
Thanks a lot for your kind help! It seems the machine setting is a reason.
You're welcome. Try again with a new machine.
@koarz Thanks again for your help! I used my local machine with LLDB's attach
mode and it can debug successfully!
For this issue, it seems that the doc mentioned the machine request is at least 10c16g to run debugger successfully.
For this issue, it seems that the doc mentioned the machine request is at least 10c16g to run debugger successfully.
hi,Is your BE compiled by yourself(BUILD_TYPE=Debug sh build.sh
) or is it an official package?
@codeDing18 Hi, thanks for your suggestion! I compiled the BE by myself. The problem was handled after I changed another machine. ;)
When try to gdb attach with process id, i get "DW_FORM_rnglistx index pointing outside of .debug_rnglists offset array [in module /root/doris/output/be/lib/doris_be] (No debugging symbols found in output/be/lib/doris_be)"
Search before asking
Description
Hi, everyone. I want to debug backend of Doris by using VSCODE. However, I tried the official doc, I still can't lauch the GDB to debug. Could I get some help? The below is my lauch.json
The doris location is correct: Also, my gdb version is :
Solution
No response
Are you willing to submit PR?
Code of Conduct