Try to setup a telnet session as described in the wiki. Then you can try writing to stdout and track progress of execution.
From my limited experience, it seems that the gp2xmenu program has to be executed after your own software finishes or else it will appear to freeze. So if you got an error...