Debugger Logging

Hi,

I think I know the answer, but am desperate, so wanted to check! I am writing a data field which needs plenty of data executed through it for testing. I have lots of personal FIT files (some of them over 6 hours of riding) to test with, and currently I am logging to the console (with println) but have found two problems.
1. It seems to stop logging: the simulator is working however nothing is appearing in the console. If I tab backwards and forward it restarts and you can see the log jump (with a gap in recording)
2. The console can overfill quickly

Therefore I want to be able to log to a file, and can't find a way. Initially for just the simulator, so a 'fileln' version of println.

Can this be done, if not a feature request?

Cheers
Chris
  • Former Member
    Former Member over 9 years ago
    You can use the monkeydo script included in the SDK to run an app in the simulator from the command line (this is what the eclipse plugin uses). On Windows, you can pipe command line output to a file directly.

    monkeydo myApp.prg > logfile.txt
  • Of course, thanks, brilliant.

    I did notice a peculiarity, that normally (for devices) I get Initialize called again when I change measurement units. However this didn't happen using the basic simulator.

    Cheers
    Chris