Attach to running process?

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.
 
K

Kees de Winter

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
 
E

Eliyahu Goldin

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.
 
K

Kees de Winter

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.
 
K

Kees de Winter

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top