[go-nuts] Re: set source path in delve

2017-03-31 Thread YZ Xie
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

[go-nuts] set source path in delve

2017-03-31 Thread YZ Xie
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

[go-nuts] Re: delve and gdb cannot find go runtime

2017-03-31 Thread YZ Xie
> > 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

[go-nuts] gdb can step in function call

2017-03-31 Thread YZ Xie
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

[go-nuts] Re: delve and gdb cannot find go runtime

2017-03-31 Thread YZ Xie
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

[go-nuts] delve and gdb cannot find go runtime

2017-03-31 Thread 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_scripts of file /root/src/go/src/github.com/hyperledger/fabric/build/bi

[go-nuts] Re: problem about lldb debug go code

2017-03-31 Thread YZ Xie
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

[go-nuts] Re: problem about lldb debug go code

2017-03-31 Thread YZ Xie
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

[go-nuts] Re: problem about lldb debug go code

2017-03-31 Thread YZ Xie
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