all groups > visual studio .net ide > january 2007 >
You're in the

visual studio .net ide

group:

Building and then attaching to process doesn't load symbols in vs 2005


Building and then attaching to process doesn't load symbols in vs 2005 TS
1/25/2007 11:19:35 AM
visual studio .net ide:
When a make a change in code, then do a ctrl shift b, then attach to my
process, my breakpoints won't be hit because symbols weren't loaded it says.

i'm running vs 2005 prof.

So what i do to fix it is to hit F5 which launches a browser and then the
breakpoints are hit. I can then stop debugging so that the new browser
closes, then do an Attach to process and it works as I desire.

why is this?

thanks

RE: Building and then attaching to process doesn't load symbols in vs 2005 v-wywang NO[at]SPAM online.microsoft.com
1/26/2007 8:32:37 AM
Hi TS,

According to your description, I understand that you cannot debug the
application when attaching to the process using VS 2005.

As far as I know, this issue is often caused by using the wrong version of
an application.

For example: We attach a process against VS 2005, and then make a change in
code, build the project will generate a new .exe file for us. But if the
application debugged and the .exe file generated by VS are not the same
file, we can not debug it after we has made some change.
Hitting F5 will cause the VS to build a new .exe file and attach this file
automatically.

Would you mind checking whether the file you debugged and the file built by
VS are the same file? Base on my experience, such issue could be caused by
the different files.

Please feel free to reply me if you have anything unclear or concerns on
this.

Hope this will help!
Sincerely,
Wen Yuan
Re: Building and then attaching to process doesn't load symbols in vs 2005 TS
1/26/2007 1:43:43 PM
The dll and pdb files both have the same timestamp. These are project
references of a class library project in the solution that is running from
the web project. Both files are identical in the bin folder of the web and
class library project.

Shutting down VS and re-opening allows me to attach normally. This means
that the files were correct all along just VS couldn't load the symbols
correctly.

[quoted text, click to view]

Re: Building and then attaching to process doesn't load symbols in vs 2005 TS
1/26/2007 4:59:01 PM
i have noticed something else, maybe related:

When the configurations of the projects are set to Release, pdb files are
still being generated and i am able to debug during release with these
pdb's. I thought this wasn't possible.

what is going on here?


[quoted text, click to view]

Re: Building and then attaching to process doesn't load symbols in vs 2005 TS
1/26/2007 5:06:04 PM
well i may be wrong about being able to debug the release build, but it does
create pdb files.


[quoted text, click to view]

Re: Building and then attaching to process doesn't load symbols in vs 2005 TS
1/29/2007 10:44:12 AM
well i'd like an answer to this. Why can't i attach to the code?

I am in debug mode when trying to attach and it just won't

[quoted text, click to view]

Re: Building and then attaching to process doesn't load symbols in vs 2005 v-wywang NO[at]SPAM online.microsoft.com (
1/29/2007 11:03:13 AM
Hi TS,
Thanks very much for your reply.

I'm afraid we could not debug the project in release mode. If we want to
debug our project, we should do it in debug mode. I think this maybe the
root cause of your issue. I'm very glad to heard this good news from you.
Then I want to check whether or not VS 2005 works fine for you in debug
mode now or you have any further questions. Please feel free to reply me
and we will follow up. I'm glad to work with you.

Have a great day!
Wen Yuan
Re: Building and then attaching to process doesn't load symbols in vs 2005 v-wywang NO[at]SPAM online.microsoft.com (
1/30/2007 1:05:00 PM
Hi TS,

I think I must have misunderstood something before.
According your description, you can not attach the code even though in
debug mode and the dll and pdb files both have the same timestamp. Could
you please clarify it for me? Many thanks.

Best Regards,
Wen Yuan
Re: Building and then attaching to process doesn't load symbols in vs 2005 TS
2/1/2007 8:30:19 AM
that is correct.

If i shut down VS 2005 and re-open and then attach to the process, the
symbols are loaded and i am able to step thru the code. This must mean that
the files are correct and debugging should occur the first time, before
shutting down and re-opening VS.

Note: The scenario is i make a code change then a ctrl shift B to
build-->then i try to attach to the process running.

[quoted text, click to view]

Re: Building and then attaching to process doesn't load symbols in vs 2005 v-wywang NO[at]SPAM online.microsoft.com (
2/2/2007 1:04:44 PM
Hi TS,
Thanks for you reply, I understand it now.

Now, in order to determine whether this issue is related to Visual Studio
or a special project.
Could you please do a sample test follow the steps as below?
1. You can create a new project.
2. Add some code into project and then build this project.
3. Attach this process by your Visual Studio.
4. Make some change , build(Ctrl shift B) and then attach this process
again.
If this works fine, that means, this issue is related to your special
project.
Otherwise, there must be something wrong with your Visual Studio.

Please kindly tell me know the result and I will perform more research on
it. I'm very glad to assist you.

Have a great weekend.
Best regards,
Wen Yuan
Re: Building and then attaching to process doesn't load symbols in vs 2005 TS
2/5/2007 8:14:08 AM
Ok i will do that and get back to you.

I went to
http://msdn.microsoft.com/newsgroups/managed/default.aspx?dg=microsoft.public.dotnet.framework.aspnet
but can't figure out how i can view ***EVERY*** post i have made to all of
the
newsgroups.

I need to find a previous post to do my work.

Is there a way to search the entire newsgroups as a whole instead of
individual ones?

Also, i know how to search by a particular author, but it only brings up
posts within the past 1-2 years. How do i see the older ones?


thanks


[quoted text, click to view]


Re: Building and then attaching to process doesn't load symbols in vs 2005 v-wywang NO[at]SPAM online.microsoft.com (
2/6/2007 10:10:14 AM
Hi TS,
Thanks for your reply.

I noticed Outlook Express supports the feature sorting by "From".
Would you mind trying with Outlook Express?
About how to use Outlook Express, you can reference the following article.
http://www.microsoft.com/windows/ie/support/newsgroups/howto.mspx
[Internet Explorer Newsgroup Setup Instructions]

Base on my experience, the post older than 2 years will be deleted and we
can not read it both on http://msdn.microsoft.com/newsgroups/managed/
website and Outlook Express.
But I think you may get it by Google Groups. In Google Groups, search one
post owned by you , and then click "View Profile" beside your name. All the
post will be listed in your profile page.

I hope this will help.
Best regards,
Wen Yuan
Re: Building and then attaching to process doesn't load symbols in vs 2005 TS
2/6/2007 10:31:32 AM
wow that is it in google groups!!!

thanks so much!!

ps i will look into the issue in this post.


[quoted text, click to view]

Re: Building and then attaching to process doesn't load symbols in vs 2005 v-wywang NO[at]SPAM online.microsoft.com (
2/7/2007 10:12:47 AM
Hi TS,

Great! I'm so glad to hear my suggestion is helpful for you.:)
I'm waiting for your further feedback.

Have a good day!
Best Regards,
Wen Yuan
AddThis Social Bookmark Button