Skip to content

Can I debug with a debugger PAL/XGL on windows/linux? #168

Answered by perlfu
gmmo asked this question in Q&A
Discussion options

You must be logged in to vote

You don't need to build the Vulkan loader, it is part of the Vulkan SDK (from LunarG).
If you fire up a debugger on the vkcube application from the Vulkan SDK then you can break in and see parts of PAL/XGL in the call stack:

$ gdb vkcube
GNU gdb (Ubuntu 12.0.90-0ubuntu1) 12.0.90/
...
(gdb) run
Starting program: /amd/vulkan/1.3.224.1/x86_64/bin/vkcube 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Selected GPU 0: AMD Radeon RX 6800 XT, type: DiscreteGpu
[New Thread 0x7fffe9686640 (LWP 805328)]
^C
Thread 1 "vkcube" received signal SIGINT, Interrupt.
__futex_abstimed_wait_common64 (private=<optimized out>, cancel=true…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gmmo
Comment options

@perlfu
Comment options

Answer selected by gmmo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants