The JPL LaRS lab provides a couple of documents on coding standards and monitoring, and NODIS has a document on Software Engineering Requirements. The Workshops on Spacecraft Flight Software also offers a couple of slideshow presentations.
I find this topic very interesting (how would you debug a piece of code that is executing on a different planet?), but unfortunately there are not that many related questions (and answers!) on Programmers.
What about the Soviet space program?