Re: attach to process not started in debug mode?



Hi Les,

Thank you for providing the background infomation!

Yes, you may install the VS Express on the production server and use the VS
debugger to launch the application waiting for the hang. When the hang
appears in the debuggee, you may press Ctrl+Break in VS Express debugger to
stop the hang application. In the Call Stack window, you may get the hang
call stack of your application(remember to switch to the hang thread in the
Threads window). Note: to get the full stack trace of the hang, you may
need to disable the "Just My Code" feature of VS2005 debugger(the default
setting is on). Please refer to the link below for details:
"How to: Step Into Just My Code"
http://msdn2.microsoft.com/en-us/library/h5e30exc.aspx
"Is 'Just my Code' for you?"
http://blogs.msdn.com/greggm/archive/2004/07/29/201315.aspx

Actually, due to the big footprint of Visual Studio, it would be better to
use windbg or Process Explorer to troubleshoot the hang problem. My blog
entry below demonstrated the detailed steps:
"How to debug application crash/hang in production environment?"
http://blogs.msdn.com/msdnts/archive/2006/11/24/how-to-debug-application-cra
sh-hang-in-production-environment.aspx

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


.



Relevant Pages

  • RE: Debugger hangs when breaking into event handler
    ... have you set the symbol server in your VS2005 debugger? ... there are 2 types of hang: low CPU hang and high CPU hang. ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.debugging)
  • Re: attach to process not started in debug mode?
    ... you may install the VS Express on the production server and use the VS ... debugger to launch the application waiting for the hang. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework)
  • Re: Please Help with FREEZING Computer
    ... Event Source: Application Error ... see Help and Support Center at ... Event Source: Application Hang ... Hanging application iexplore.exe, version 6.0.2800.1106, hang module ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Not Responding errors
    ... Event Type: Error Event Source: Automatic LiveUpdate Scheduler Event ... Select, Start, Help and Support, Keep your ... Event Source: Application Hang ...
    (microsoft.public.windowsxp.help_and_support)
  • RE: Problem with Process.GetCurrentProcess() when starting a servi
    ... Then I used the VS.net2003 debugger to attach the Windows Service process ... By breaking the process while hang several times, ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.general)