It sounds like you have pretty much everything set up correctly, i.e. permissions, etc. So what do you mean by
it looks like it runs? No errors are reported on the command line perhaps.
I'd recommend reducing the problem to a simplest case. Try a simple hello world program and see what happens.
I use the most powerful debugger available: print!