WrapEarnPass created an issue (geany/geany#4626)
Geany runs as a UI component, but has useful information in stdout/stderr that
can be useful for troubleshooting.
This is available at runtime from Help>Debug Messages.
In the event of an unexpected termination, this information is lost.
Geany should consider if it is possible to redirect stdout/stderr to the cmd it
was launched from to allow for capture of this data.
E.G.
src/main.c
```
#include "main.h"
#ifdef _WIN32
#include <windows.h>
#include <stdio.h>
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE pInstance, LPSTR pCmdLine,
int nCmdShow){
if(!GetStdHandle(STD_OUTPUT_HANDLE))
if(AttachConsole(ATTACH_PARENT_PROCESS)){
freopen("CONOUT$", "wb", stdout);
freopen("CONOUT$", "wb", stderr);
}
return main_lib(__argc, __argv);
}
#else
int main(int argc, char **argv)
{
return main_lib(argc, argv);
}
#endif
```
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/4626
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/[email protected]>