大佬教程收集整理的这篇文章主要介绍了我在 ubuntu 20.04 上使用 Geany 1.36,但我没有找到调试器插件,我该如何调试?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在使用 python3 进行编码,并且我一直在尝试在 Geany v 1.36 中开始调试,但似乎调试器插件不适用于 Ubuntu 20.04。
我已经安装了插件
#include <stdio.h>
struct abc{ char *c;};
voID abc(struct abc **t1);
voID abc2(struct abc *t1);
int main() {
struct abc *k;
abc(&k);
//printf("%s\n",k->c);
// k->c="hi"; Seg Fault causes because ->c is immutable from assigning String literal
// printf("%s\n",k->c);
printf("%s\n",(k)->c);
printf("%s\n",(k+1)->c);
printf("%s\n",(k+2)->c);
// / printf("%s\n",(k+2)->c);
return 1;
}
voID abc(struct abc **t1){
*t1=(struct abc *)malloc(sizeof(struct abC)*3);
(*t1)->c="Cool";
(*t1+1)->c="more cool";
(*t1+2)->c="super cool";
//below also works
abc2((*t1));
abc2((*t1+1));
abc2((*t1+2));
/* (*t1)->c="Hello";
//*(t1+1)=(struct abc *) malloc((sizeof(struct abC)));
(*t1+1)->c="cool";
//*(t1+2)=(struct abc *) malloc((sizeof (struct abC)));
(*t1+2)->c="Super cool";*/
}
voID abc2(struct abc *t1){
(t1)->c="cool";
}
我已经重新启动 Geany,查看插件管理器-
我已经搜索了一段时间,但没有找到任何答案。
提前致谢!
你应该从 src 编译 geany-plugins
git clone https://github.com/geany/geany-plugins.git
cd geany-plugins/
sudo apt-get install libvte-2.91-dev
./autogen.sh --disable-all-plugins --enable-debugger --prefix=/usr
make -j8
sudo make install
以上是大佬教程为你收集整理的我在 ubuntu 20.04 上使用 Geany 1.36,但我没有找到调试器插件,我该如何调试?全部内容,希望文章能够帮你解决我在 ubuntu 20.04 上使用 Geany 1.36,但我没有找到调试器插件,我该如何调试?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。