Debugger configuration in GoGland

泄露秘密 提交于 2020-01-15 11:42:32

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/42033247/debugger-configuration-in-gogland

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!