Re: Question on Remote Debugging Manged Code




> I have read the MSDN documentation and KB articles about setting up remote
> debugging environment and configured corresponding firewall setting. We have
> also installed full remote debugging support on the remote machines. We
> connected to the remote machines through TCP/IP and successfully attached
> the debugger to the remote processes.

Here is the reason - TCP/IP transport only allows to do unmanaged debugging.
The only option for managed debugging is to use DCOM transport (which is
called "Default" in Processes dialog).

> However, the "Module Window" in VS IDE
> show that it failed to "load native symbols from symbol files" for those
> managed assemblies.
>
> Up to this point, I got three question:
> 1. Is it possible to debug managed code remotely?

Yes, via Default (DCOM) transport.

> 2. As it is written in managed code, why it tried to load natvie symbol
> instead of loading them from pdb files?

Because debugging started in native mode.

> 3. If possible, how to load the .pdb files so that the debugger can show
> meaningful information?
>

In addition to using the proper transport, make sure that symbols (.pdb files)
are available on the remote machine (remote debugging of managed applications
requires that). Or a network share can be setup to store symbols, of course.

> In addition to that, after attaching the debugger to the remote processes,
> we tried to break the program through the VS IDE and the processes was
> pasused. However, if we set some breakpoints before compilation and attach
> the debugger again, those breakpoints are skipped. Why would this happen?
>

Because there were no proper symbols for the components.

Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]



.



Relevant Pages

  • *****UNABLE TO MAP THE DEBUG START PAGE URL TO A MACHINE NAME - HELL ON EARTH - PLEASE HELP!
    ... ASP.Net debugging through a firewall. ... Terminal Services to log into the remote server and debug locally. ... "Were the proper setup programs run to install ASP.NET or ATL Server ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Remote Debugging Problems w/ VS.net 2005 SP1
    ... debugging. ... The Visual Studio 2005 Remote Debugger service is started on the remote ... database server that I want to debug SQL code on as Local System. ... firewall exceptions on my workstation. ...
    (microsoft.public.sqlserver.tools)
  • Re: Remote debugging a mixed DLL
    ... But when i do the local debugging i can put breakpoints. ... am doing the remote debugging i also copied the binaries to the execution ... the modules window that it's loading the correct pdb from the remote machine. ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.debugging)
  • Re: Any ideas?
    ... Remote debugging would be prefect, could you give me advice on how to do ... I have a app that runs fine on my deve machine, in debug oe or straight ... This form is a directx scene. ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: Building a Release of my Solution
    ... That doesn't equate to the full debugging which is enabled in web.config, ... which generates *.pdb files for true debugging, i.e., setting breakpoints, etc. ... To enable full debugging you need to have the debug symbols generated. ...
    (microsoft.public.dotnet.framework.aspnet)