Best way to debug please

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
webjeff
Posts: 66
Joined: Thu May 05, 2005 2:51 am

Best way to debug please

Post by webjeff »

OK, I am tearing my hair out because the PSP is a pain to debug. Sometimes the screen just goes black, which then I know something went wrong somewhere... who knows where.

Sometimes it hangs at a point which doesn't make sense cause its really not doing anything. I am using a lot of debug prints to try to see where its hanging, but it takes a while to make clean, make, and make install... just to try to find where its crashing.

Anywho, is there a better way to do this. Am I the only one really fed up with not knowing anything thats going on.

Is there a way to see where its failing if it crashes somewhere other than prints and I think I see where its failing?? Another words, debugging in realtime would be great.

Thanks guys
Jeff King.
f_bohmann
Posts: 16
Joined: Mon May 02, 2005 7:15 pm
Location: hamburg, germany

Post by f_bohmann »

look into the examples under debugging, there is an example on how to use the exception handler that will tell you enough to use psp-addr2line when your program crashes.

also make sure you have -g in your compiler-options so line/debug infos are in your executable.
Post Reply