Skip to content

Print stack trace#2706

Open
locke-lunarg wants to merge 1 commit intoLunarG:devfrom
locke-lunarg:locke-stack-trace
Open

Print stack trace#2706
locke-lunarg wants to merge 1 commit intoLunarG:devfrom
locke-lunarg:locke-stack-trace

Conversation

@locke-lunarg
Copy link
Copy Markdown
Contributor

@locke-lunarg locke-lunarg commented Feb 18, 2026

It prints something like this

[gfxrecon] INFO - --- Stack Trace --- (Only print stack traces locally; avoid including them in the dev branch. Release Mode mightn't be able to get readable function names.)
[gfxrecon] INFO - 0: gfxrecon::decode::VulkanReplayConsumerBase::OverrideCreateDevice - 01443B78
[gfxrecon] INFO - 1: gfxrecon::decode::VulkanReplayConsumer::Process_vkCreateDevice - 0159DFEC
[gfxrecon] INFO - 2: gfxrecon::decode::VulkanDecoder::Decode_vkCreateDevice - 0120B006
[gfxrecon] INFO - 3: gfxrecon::decode::VulkanDecoder::DecodeFunctionCall - 012048B8
[gfxrecon] INFO - 4: `gfxrecon::decode::FileProcessor::DispatchVisitor::operator()<gfxrecon::decode::FunctionCallArgs>'::`9'::<lambda_1>::operator()<enum gfxrecon::format::ApiCallId const &,gfxrecon::decode::ApiCallInfo const &,unsigned char const * const &,unsigned int const  - 010FD8D0
[gfxrecon] INFO - 5: std::invoke<`gfxrecon::decode::FileProcessor::DispatchVisitor::operator()<gfxrecon::decode::FunctionCallArgs>'::`9'::<lambda_1> &,enum gfxrecon::format::ApiCallId const &,gfxrecon::decode::ApiCallInfo const &,unsigned char const * const &,unsigned int cons - 0110A90B
[gfxrecon] INFO - 6: std::_Apply_impl<`gfxrecon::decode::FileProcessor::DispatchVisitor::operator()<gfxrecon::decode::FunctionCallArgs>'::`9'::<lambda_1> &,std::tuple<enum gfxrecon::format::ApiCallId const &,gfxrecon::decode::ApiCallInfo const &,unsigned char const * const &,u - 01105A5C
[gfxrecon] INFO - 7: std::apply<`gfxrecon::decode::FileProcessor::DispatchVisitor::operator()<gfxrecon::decode::FunctionCallArgs>'::`9'::<lambda_1> &,std::tuple<enum gfxrecon::format::ApiCallId const &,gfxrecon::decode::ApiCallInfo const &,unsigned char const * const &,unsigne - 01108F32
[gfxrecon] INFO - 8: gfxrecon::decode::FileProcessor::DispatchVisitor::operator()<gfxrecon::decode::FunctionCallArgs> - 01100E68
[gfxrecon] INFO - 9: gfxrecon::decode::FileProcessor::DispatchVisitor::operator()<gfxrecon::decode::FunctionCallArgs> - 01100FAF

{ \
gfxrecon::util::Log::PrintStackTrace(10); \
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use do ... while(0) so that the macro can be used just like a function call.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. Changed!

@locke-lunarg locke-lunarg force-pushed the locke-stack-trace branch 7 times, most recently from 34cdd2f to ec30e17 Compare February 19, 2026 18:57
@locke-lunarg locke-lunarg marked this pull request as ready for review February 20, 2026 05:46
@locke-lunarg locke-lunarg requested a review from a team as a code owner February 20, 2026 05:46
@locke-lunarg locke-lunarg force-pushed the locke-stack-trace branch 2 times, most recently from e24dd58 to 917ac7a Compare February 21, 2026 04:11
@locke-lunarg locke-lunarg added the approved-to-run-ci Can run CI check on internal LunarG machines label Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-to-run-ci Can run CI check on internal LunarG machines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants