debugnet is a vita small library to debug your homebrew code over udp. It is the same method that i use to debug PlayStation 3 code, so i can use the same host tools for PlayStation Vita and PlayStation 3 to do it.
- Compile and install library and include file
You need the new vita toolchain installed in your environment VITASDK must be defined.
Experimental build scripts tested with osx are in:
[vitasdk-buildscripts] (https://github.com/psxdev/vitasdk-buildscripts)
After install it replace crt0.o from arm-vita-eabi/lib with this one than you has in build-native/newlib/arm-vita-eabi/newlib/libc/sys/vita/crt0.o is inside of directory that you are using to compiling the toolchain
Toolchain is work in progress but it's time to switch to vitasdk
cd libdebugnet
make
make install
- Compile sample
cd sample
edit main.c and change your server ip and port to listen udp messages from PlayStation Vita
make
- Open a terminal and execute (change port if you don't use 18194). It can be in osx, linux or if you have socat like tool on windows
socat udp-recv:18194 stdout
- Execute sample with rejuvenate
You will see in socat terminal window output from your PlayStation Vita:
debugnet initialized
Copyright (C) 2010,2015 Antonio Jose Ramos Marquez aka bigboss @psxdev
This Program is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
ready to have a lot of fun...
[DEBUG]: Test debug level 1
[ERROR]: Test error level 1
[INFO]: Test info level 1
- ready to have a lot of fun :P and switch to vitasdk
Special thanks goes to:
- yifanlu to open the doors with rejuvenate.
- All people who collaborated in #PSP2SDK: @17310, @xerpi(i stole you network initialization code :P from FTPVita), @frangar , @frtomtomdu80, @hykemthedemon , @SMOKE587, @Josh_Axey ...
- All ps3dev and ps2dev old comrades
- xyzz for help with vita toolchain