473,398 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Attach to Process

I see some references on debugging by attaching to a process. There are
MSDN articles that show how to attach to a process for debugging. However,
I can find no info on how exactly to get the debugging to work.

I have a wizard page in the anonymous section of my website. If I run it as
the startup page in VS it runs fine. But if I link to it from an external
link, it gets "object reference not set to an instance of an object" when I
try to navigate to wizard step 2.

I was hoping to use the attach to process to debug this situation but
nothing I try works. How can I step through code this way?
Thanks,
Gary

Nov 3 '08 #1
6 3199
With web apps, you need to get the debugger attached prior to entering the
cycle for a particular piece of functionality. If you are using a wizard,
you cannot attach after you start the wizard, as some of the context is not
available to the debugger. If this page has to be your starting point,
attach and then start again.

If this is not your issue, post back and we can see if we can work through
this.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"GaryDean" <gd**********@newsgroup.nospamwrote in message
news:OW**************@TK2MSFTNGP03.phx.gbl...
>I see some references on debugging by attaching to a process. There are
MSDN articles that show how to attach to a process for debugging. However,
I can find no info on how exactly to get the debugging to work.

I have a wizard page in the anonymous section of my website. If I run it
as the startup page in VS it runs fine. But if I link to it from an
external link, it gets "object reference not set to an instance of an
object" when I try to navigate to wizard step 2.

I was hoping to use the attach to process to debug this situation but
nothing I try works. How can I step through code this way?
Thanks,
Gary
Nov 4 '08 #2
Hello Gary,

Do you mean you're using the ASP.NET Wizard control on the page? If so
please refer to the following article. It demonstrates how to debug the
source code:

http://blogs.msdn.com/sburke/archive...sual-studio-to
-debug-net-framework-source-code.aspx

Please let me know if it works. If my understanding is wrong please correct
me and clarify the problem.

Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 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. 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/en-us/subs.../aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: "GaryDean" <gd**********@newsgroup.nospam>
| Subject: Attach to Process
| Date: Mon, 3 Nov 2008 14:39:14 -0700
| Lines: 14
| MIME-Version: 1.0
| Content-Type: text/plain;
| format=flowed;
| charset="iso-8859-1";
| reply-type=original
| Content-Transfer-Encoding: 7bit
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
| X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049
| Message-ID: <OW**************@TK2MSFTNGP03.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: ip68-110-7-92.tc.ph.cox.net 68.110.7.92
| Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSF TNGP03.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:79140
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I see some references on debugging by attaching to a process. There are
| MSDN articles that show how to attach to a process for debugging.
However,
| I can find no info on how exactly to get the debugging to work.
|
| I have a wizard page in the anonymous section of my website. If I run it
as
| the startup page in VS it runs fine. But if I link to it from an
external
| link, it gets "object reference not set to an instance of an object" when
I
| try to navigate to wizard step 2.
|
| I was hoping to use the attach to process to debug this situation but
| nothing I try works. How can I step through code this way?
| Thanks,
| Gary
|
|

Nov 4 '08 #3
Actually my question has to do with how to debug and step through managed
CLR code applications that are running by themselves - not in visual studio
debugger. I know how to debug and step through code in Visual Studio -
That's easy. There are lots of reasons for this...

Program that blows when running by itsself but not when in VS
Debuging a System Service
Debuging a WCF service that's only failing in production

Googling around I see a lot about DbgClr.exe and attaching to processes.
However I notice that DbgClr.exe no longer comes with VS2008 so I'm thinking
there is a better way. Yet I notice that if I go to
http://msdn.microsoft.com/en-us/library/7zxbks7z.aspx which is 3.5 it still
talks about DbgClr.exe. So, before I dive into learning a method I wanted
to make sure I am using the best and most effective method.
Thanks,
Gary

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:%2****************@TK2MSFTNGP04.phx.gbl...
With web apps, you need to get the debugger attached prior to entering the
cycle for a particular piece of functionality. If you are using a wizard,
you cannot attach after you start the wizard, as some of the context is
not available to the debugger. If this page has to be your starting point,
attach and then start again.

