PrintCallStack #19888
markcmiller86
started this conversation in
Share cool stuff
PrintCallStack
#19888
Replies: 3 comments
-
@markcmiller86 I think this would be great to add to our Debugging Tips section of the manual. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is very cool 😎 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Saved my bacon. 🥓 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just some helpful stuff about debugging. If you are using GCC (Gnu Compiler Collection), you can use
PrintCallStack()
insrc/common/utility/Utility.h
to print out the current call stack from anywhere within the code.For example, in debugging a feature for MOAB database to support per-instance file open options, I added a call in
avtMOAB Options.C
like so...And, that will result in some output like so...
Beta Was this translation helpful? Give feedback.
All reactions