Very good for analyzing files in hex mode!
M-x hexl
tisdag 4 oktober 2011
tisdag 28 juni 2011
måndag 10 januari 2011
Search for text in subdirs with find and grep
Search for the string "require" in all ruby files (extension .rb).
\usr\wbin\find . -name "*.rb"|xargs grep "require"
\usr\wbin\find . -name "*.rb"|xargs grep "require"
tisdag 21 december 2010
DebugView from VB6 and C#
Use System.Diagnostics.Debug.WriteLine() in C# to generate print outs that can be displayed in the excellent tool DebugView.
In VB6, use OutputDebugString().
In VB6, use OutputDebugString().
onsdag 10 november 2010
tisdag 9 november 2010
Command window here
On Windows 7:
Use SHIFT+right_click in Windows Explorer to get a lot more features. For example "Open command window here".
Use SHIFT+right_click in Windows Explorer to get a lot more features. For example "Open command window here".
tisdag 2 november 2010
Find crash dump file
On Windows XP Dr Watson is the default tool that generates crash dump files. They are sent to Microsoft if you accept the dialog box after a program crash.
Dr Watson
This is the default location for dump files: C:\Documents and Settings\All Users\Application Data\Microsoft\Dr Watson\user.dmp
To bring up the GUI: drwtsn32.exe
Use Windbg to analyze the crash dump file. Included in Windows SDK, debugging tools. The PDB-files for the crashing app is needed to make any sense of the dump file.a
In Windows 7, Dr Watson is replaced by the Action Center. Use Task Manager and right click on the process and select "Create Dump File".
Dr Watson
This is the default location for dump files: C:\Documents and Settings\All Users\Application Data\Microsoft\Dr Watson\user.dmp
To bring up the GUI: drwtsn32.exe
Use Windbg to analyze the crash dump file. Included in Windows SDK, debugging tools. The PDB-files for the crashing app is needed to make any sense of the dump file.a
In Windows 7, Dr Watson is replaced by the Action Center. Use Task Manager and right click on the process and select "Create Dump File".
Prenumerera på:
Inlägg (Atom)