gtk 如何debug

要檢查gtk程式除了手動gprintf,
還可以在程式中使用這個 function 來做一點簡單的檢查 :

g_return_val_if_fail
(expr)
Logs a warning if the expression is not true.

其他參見

Message Output and Debugging Functions

Message Output and Debugging Functions — functions to output messages and help debug applications



留言

Google

本月熱門文章