Need to debug

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

Moderators: cheriff, TyRaNiD

Post Reply
Alois2992
Posts: 7
Joined: Thu Nov 22, 2007 11:38 pm

Need to debug

Post by Alois2992 »

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
Cpasjuste
Posts: 214
Joined: Sun May 29, 2005 8:28 am

Post by Cpasjuste »

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.
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

http://www.google.com/search?hl=en&q=gd ... tnG=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
Alois2992
Posts: 7
Joined: Thu Nov 22, 2007 11:38 pm

Post by Alois2992 »

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
Alois2992
Posts: 7
Joined: Thu Nov 22, 2007 11:38 pm

Post by Alois2992 »

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
Mega Man
Posts: 260
Joined: Sat Jun 18, 2005 3:14 am
Contact:

Post by Mega Man »

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: Select all

PSP_HEAP_SIZE_KB&#40;20480&#41;;
There was not enough memory.
Post Reply