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 

Debugging... ( 2 questions)

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



Joined: 31 Dec 2005
Posts: 288

PostPosted: Fri Jun 23, 2006 7:58 am    Post subject: Debugging... ( 2 questions) Reply with quote

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:
   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
_________________
My PSP games:

Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
Back to top
View user's profile Send private message
Oobles
Site Admin


Joined: 17 Jan 2004
Posts: 362
Location: Melbourne, Australia

PostPosted: Fri Jun 23, 2006 9:06 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Ghoti



Joined: 31 Dec 2005
Posts: 288

PostPosted: Fri Jun 23, 2006 9:19 am    Post subject: Reply with quote

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
_________________
My PSP games:

Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
Back to top
View user's profile Send private message
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Fri Jun 23, 2006 9:37 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
Ghoti



Joined: 31 Dec 2005
Posts: 288

PostPosted: Fri Jun 23, 2006 10:45 pm    Post subject: Reply with quote

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
_________________
My PSP games:

Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
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