1. Generate dump file for hanged application:

   Option1: If you are using vista, you can simple open task manager, go to process tab, right click the hanged process and select create dump file.

   Option2: Use Visual Studio 2008(You can download a trial version from microsoft).

      a. Start VWD Express and repro the hang.

      b. Start Visual Studio

      c. In Visual Studio, click Tools | Attach to Process...

      d. In the list of processes locate VWDExpress.exe.

      e. Click Select... and explicitly choose 'Native' and 'Managed' code.

      f. Click OK and OK to close Select dialog and Attach to Process dialog.

      g. Click Debug | Break All.

      h. Click Debug | Save Dump As... to save the debug information.

   Option3: Use Windbg (If you can't get the above 2 working)

      a. goto http://www.microsoft.com/whdc/devtools/debugging/default.mspx download latest version of windbg (If OS is X86, you can go to http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx, directly)

      b. install windbg

      c. run VWD Express, and repro the hang

      d. run windbg

      e. Click Menu File->Attach To Process

      f. In the list of processes locate VWDExpress.exe.

      g. Click OK and Yes to save the workspace

      h. In the command window, type ".dump /ma c:\VWDEXpress.dmp"

2. Generate crash dump file:

   Option1: Use Visual Studio 2008(You can download a trial version from microsoft).

      a. Start VWD Express.

      b. Start Visual Studio

      c. In Visual Studio, click Tools | Attach to Process...

      d. In the list of processes locate VWDExpress.exe.

      e. Click Select... and explicitly choose 'Native' and 'Managed' code.

      f. Click OK and OK to close Select dialog and Attach to Process dialog.

      g. Go back to the VWD Express and repro the crash.

      h. Upon the crash control should go to the Visual Studio.

      i. In Visual Studio, click Debug | Save Dump As... and save the crash information. 

   Option2: Use Windbg (If you can't get the above working)

      a. goto http://www.microsoft.com/whdc/devtools/debugging/default.mspx download latest version of windbg (If OS is X86, you can go to http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx, directly)

      b. install windbg

      c. run VWD Express

      d. run windbg

      e. Click Menu File->Attach To Process

      f. In the list of processes locate VWDExpress.exe.

      g. Click OK and Yes to save the workspace

      h. In VWD Express, repro the crash

      i. In the command window, type ".dump /ma c:\VWDEXpress.dmp"

3. The dump file can be close to 400meg.  Compress it to a file around 120 meg

4. Contact us:

   Option1: Open a bug in Connect (http://connect.microsoft.com/) and attach the file there.

            This is the best option as all the bug will get treated in a timely basis.

   Option2: email us the dump with repro steps, you can find our email in some of the thread 

   Option3 (If the above 2 not working): Contact someone in the team, and we can create a FTP share for you to upload.

 

To generate dump for normal visual studio products, please follow the following two guidelines:

http://blogs.msdn.com/mikhailarkhipov/archive/2007/09/19/how-to-obtain-debug-information-from-a-hung-frozen-application.aspx

http://blogs.msdn.com/mikhailarkhipov/archive/2006/07/25/678308.aspx

 

=== 中文 ===

1. 对停止响应的VWD Express程序生成转储文件

   选项1: 如果用Vista,选择任务管理器,在进程页面中,右击停止响应的程序,选择生成“创建转储文件”。

   选项2: 使用Visual Studio 2008(你可以下载一个试用版本).

      a. 启动VWD Express,将其运行到它停止响应的状态。

      b. 启动Visual Studio 2008

      c. 在Visual Studio中,选择 工具 | 调试进程...

      d. 在进程列表里,选择VWDExpress.exe.

      e. 点击 选择... 并选择'Native' 和'Managed' 程序.

      f. 点击 确定,再次点击关于是否关闭对话框的确定

      g. 点击 调试 | 中断所有

      h. 点击 调试 | 另保存转储文件为... 来保存调试信息。

   选项3: 使用Windbg (如果上面2种方法不能用的话)

      a. 到 http://www.microsoft.com/whdc/devtools/debugging/default.mspx  下载最新版本的windbg (如果系统是X86的, 可以直接去http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx)

      b. 安装windbg

      c. 启动VWD Express,将其运行到它停止响应的状态。

      d. 运行windbg

      e. 点击菜单 File->Attach To Process

      f. 在进程列表中选择VWDExpress.exe.

      g. 点击OK,然后点击Yes 来保存工作簿。

      h. 在命令行窗口,使用下面的命令来保存转储文件 ".dump /ma c:\VWDEXpress.dmp"

 

2. 生成崩溃进程的转储文件:

   选项1: 使用Visual Studio 2008(你可以下载一个试用版本).

      a. 启动VWD Express

      b. 启动Visual Studio 2008

      c. 在Visual Studio中,选择 工具 | 调试进程...

      d. 在进程列表里,选择VWDExpress.exe. 

      e. 点击 选择... 并选择'Native' 和'Managed' 程序.

      f. 点击 确定,再次点击关于是否关闭对话框的确定

      g. 回到VWD Express,执行操作使其崩溃

      h. 在崩溃时,Visual Studio 2008会自动跳出来显示VWD Express崩溃。

      i. 点击 调试 | 另保存转储文件为... 来保存调试信息。 

   选项2: 使用Windbg (如果上面的方法不能用的话)

      a. 到 http://www.microsoft.com/whdc/devtools/debugging/default.mspx  下载最新版本的windbg (如果系统是X86的, 可以直接去http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx)

      b. 安装windbg

      c. 运行VWD Express

      d. 运行 windbg

      e. 点击菜单 File->Attach To Process

      f. 在进程列表中选择VWDExpress.exe.

      g. 点击OK,然后点击Yes 来保存工作簿。

      h. 回到VWD Express,执行操作使其崩溃

      i. 在命令行窗口,使用下面的命令来保存转储文件 ".dump /ma c:\VWDEXpress.dmp"

 

3. 转储文件可能会有400meg之多,压缩后也会有120 meg

 

4. 和我们联系:

   选项1: 在Connect网页上生成Bug(http://connect.microsoft.com/) , 并附件转储文件。这是最佳方案,上面的Bug都会经常被处理的。

   选项2: email 我们转储文件的链接。你可以在一些asp.net的论坛上找到我们的email.

   选项3 (如果上面2个不工作): 直接和我们联系,我们可以为你开一个上传文件的ftp地址。

 

如果要为Visual Studio其它SKU生成dump文件,可以参照下面的文件:

http://blogs.msdn.com/mikhailarkhipov/archive/2007/09/19/how-to-obtain-debug-information-from-a-hung-frozen-application.aspx

http://blogs.msdn.com/mikhailarkhipov/archive/2006/07/25/678308.aspx