-
Notifications
You must be signed in to change notification settings - Fork 51
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
Debugging WxGo #57
Comments
I guess you are using Windows - on Linux, the stdout & stderr should be available by default. (untested code)
Regarding the debugger issue, I think it seems related with #44 |
I built (go build) and ran the program on 64bit windows 10 PC. |
You can use cgo to embed C code in a Go program. For example,
VSCode supports adding environment variables when starting programs (I found the VSCode doc here). Try to add |
I could not get the debugging or writing to console work satisfactorily. i decided to use the log package to log to file with worked well. from the log i discovered that the error is from my call to a NewWindow func. the function returns just window and no error object, in fact the entire API has no error component. How do we detect/handle errors? |
Could you put together a small repo demonstrating your issue, @araoko, such that we can take a look at it ourselves? |
I wrote a class to wrap a wx.Window, i must be doing something wrong because my program stopped running. all i got was exit status 2. i cant write to stdout or stderr so its difficult for me to trace the problem.
i decided to run a debugger and that failed too with error "go build github.com/dontpanic92/wxGo/wx: invalid flag in #cgo LDFLAGS: -Wl,--subsystem,windows".
i am stuck. how do we debug our code if it fails before showing a window?
The text was updated successfully, but these errors were encountered: