Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

以 Windows 服务启动,debug=true 会出现异常 #261

Open
fujiawei-dev opened this issue Nov 2, 2020 · 9 comments
Open

以 Windows 服务启动,debug=true 会出现异常 #261

fujiawei-dev opened this issue Nov 2, 2020 · 9 comments

Comments

@fujiawei-dev
Copy link

以 Windows 服务启动,debug=true 会出现

write /dev/stdout: The handle is invalid.

花了十几分钟找原因,最后猜测可能 debug 找不到输出的地方,改成 debug=false 后正常

@guonaihong
Copy link
Owner

ok,今天看下。

@guonaihong
Copy link
Owner

刚刚在windows机器用下面的代码编译运行是ok的。可否看下你的代码。

package main

import "github.com/guonaihong/gout"

func main() {
    gout.GET("http://www.baidu.com").Debug(true).Do()
}

@fujiawei-dev
Copy link
Author

代码不方便贴,是编译后的程序以 Windows 服务的方式启动

@guonaihong
Copy link
Owner

可否把编译选项发下。

@forcemeter
Copy link

#253

跟这个issue一样

@douguohai
Copy link

遇到一样的情况,使用vscode运行正常 但是打成gui程序后,debug=true就报错

@guonaihong
Copy link
Owner

guonaihong commented Feb 26, 2023 via email

@guonaihong
Copy link
Owner

guonaihong commented Feb 26, 2023 via email

@douguohai
Copy link

gui用的fyne,至于代码只是一个小工具没什么业务,我去除掉一些敏感字符,发你邮箱一份 guonaihong@qq.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants