Re: attach to process not started in debug mode?



Hi Les,

Thank you for the feedback.

This depends on your requirement. There are 2 types of debugging: source
code level and binary level(without source code). So, do you have the
source code for the 3rd party product?

If you have source code for it, you also have to obtain the private symbol
file from the 3rd party vendor. The debugger has no knowledge to determine
if a set of source files are associated with which assembly, so it must
first load the private symbol file for the symbol. The private symbol file
internally contains the source code path in it. So, you should set the
symbol path to the private symbol file in Tools ->Options ->Debugging
->Symbols. Note: this debugging has nothing to do with debug or release
mode. As I stated in the original post, the debug mode only does few/no
optimize with the generated assembly. It has nothing to do with debugging.

It is always good to have source code for debugging. However, since the
assembly is a 3rd party product, you may not have source code for it. That
is the reason of using binary level debugging.(Another example is debugging
..Net Framework BCL, whose source code is also not available) Even you do
not have source code, you may just perform binary level debugging with it,
since the .Net assembly metadata can self-describe its code/data. So you
can still get the full stack trace of this hang. The stack method will be
displayed in call stack window by querying the metadata.

I am not sure if my explanation has resolved your confusion. If I have
misunderstood your key concern, please feel free to tell me and explain
your concern in details. Thanks.

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: Sweet16 2.0 Public Beta 2 (2.0b17) released
    ... networking support for Marinetti, joystick support, improved graphics, ... written to take advantage of CodeWarrior features, ... I don't have debugging on in the preferences. ... I just want to look at the source code. ...
    (comp.sys.apple2)
  • Portability, blindly
    ... at that time - how to create such "debugging scaffolding" that could be ... UNIX stuff...but what's missing is the more "Linux specific" ... And, as for having the source code available...this, again, is quite ... > Unix philosophy promotes portability, ...
    (alt.lang.asm)
  • RE: Get code from a deployed site
    ... I see some of PDB files. ... only source code files are not enough. ... Microsoft MSDN Online Support Lead ... nature are best handled working with a dedicated Microsoft Support Engineer ...
    (microsoft.public.vsnet.general)
  • RE: Create an .exe at runtime with .NET 2.0
    ... you'd like to create an executable file at ... Model that enables developers of programs that emit source code ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.general)
  • RE: Get code from a deployed site
    ... only source code files are not enough. ... Microsoft MSDN Online Support Lead ... You can send feedback directly to my manager at: ... nature are best handled working with a dedicated Microsoft Support Engineer ...
    (microsoft.public.vsnet.general)