If this is not your issue, post back and we can see if we can work through
this.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"GaryDean" <gd**********@newsgroup.nospamwrote in message
news:OW**************@TK2MSFTNGP03.phx.gbl...
>>I see some references on debugging by attaching to a process. There are
MSDN articles that show how to attach to a process for debugging.
However, I can find no info on how exactly to get the debugging to work.

I have a wizard page in the anonymous section of my website. If I run it
as the startup page in VS it runs fine. But if I link to it from an
external link, it gets "object reference not set to an instance of an
object" when I try to navigate to wizard step 2.

I was hoping to use the attach to process to debug this situation but
nothing I try works. How can I step through code this way?
Thanks,
Gary
Nov 7 '08 #4
Actually my question has to do with how to debug and step through managed
CLR code applications that are running by themselves - not in visual studio
debugger. I know how to debug and step through code in Visual Studio -
That's easy. There are lots of reasons for this...

Program that blows when running by itsself but not when in VS
Debuging a System Service
Debuging a WCF service that's only failing in production

Googling around I see a lot about DbgClr.exe and attaching to processes.
However I notice that DbgClr.exe no longer comes with VS2008 so I'm thinking
there is a better way. Yet I notice that if I go to
http://msdn.microsoft.com/en-us/library/7zxbks7z.aspx which is 3.5 it still
talks about DbgClr.exe. So, before I dive into learning a method I wanted
to make sure I am using the best and most effective method.
Thanks,
Gary

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:%2****************@TK2MSFTNGP04.phx.gbl...
With web apps, you need to get the debugger attached prior to entering the
cycle for a particular piece of functionality. If you are using a wizard,
you cannot attach after you start the wizard, as some of the context is
not available to the debugger. If this page has to be your starting point,
attach and then start again.

If this is not your issue, post back and we can see if we can work through
this.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"GaryDean" <gd**********@newsgroup.nospamwrote in message
news:OW**************@TK2MSFTNGP03.phx.gbl...
>>I see some references on debugging by attaching to a process. There are
MSDN articles that show how to attach to a process for debugging.
However, I can find no info on how exactly to get the debugging to work.

I have a wizard page in the anonymous section of my website. If I run it
as the startup page in VS it runs fine. But if I link to it from an
external link, it gets "object reference not set to an instance of an
object" when I try to navigate to wizard step 2.

I was hoping to use the attach to process to debug this situation but
nothing I try works. How can I step through code this way?
Thanks,
Gary
Nov 7 '08 #5
Hello Gary,

From your description I think you mainly have two questions.

1. What the best and most effective way is to troubleshoot "object
reference not set to an instance of an object" issue that is mentioned in
your initial post. In your project you're using ASP.NET Wizard control and
this exception is thrown when you navigate to wizard step 2.

2. Where you can get DbgClr.exe for Visual Studio 2008.

As to your first issue the most effective way to troubleshoot is to use
Visual Studio to debug. Actually by checking the call stack we may diagnose
most of this kind of problems. You can also send a demo project to me. I'll
debug on my side to see what the problem is. My email is
v-******@microsoft.com.

As to your second question, the DbgClr doesn't ship with the SDK anymore.
You can use MDbg instead:
http://forums.microsoft.com/msdn/Sho...18151&SiteID=1
http://msdn.microsoft.com/en-us/library/ms229861.aspx

In addition, to diagnose the problems we have other choices. For example we
can enable tracing to diagnose WCF issues:
http://msdn.microsoft.com/en-us/library/ms733025.aspx

If you have further questions please feel free to ask.

Regards,
Allen Chen
Microsoft Online Support

