vulkan-go / vulkan

Vulkan API bindings for Go programming language
MIT License
742 stars 55 forks source link

[Question] Is there an easier way to debug errors from C? #50

Closed shravanshetty1 closed 3 years ago

shravanshetty1 commented 3 years ago

When ever the c code errors out it just crashes the program with seg fault without anyway of telling whats wrong. Is there a way i can easily debug errors thrown from C while using this package?

I spent hours debugging swapchain, while i had just forgotten to add the swapchain extension. In bigger programs i am not sure i would have ever found the problem since there is no information to go on. Any thoughts?

xlab commented 3 years ago

Yo, have you tried gdb? :)