 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
webjeff
Joined: 05 May 2005 Posts: 66
|
Posted: Mon Aug 08, 2005 8:14 am Post subject: Best way to debug please |
|
|
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. |
|
| Back to top |
|
 |
f_bohmann
Joined: 02 May 2005 Posts: 16 Location: hamburg, germany
|
Posted: Tue Aug 09, 2005 9:29 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|