--------------------
| From: "GaryDean" <gd**********@newsgroup.nospam>
| References: <OW**************@TK2MSFTNGP03.phx.gbl>
<#d**************@TK2MSFTNGP04.phx.gbl>
| In-Reply-To: <#d**************@TK2MSFTNGP04.phx.gbl>
| Subject: Re: Attach to Process
| Date: Thu, 6 Nov 2008 17:30:59 -0700
| Lines: 59
| MIME-Version: 1.0
| Content-Type: text/plain;
| format=flowed;
| charset="iso-8859-1";
| reply-type=response
| Content-Transfer-Encoding: 7bit
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
| X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049
| Message-ID: <eV**************@TK2MSFTNGP03.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: ip68-110-7-92.tc.ph.cox.net 68.110.7.92
| Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSF TNGP03.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:79378
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Actually my question has to do with how to debug and step through managed
| CLR code applications that are running by themselves - not in visual
studio
| debugger. I know how to debug and step through code in Visual Studio -
| That's easy. There are lots of reasons for this...
|
| Program that blows when running by itsself but not when in VS
| Debuging a System Service
| Debuging a WCF service that's only failing in production
|
| Googling around I see a lot about DbgClr.exe and attaching to processes.
| However I notice that DbgClr.exe no longer comes with VS2008 so I'm
thinking
| there is a better way. Yet I notice that if I go to
| http://msdn.microsoft.com/en-us/library/7zxbks7z.aspx which is 3.5 it
still
| talks about DbgClr.exe. So, before I dive into learning a method I
wanted
| to make sure I am using the best and most effective method.
| Thanks,
| Gary
|
| "Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
| message news:%2****************@TK2MSFTNGP04.phx.gbl...
| With web apps, you need to get the debugger attached prior to entering
the
| cycle for a particular piece of functionality. If you are using a
wizard,
| you cannot attach after you start the wizard, as some of the context is
| not available to the debugger. If this page has to be your starting
point,
| attach and then start again.
| >
| If this is not your issue, post back and we can see if we can work
through
| this.
| >
| --
| Gregory A. Beamer
| MVP, MCP: +I, SE, SD, DBA
| >
| Subscribe to my blog
| http://feeds.feedburner.com/GregoryBeamer#
| >
| or just read it:
| http://feeds.feedburner.com/GregoryBeamer
| >
| ********************************************
| | Think outside the box! |
| ********************************************
| "GaryDean" <gd**********@newsgroup.nospamwrote in message
| news:OW**************@TK2MSFTNGP03.phx.gbl...
| >>I see some references on debugging by attaching to a process. There
are
| >>MSDN articles that show how to attach to a process for debugging.
| >>However, I can find no info on how exactly to get the debugging to work.
| >>
| >I have a wizard page in the anonymous section of my website. If I run
it
| >as the startup page in VS it runs fine. But if I link to it from an
| >external link, it gets "object reference not set to an instance of an
| >object" when I try to navigate to wizard step 2.
| >>
| >I was hoping to use the attach to process to debug this situation but
| >nothing I try works. How can I step through code this way?
| >Thanks,
| >Gary
| >
|
|

Nov 7 '08 #6
Hello Gary,

Do you have any other questions?

