General

Reply

Level 2

Level 2
petrix18
Posts: 15
Registered: ‎17-05-2011
Message 1 of 8 (565 Views)
Accepted Solution

Debugging with PSVita

Hi.

 

I want to debug my game on the psvita because on the emulator works perfectly but when I run the game on the vita it closes right after I launch it. Is there any way of debugging it like in the simulator? with breakpoints and all that?

 

Thanks :smileywink:

Please use plain text.

Re: Debugging with PSVita

Hi:

 

Tomorrow I will test that, I read somewhere right now it's not possible but did you try run it in debug mode? with a break point in the beggining? if you already did and not worked or hungs means for now we can't.

 

cheers

Please use plain text.

Re: Debugging with PSVita

[ Edited ]

@petrix18, When you have the vita connected with the Playstation Mobile studio, building your project and starting the project with the debugger (F5), you have full debugging support like on the Simulator. I just confirmed this with a breakpoint in my application, it even has stack and locals information.

If you are having problems, did you try loading one of the supplied PSM samples instead? Do note that the debugger stops working (even crashes sometimes) if the vita enters standby state. Might be a good idea to set the Stand-by time of your vita in Settings->Power Safe Settings.
Keep in mind that running your project with a debugger on the vita is slow! Starting my project takes about 30 seconds! While without it's  about 3 sec!

If you are having problems booting witrh the debugger, set the Vita in PSM Dev mode, confirm the vita is visible on the PSM studio, disconnect the USB cable, and reconnect. Even though the IDE says " PS Vita(xxx) ON", you sometimes need to reconnect the Vita.
Just my experience so far with PSM :smileyhappy: 

http://markscheurwater.com/project.php
Please use plain text.

Re: Debugging with PSVita

You should be able to debug to some degree on Vita, although the app we are working on fails to show the contents of local variables when execution is paused. Breakpoints work, stepping works and hitting pause in the debugger should break execution.

Have you tried debugging any of the samples on your vita?
Please use plain text.

Re: Debugging with PSVita

Debugging has always worked fine for me on Vita, writing to Console or Debug output massively slows down the execution of the app on the Vita though so always remember to test for performance in a Release build.

Martin Caine
Founder and Lead Programmer of Retroburn Game Studios

Twitter | LinkedIn | Facebook
Please use plain text.

Re: Debugging with PSVita

Hi:

 

Yes I tested all of that today, and like Martin says remember release is faster. Just one question to everyone did all notice that takes a long time to refresh members/local variables values? or it's just me?

 

Cheers

Please use plain text.

Re: Debugging with PSVita

plus don't forget to check enable optimizations on compiler settings :Wink:

 

Cheers,

Please use plain text.

Level 2

Level 2
petrix18
Posts: 15
Registered: ‎17-05-2011
Message 8 of 8 (493 Views)

Re: Debugging with PSVita

[ Edited ]

I don't know why,  but it does not work for me. I mean, I can run the app in the vita using psm studio but it ignores the breakpoints, I don't know if I have to do anything special like setting the vita into "psm debug mode" like you said, How can I do that?

 

Thanks for the replys!

 

Edit: OK I did it... it was so simple I couldn't see it xD I had to select it in the dropdown list...

 

Thanks to everyone

Please use plain text.
Announcements

Welcome to the PlayStation Mobile Developer Forums


This is a community for the discussion of technical topics with other developers and SCE engineers. Posting ideas/requests are also appreciated. Join the discussion!

PlayStation®Mobile開発者フォーラムでは世界中の開発者の皆様と一緒に、議論や情報交換が可能です。SCEも議論に参加し、皆様の開発をサポートします。アイデアやリクエストも大歓迎です。ぜひご参加ください。

PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.

フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと PSM DevPortalを一度ログアウトし、再度ログインしてください。