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.

Changes between Version 15 and Version 16 of TipsForBugReports


Ignore:
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
  • TipsForBugReports

    v15 v16  
    2929This will cause the debug output to be saved in a file called `debug.log`.
    3030
     31== Preemptive Debug Logging ==
     32Pidgin 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
     34Copy 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
     37REM stay quiet
     38
     39REM make sure the debug directory exists
     40IF NOT EXIST debug mkdir debug
     41
     42REM get the date and time
     43SET dt=%date%_%time%
     44
     45REM save the nice formatting
     46SET odt=%date% %time%
     47
     48REM replace the / with -
     49SET dt=%dt:/=-%
     50
     51REM replace the ' ' with 0
     52SET dt=%dt: =0%
     53
     54REM replace the : with .
     55SET dt=%dt::=.%
     56
     57REM remove the first 4 characters which are the day plus a space
     58SET dt=%dt:~4%
     59
     60REM build the logfile name
     61SET logfile="debug\%dt%.log"
     62
     63REM remove the space that gets created for some reason...
     64SET logfile=%logfile: =%
     65
     66REM write a nice header
     67ECHO ------------------------------------------------- > %logfile%
     68ECHO Pidgin Debug Log For %odt% >> %logfile%
     69ECHO ------------------------------------------------- >> %logfile%
     70
     71REM start pidgin without an extra command window
     72START /B pidgin -d >> %logfile%
     73
     74REM close this command window
     75EXIT
     76}}}
     77
    3178= All Other Users =
    3279See 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!