一个人怎么可以抢在C堆栈跟踪? [英] How can one grab a stack trace in C?

查看:123
本文介绍了一个人怎么可以抢在C堆栈跟踪?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有没有标准的C函数来做到这一点。我想知道什么是技术,这在Windows和* nix? (Windows XP中是我做这个,现在最重要的操作系统。)

I know there's no standard C function to do this. I was wondering what are the techniques to to this on Windows and *nix? (Windows XP is my most important OS to do this on right now.)

推荐答案

我们已经使用这个为我们的项目:

We've used this for our projects:

<一个href=\"http://www.$c$cproject.com/threads/StackWalker.asp\">http://www.$c$cproject.com/threads/StackWalker.asp

在code是一点点凌乱恕我直言,但它工作得很好。仅适用于Windows。

The code is a tad messy IMHO, but it works well. Windows only.

这篇关于一个人怎么可以抢在C堆栈跟踪?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