Attach to running process?

  • Thread starter Thread starter Kees de Winter
  • Start date Start date
K

Kees de Winter

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 code, nothing happens.


Thanks for your help.
 
Yes it's on the same server (development), I am attaching to the process
IEXPLORE.EXE (although attaching to aspnet_wp.exe or inetinfo.exe didn't
help as well). In VS in the margin of the breakpoint it says "The breakpoint
will not currently be hit. No symbols have been loaded for this document".

Thanks
--
Kees

Eliyahu Goldin said:
Is your VS and the website on the same sever? What process are you attaching
to?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
 
IE runs the html and javascripts it gets from the site and knows nothing
about asp.net. The correct process is aspnet_wp.exe. What do you observe
when attaching to it? Do you have
<compilation debug="true"/> in the web.config file?


--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


Kees de Winter said:
Yes it's on the same server (development), I am attaching to the process
IEXPLORE.EXE (although attaching to aspnet_wp.exe or inetinfo.exe didn't
help as well). In VS in the margin of the breakpoint it says "The
breakpoint
will not currently be hit. No symbols have been loaded for this document".

Thanks
--
Kees

Eliyahu Goldin said:
Is your VS and the website on the same sever? What process are you attaching
to?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


Kees de Winter said:
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 code, nothing happens.


Thanks for your help.
 
Hi Eliyahu,

Yes, I have <compilation debug="true"/> in the web.config file.

When I attach to aspnet_wp.exe, VS goes into sort of 'debug mode' (the stop
and pause buttons appear). But never is any breakpoint "triggered" in the
code-behind files when I call these pages in a browser.

I understand I need to compile with symbolic information prior to debugging.
There are no warnings of missing symbol info, but I also see no .pdb files
in my project. If I simply run by hitting F5 the breakpoints work fine. I
don't know what to look for now...

--
Kees


Eliyahu Goldin said:
IE runs the html and javascripts it gets from the site and knows nothing
about asp.net. The correct process is aspnet_wp.exe. What do you observe
when attaching to it? Do you have
<compilation debug="true"/> in the web.config file?


--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


Kees de Winter said:
Yes it's on the same server (development), I am attaching to the process
IEXPLORE.EXE (although attaching to aspnet_wp.exe or inetinfo.exe didn't
help as well). In VS in the margin of the breakpoint it says "The
breakpoint
will not currently be hit. No symbols have been loaded for this document".

Thanks
--
Kees

Eliyahu Goldin said:
Is your VS and the website on the same sever? What process are you attaching
to?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


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 code, nothing happens.


Thanks for your help.
 
Anyone?
Any help appreciated.

--
Kees


Kees de Winter said:
Hi Eliyahu,

Yes, I have <compilation debug="true"/> in the web.config file.

When I attach to aspnet_wp.exe, VS goes into sort of 'debug mode' (the stop
and pause buttons appear). But never is any breakpoint "triggered" in the
code-behind files when I call these pages in a browser.

I understand I need to compile with symbolic information prior to debugging.
There are no warnings of missing symbol info, but I also see no .pdb files
in my project. If I simply run by hitting F5 the breakpoints work fine. I
don't know what to look for now...

--
Kees


Eliyahu Goldin said:
IE runs the html and javascripts it gets from the site and knows nothing
about asp.net. The correct process is aspnet_wp.exe. What do you observe
when attaching to it? Do you have
<compilation debug="true"/> in the web.config file?


--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


Kees de Winter said:
Yes it's on the same server (development), I am attaching to the process
IEXPLORE.EXE (although attaching to aspnet_wp.exe or inetinfo.exe didn't
help as well). In VS in the margin of the breakpoint it says "The
breakpoint
will not currently be hit. No symbols have been loaded for this document".

Thanks
--
Kees

message Is your VS and the website on the same sever? What process are you
attaching
to?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


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 code, nothing
happens.


Thanks for your help.
 
Back
Top