Adobe 65007312 Programming Guide - Page 184
Viewing trace information using log files, Viewing trace information in a platform console
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 184 highlights
CHAPTER 9: Getting Started: A Tutorial Example Debugging your plug-in 184 6. Save your changes, and reload your plug-in if necessary. Viewing trace information using log files These steps describe how to view debugging trace information using a text editor: 1. Start Lightroom. 2. Make sure your plug-in is configured to write debugging information to a log file, as described above: local LrLogger = import 'LrLogger' local myLogger = LrLogger( 'libraryLogger' ) -- the log file name myLogger:enable( "logfile" ) function MyHWLibraryItem.outputToLog( message ) myLogger:trace( message ) end 3. Once your plug-in has generated output, look for a the output file with the name you specified and the .txt extension ("libraryLogger.txt" in this example). Z In Windows, the file is located in your My Documents folder. Z In Mac OS, the file is located in the Documents folder inside your home directory. More advanced text editors will automatically notice and update their display when the file has changed; you may want to use such a text editor. In Mac OS, you may find it simpler to open a Terminal window and use the tail command to watch the file by typing a command such as: tail -f ~/Documents/libraryLogger.txt Viewing trace information in a platform console If you choose to print debugging information by setting LrLogger:enable( "print" ), you must use a platform-specific debugging tool to view the debugging trace information. Debugging in Windows WinDbg 1. Start Lightroom. 2. Start WinDbg. 3. In WinDbg, choose File > Attach to a Process.