Vitalts / golangide

Automatically exported from code.google.com/p/golangide
0 stars 0 forks source link

How to debbug? #71

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
look like cant not debbug with multi-file

当一个项目包含多个GO文件 好像不能调试.

Original issue reported on code.google.com by supp...@ryron.org on 29 Oct 2012 at 10:00

GoogleCodeExporter commented 8 years ago
首先要确保正确编译,同项目中的多个文件可以调试和设置��
�点。

Original comment by Visua...@gmail.com on 30 Oct 2012 at 2:21

GoogleCodeExporter commented 8 years ago
设置断点了,没效果.有没有手册货必须执行什么步骤才能达到
断点?

Original comment by supp...@ryron.org on 30 Oct 2012 at 2:46

GoogleCodeExporter commented 8 years ago
liteide的断点是传递给gdb来设置。如果实在不行只能使用log输�
��了。

Original comment by Visua...@gmail.com on 30 Oct 2012 at 8:58

GoogleCodeExporter commented 8 years ago
liteidex14.0 编译配置里可以加入以下标志,可以试一下。
-gcflags "-N -l" for debug
-ldflags "-s" for release

Original comment by Visua...@gmail.com on 7 Nov 2012 at 12:10

GoogleCodeExporter commented 8 years ago
编译配置是不能修改的啊! 您说的是哪个编译配置

*Sincerely yours & Best regard!

- Ryron Electronics -
   *
_______________________________________________________________
+
*
*
*Tel:*  (86) 0755-8397 8411, 0755-8397 4211
*Fax: 88355533*
*Mobile:* 13510935999
*Email/MSN :* support@ryron.org <sales@ryron.org>
*skype:* iRyron
*Web site* *:* www.ryron.org (Welcome to visit our website for details)

Original comment by supp...@ryron.org on 8 Nov 2012 at 7:45

GoogleCodeExporter commented 8 years ago
在编辑文件如main.go状态下,选择菜单(编译)或工具栏(编�
��)上的编译配置,切换到编译自定义,在BUILDARGS中输入-gcfla
gs "-N -l",重新编译,再调试。

编译自定义的配置是与当前编辑文件所在目录相关的,因此��
�同项目可以设置不同的编译自定义。

Original comment by Visua...@gmail.com on 9 Nov 2012 at 12:08