So I tried the different debugging techniques, but the problem is that not any exception are thrown out, so impossible to catch them.
Here is my code...
Code:
try:
# Actual program is here.
#Code implementation
menu=appuifw.app.menu=[ (u"Quit",quit),
(u"Connect",connect),
(u"Start Thread",launchThread)]
# Set up the server:
server = socket.socket ( socket.AF_BT, socket.SOCK_STREAM )
adress='00:0e:9b:d9:5d:a2'
app_lock=e32.Ao_lock()
appuifw.app.exit_key_handler=quit
print 'Connection starting...'
server.connect((adress,1))
#time=server.gettimeout()
#print 'Time out', time
print 'Wait to be connected...'
e32.ao_sleep(5) #wait to be sure to be connected
print 'Connected...'
ClientThread ( server, adress ).start()
print 'wait before going to wait!'
e32.ao_sleep(10)
print 'wait now hoping thread launched'
app_lock.wait()
#End of program
1 / 0
except:
import sys
import traceback
import e32
import appuifw
appuifw.app.screen="normal" # Restore screen to normal size.
appuifw.app.focus=None # Disable focus callback.
body=appuifw.Text()
appuifw.app.body=body # Create and use a text control.
applock=e32.Ao_lock()
def quit():applock.signal()
appuifw.app.exit_key_handler=quit # Override softkey handler.
appuifw.app.menu=[(u"Exit", quit)] # Override application menu.
body.set(unicode("\n".join(traceback.format_exception(*sys.exc_info()))))
applock.wait() # Wait for exit key to be pressed.
appuifw.app.set_exit()
As u can see, i tried to put some temporisation to be sure everything is started, but anyway after seeing on the console the message: Received connection blabla, then everything freezes, i can barely go back to the menu of the nokia n95, and anyway python shell doesnt work any more, and still no error message?!
Anyone idea? 

cheers,
fran