forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Best way to debug please

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
webjeff



Joined: 05 May 2005
Posts: 66

PostPosted: Mon Aug 08, 2005 8:14 am    Post subject: Best way to debug please Reply with quote

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
View user's profile Send private message
f_bohmann



Joined: 02 May 2005
Posts: 16
Location: hamburg, germany

PostPosted: Tue Aug 09, 2005 9:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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