I have read help with delve, there is a command sources to show source
files, but there exsit a way to change it? gdb can do it
在 2017年4月1日星期六 UTC+8下午12:58:24,YZ Xie写道:
>
> Hi all,
>
> I have meet source path problem,
>
> there exits two question.
> 1. when use ls to
Hi all,
I have meet source path problem,
there exits two question.
1. when use ls to list source code, it prompts no source available, how to
spefic a source folder? in gdb, use directory command to add source search
path, can dlv do it ?
2.when I set a breakpoints on function main, I know t
>
> I made a misstake, I have solved it by using source command, the add
> safe-path was just set a safe directory, if need add a python script it
> should use auto-load python-scripts, more details should go to gdb manual
>
Regards
Xie
--
You received this message because you are subscrib
hi everyone, use gdb to debug golang, I find two question
1. cannot use step / s to step in a function, is this for a wrong source
code path ?
2.gdb cannot print variable value, is this because compile optimize ?
Best
Xie
root@ubuntu:~/fabric/build/bin# gdb peer -d $GOROOT
...
Reading symbols
31日星期五 UTC+8下午8:30:59,YZ Xie写道:
>
> Hi everyone, I moved go from /usr/loca/dev/go to /usr/loca/go, then gdb
> and delve cannot find go runtime. how can I fix it?
>
> Reading symbols from peer...done.
> warning: Missing auto-load script at offset 0 in section .debug_gdb_script
Hi everyone, I moved go from /usr/loca/dev/go to /usr/loca/go, then gdb and
delve cannot find go runtime. how can I fix it?
Reading symbols from peer...done.
warning: Missing auto-load script at offset 0 in section .debug_gdb_scripts
of file /root/src/go/src/github.com/hyperledger/fabric/build/bi
I don't know, now I can use gdb to debug go code, and it can show code
sucessfully, but it cannot show depended package code. need to set source
file folder?
在 2017年3月25日星期六 UTC+8下午10:37:44,YZ Xie写道:
>
>
> down votefavorite
> <http://stackoverflow.com/questions/43014121/lld
I made a simple misstake, because breakpoint was set on golang runtime code,
在 2017年3月25日星期六 UTC+8下午10:37:44,YZ Xie写道:
>
>
> down votefavorite
> <http://stackoverflow.com/questions/43014121/lldb-support-for-golang#>
>
> if code and binary program is not in the same dir
this problem was solved, I forget how did I do to solve it, but meet
another problem
在 2017年3月25日星期六 UTC+8下午10:37:44,YZ Xie写道:
>
>
> down votefavorite
> <http://stackoverflow.com/questions/43014121/lldb-support-for-golang#>
>
> if code and binary program is not in the