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 

Need to debug

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



Joined: 22 Nov 2007
Posts: 7

PostPosted: Thu Nov 22, 2007 11:50 pm    Post subject: Need to debug Reply with quote

Hello ps2dev.org community,

I'm looking for someone, who can run a psp-debugger over my little programme. I haven't any experiences with debugging on the PSP.
The programme simply shuts down on some points but I can't find where exactly.
If someone wants to help, please write a PN. I'll send him the link of the programme back.

Thanks
Alois
Back to top
View user's profile Send private message
Cpasjuste



Joined: 29 May 2005
Posts: 214

PostPosted: Fri Nov 23, 2007 2:21 am    Post subject: Reply with quote

Since i'm not a coder guru, i usualy use some basic tricks to debug my code (in conjonction of psplink of course).
The best one for me is to comment each functions until the bug is gone. You should take a try, it's not really hard to do ...

If you are really lost, send me the link via PM.
Back to top
View user's profile Send private message
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Fri Nov 23, 2007 2:30 am    Post subject: Reply with quote

http://www.google.com/search?hl=en&q=gdb+tutorial&btnG=Search
or alternatively
svn co svn://svn.ps2dev.org/psp/trunk/psplinkusb
and read the manual.

Learning to properly debug your code is an important thing for any coder. If you want to take it serious, do that now - it's not that hard after all. If not, you should just stop coding and not bother other people to work out your bugs.
_________________
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
Back to top
View user's profile Send private message Visit poster's website
Alois2992



Joined: 22 Nov 2007
Posts: 7

PostPosted: Fri Nov 23, 2007 5:43 am    Post subject: Reply with quote

Thanks for your answers.
I've already heard about PSPLink, but there is a problem. I've the CFW 3.71 M33-2 and there is always the "The Game could not be started" message. Do I have to downgrade on FW 1.5?

Alois

EDIT: OK, I tried the release_oe and it works.
_________________
Sorry for my bad English... I'm still learning
Back to top
View user's profile Send private message
Alois2992



Joined: 22 Nov 2007
Posts: 7

PostPosted: Fri Nov 23, 2007 7:07 am    Post subject: Reply with quote

Sorry for posting twice

Now I've a problem with my programme... On the PSP it runs perfectly (No thought of the errors) but when I start it in the shell as prx, the message: "libpng error: Decompression error" appears.

Thanks a lot for reminding me of PSPLink

Alois
_________________
Sorry for my bad English... I'm still learning
Back to top
View user's profile Send private message
Mega Man



Joined: 18 Jun 2005
Posts: 274

PostPosted: Thu Jul 17, 2008 9:11 am    Post subject: Reply with quote

Alois2992 wrote:

when I start it in the shell as prx, the message: "libpng error: Decompression error" appears.


Today I run into the same problem and I get around it by using:

Code:

PSP_HEAP_SIZE_KB(20480);


There was not enough memory.
Back to top
View user's profile Send private message Visit poster's website
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