Debugging... ( 2 questions)

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

Moderators: cheriff, TyRaNiD

Post Reply
Ghoti
Posts: 288
Joined: Sat Dec 31, 2005 11:06 pm

Debugging... ( 2 questions)

Post by Ghoti »

Hi folks,

I have this huge problem. Debugging is hell for me, i posted a message like this a while ago but i have this time a different question.

I debug at this moment just by printing through the debugprint info to the screen. Now since my game updates every frame playing the game becomes nearly impossible due to the black/gamescreen flickering nature of the debug output. I also tried rendering text directly to the screen but this also messes up whenever i render to much text to screen.

I have two questions:

- How do i setup a correctly working pspDebugDumpException (so when it crashes it dump info on the screen about the crash) using a fw1.5 psp. It does not work like the example provided with the pspsdk because then i can only press a button once and then after not anymore (so when i press home and choose no i cant press home and cross anymore) or my psp just gives black screen and crashes. Does anybody has an example file for me other then the one given by the pspsdk?

- Are there any other ways of doing the debugging?

- What are the correct settings for using the pspDebugDumpException ? maybe i have made a mistake with that. Do i have to set and option in the make file or with this code:

Code: Select all

	PSP_MODULE_INFO("Game", 0x0000, 1, 1);

	PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER);
I hope someone can give me some pointers or information about this

greets ghoti
Oobles
Site Admin
Posts: 347
Joined: Sat Jan 17, 2004 9:49 am
Location: Melbourne, Australia
Contact:

Post by Oobles »

First question is, are you using psplink? If not, why not? All you need is a usb cable and you can get started. It also includes the ability to use GDB for interactive debugging. Have a try..

David. aka Oobles.
Ghoti
Posts: 288
Joined: Sat Dec 31, 2005 11:06 pm

Post by Ghoti »

Hi,

i have tried that but i didn't get it to work, it needs elf files but i make my psp programs through visual studio 6.0 and i see nowhere a creation of an elf file. It was just to much hassel in my opinion so i tried this exception thing. It starts the game but for some reason you can press every button only once :S
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

I can run eboots over psplink too, so I'm not sure what your problem is. I'm not sure about VC++, but I suppose it also generates a elf file and then by a script just packs that into a eboot and deletes the elf file. So all you need to do is find the line in the script and remove it.

I really advise you to go for psplink at all means. It's like heaven for any debug purpose. You can even debugprint to your console window, rather than your psp screen, so that won't be a problem either.
Ghoti
Posts: 288
Joined: Sat Dec 31, 2005 11:06 pm

Post by Ghoti »

Hi,

I got it to work but with one of my crashes it doesn't crash so i can call the exception.

normal play does crash it but through the psplink it just is busy for a long time (orange loading light flickers) but does not crash
Post Reply