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

Save the result automatically #84

Closed
liuwb2001 opened this issue Mar 27, 2023 · 3 comments
Closed

Save the result automatically #84

liuwb2001 opened this issue Mar 27, 2023 · 3 comments
Labels

Comments

@liuwb2001
Copy link

It is a useful tool to debug. But when I want to use it on a Windows server, I need it to save the debug info automatically without bundling exchndl to my program. I am wondering how to achieve it.

@jrfonseca
Copy link
Owner

I didn't quite get want you're looking for. You'll need to be more specific.

@liuwb2001
Copy link
Author

My question is how to use Drmingw to automatically save captured information to a file, instead of having to manually export the file in the window.
Thank you.

@jrfonseca
Copy link
Owner

For that I recommend using catchsegv .

For example, instead of running

yourapp.exe

run

catchsegv.exe -w -- yourapp.exe

One can also redirect the stderr output to a file, as

catchsegv.exe -w -- yourapp.exe >> yourapp.log 2>&1

but probably the best thing is to have some sort of wrapper PowerShell script that writes logs somewhere with a timestamp.

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

No branches or pull requests

2 participants