ATtiny85, ARduino IDE, TinyDebug: Error sending int values
Assuming you're using Arduino-Tiny with the hardware serial port (and I think the soft-serial port too), I think the solution should be as simple as changing your Serial.write(intVar) to Serial.print(intVar)

As far as I can tell, the write function seems to be a lower-level thing, that only works on strings. What I think is happening is that you're passing an int, and the tiny is treating that int as the pointer to a zero-terminated string, and is proceeding to print the contents of a random memory address until it finally hits a zero. 

As usual, the solution is to go to the source.

It's worth noting that I'm not sure how the actual serial library (either HardwareSerial.cpp or TinyDebugSerial.h is actually involved in the build process. I suspect it's something done in a makefile or the arduino tool, but I don't see any direct reference from either of the actual serial libraries to the print library, that I believe handles the actual formatting of arguments before passing them off to the serial libraries as a set of bytes.
The whole arduino build process is very confusing, and I have not done much C++ at all, so I'm not familiar with how inheritance works in it.