.NET Forum / Visual Studio.NET / IDE / February 2007
Building and then attaching to process doesn't load symbols in vs 2005
|
|
Thread rating:  |
TS - 25 Jan 2007 17:19 GMT 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
WenYuan Wang - 26 Jan 2007 08:32 GMT 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
TS - 26 Jan 2007 19:43 GMT 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.
> Hi TS, > [quoted text clipped - 23 lines] > Sincerely, > Wen Yuan TS - 29 Jan 2007 16:44 GMT 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
> 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 [quoted text clipped - 35 lines] >> Sincerely, >> Wen Yuan WenYuan Wang - 30 Jan 2007 13:05 GMT 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
TS - 01 Feb 2007 14:30 GMT 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.
> Hi TS, > [quoted text clipped - 5 lines] > Best Regards, > Wen Yuan WenYuan Wang - 02 Feb 2007 13:04 GMT 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
TS - 05 Feb 2007 14:14 GMT Ok i will do that and get back to you.
I went to http://msdn.microsoft.com/newsgroups/managed/default.aspx?dg=microsoft.public.do tnet.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
> Hi TS, > Thanks for you reply, I understand it now. [quoted text clipped - 17 lines] > Best regards, > Wen Yuan WenYuan Wang - 06 Feb 2007 10:10 GMT 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
TS - 06 Feb 2007 16:31 GMT wow that is it in google groups!!!
thanks so much!!
ps i will look into the issue in this post.
> Hi TS, > Thanks for your reply. [quoted text clipped - 16 lines] > Best regards, > Wen Yuan WenYuan Wang - 07 Feb 2007 10:12 GMT 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
TS - 26 Jan 2007 22:59 GMT 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?
> Hi TS, > [quoted text clipped - 23 lines] > Sincerely, > Wen Yuan TS - 26 Jan 2007 23:06 GMT well i may be wrong about being able to debug the release build, but it does create pdb files.
>i have noticed something else, maybe related: > [quoted text clipped - 34 lines] >> Sincerely, >> Wen Yuan WenYuan Wang - 29 Jan 2007 11:03 GMT 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
Free MagazinesGet these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...
|
|
|