Regards,
Allen Chen
Microsoft Online Community Support
--------------------
| From: "GaryDean" <gd**********@newsgroup.nospam>
| References: <OW**************@TK2MSFTNGP03.phx.gbl>
<#d**************@TK2MSFTNGP04.phx.gbl>
| In-Reply-To: <#d**************@TK2MSFTNGP04.phx.gbl>
| Subject: Re: Attach to Process
| Date: Thu, 6 Nov 2008 17:30:59 -0700
| Lines: 59
| MIME-Version: 1.0
| Content-Type: text/plain;
| format=flowed;
| charset="iso-8859-1";
| reply-type=response
| Content-Transfer-Encoding: 7bit
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
| X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049
| Message-ID: <eV**************@TK2MSFTNGP03.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: ip68-110-7-92.tc.ph.cox.net 68.110.7.92
| Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSF TNGP03.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:79378
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Actually my question has to do with how to debug and step through managed
| CLR code applications that are running by themselves - not in visual
studio
| debugger. I know how to debug and step through code in Visual Studio -
| That's easy. There are lots of reasons for this...
|
| Program that blows when running by itsself but not when in VS
| Debuging a System Service
| Debuging a WCF service that's only failing in production
|
| Googling around I see a lot about DbgClr.exe and attaching to processes.
| However I notice that DbgClr.exe no longer comes with VS2008 so I'm
thinking
| there is a better way. Yet I notice that if I go to
| http://msdn.microsoft.com/en-us/library/7zxbks7z.aspx which is 3.5 it
still
| talks about DbgClr.exe. So, before I dive into learning a method I
wanted
| to make sure I am using the best and most effective method.
| Thanks,
| Gary
|
| "Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
| message news:%2****************@TK2MSFTNGP04.phx.gbl...
| With web apps, you need to get the debugger attached prior to entering
the
| cycle for a particular piece of functionality. If you are using a
wizard,
| you cannot attach after you start the wizard, as some of the context is
| not available to the debugger. If this page has to be your starting
point,
| attach and then start again.
| >
| If this is not your issue, post back and we can see if we can work
through
| this.
| >
| --
| Gregory A. Beamer
| MVP, MCP: +I, SE, SD, DBA
| >
| Subscribe to my blog
| http://feeds.feedburner.com/GregoryBeamer#
| >
| or just read it:
| http://feeds.feedburner.com/GregoryBeamer
| >
| ********************************************
| | Think outside the box! |
| ********************************************
| "GaryDean" <gd**********@newsgroup.nospamwrote in message
| news:OW**************@TK2MSFTNGP03.phx.gbl...
| >>I see some references on debugging by attaching to a process. There
are
| >>MSDN articles that show how to attach to a process for debugging.
| >>However, I can find no info on how exactly to get the debugging to work.
| >>
| >I have a wizard page in the anonymous section of my website. If I run
it
| >as the startup page in VS it runs fine. But if I link to it from an
| >external link, it gets "object reference not set to an instance of an
| >object" when I try to navigate to wizard step 2.
| >>
| >I was hoping to use the attach to process to debug this situation but
| >nothing I try works. How can I step through code this way?
| >Thanks,
| >Gary
| >
|
|

Nov 13 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: donall | last post by:
i have a DLL which implements a HTTP handler, written in C#, and have deployed it on IIS 5.0, on XP service pack 2. six months ago, i was able to debug it by attaching CLR to the process...
7
by: Devron Blatchford | last post by:
Hi there, I am trying to develop a small menu application to run on an RF network, we are using a wavelink server to communicate with our rf scanners and run VB.NET applications on our server...
9
by: ME | last post by:
I have a application that someone else has wrote that runs in a console window. It does not take parameters, but when running it asks three questions and then exits. I would like to write a small...
1
by: Martin Simard | last post by:
Hi all, In VS 2003, when I attach to a remote process for debugging, I can see the list of modules loaded by the process before attaching to it. This list is not there anymore in VS 2005....
1
by: SenthilVel | last post by:
Hi I have a question when debugging dotnet code when attaching vb6.exe code to this process. i get an error like : unable to attach the process. there is no managed code running in the...
5
by: Kees de Winter | last post by:
Is it possible to attach the VS2005 debugger to an already running, and published website? If I choose "Attach to process" from the menu and then select the right process, set breakpoints, run the...
0
by: Samuel R. Neff | last post by:
How can I attach the active debugger to a newly launched process? For example, what goes in the if statement in the following code: Process process = new Process();...
3
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Hello, friends, I am using .net 2005 to develope a web service based application. When accessing web services from client side, I always attach aspnet process to have a step by step debugging. ...
0
by: DR | last post by:
Unable to start TSQL Debugging. Could not attach to SQL Server Process on 'srvname'. The RPC server is unavailable. I get this error when I try to run a SQL Server Project with a CLR stored...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.