Trac is being migrated to new services! Issues can be found in our new
YouTrack instance and WIKI pages can be found on our
website.
- Timestamp:
-
Apr 2, 2008, 4:03:30 AM (16 years ago)
- Author:
-
dave1g
- Comment:
-
addresses the comments in #3654 sorry it took forever to add this. inline comments might not be neccessary but helpful to windows scripting noobs like myself
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v15
|
v16
|
|
29 | 29 | This will cause the debug output to be saved in a file called `debug.log`. |
30 | 30 | |
| 31 | == Preemptive Debug Logging == |
| 32 | Pidgin just hiccuped, you want to file a ticket but you wish you had saved the debug log don't you? Here is a script to have it made for you all the time. |
| 33 | |
| 34 | Copy this to a *.bat file in your pidgin install directory and use a shortcut to it instead of pidgin.exe when starting pidgin. To make it even less intrusive you can change the icon to the pidgin icon and set the command window to open minimized in the properties of the shortcut (right click -> properties ) |
| 35 | {{{ |
| 36 | @ECHO off |
| 37 | REM stay quiet |
| 38 | |
| 39 | REM make sure the debug directory exists |
| 40 | IF NOT EXIST debug mkdir debug |
| 41 | |
| 42 | REM get the date and time |
| 43 | SET dt=%date%_%time% |
| 44 | |
| 45 | REM save the nice formatting |
| 46 | SET odt=%date% %time% |
| 47 | |
| 48 | REM replace the / with - |
| 49 | SET dt=%dt:/=-% |
| 50 | |
| 51 | REM replace the ' ' with 0 |
| 52 | SET dt=%dt: =0% |
| 53 | |
| 54 | REM replace the : with . |
| 55 | SET dt=%dt::=.% |
| 56 | |
| 57 | REM remove the first 4 characters which are the day plus a space |
| 58 | SET dt=%dt:~4% |
| 59 | |
| 60 | REM build the logfile name |
| 61 | SET logfile="debug\%dt%.log" |
| 62 | |
| 63 | REM remove the space that gets created for some reason... |
| 64 | SET logfile=%logfile: =% |
| 65 | |
| 66 | REM write a nice header |
| 67 | ECHO ------------------------------------------------- > %logfile% |
| 68 | ECHO Pidgin Debug Log For %odt% >> %logfile% |
| 69 | ECHO ------------------------------------------------- >> %logfile% |
| 70 | |
| 71 | REM start pidgin without an extra command window |
| 72 | START /B pidgin -d >> %logfile% |
| 73 | |
| 74 | REM close this command window |
| 75 | EXIT |
| 76 | }}} |
| 77 | |
31 | 78 | = All Other Users = |
32 | 79 | See our [wiki:GetABacktrace Getting a Backtrace] page. |
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!