调试器配置在GoGland [英] Debugger configuration in GoGland

查看:1857
本文介绍了调试器配置在GoGland的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用curl命令发送请求时调试我的go应用程序。



目前我的请求是由二进制文件处理的。
当我使用curl命令请求发送请求时,我应该由没有二进制的代码处理。



我没有找到任何文档关于它,只找到此,仍然没有答复。

解决方案

我找到了解决方案我们简要介绍了Gogland中调试的工作原理以及配置方法: https://youtu.be / tT0Op-DYs4s



您可以使用常用的api处理程序代替Println,然后像平常一样对您的API运行curl命令只要使用调试配置运行此操作。


I want to debug my go application when I send request using curl command.

Currently my request is handled by the binary I have. What I want that when I send request using curl command request should be handled by the code I have not by the binary.

I did not find any documentation about it, only found this thiswhich is still unanswered.

@Zoyd did you found a way to configure it?

解决方案

I've made a short video of how debugging works in Gogland and how it should be configured: https://youtu.be/tT0Op-DYs4s.

In place of the Println you can have your usual api handler and then just run the curl command against your API as usual, as long as you run this with the debugging configuration.

这篇关于调试器配置在GoGland的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