473,320 Members | 1,817 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,320 software developers and data experts.

Unable to debug DLL with PDB files

Hi,

in VS 2003 I had no problem to debug into a dll with an existing pdb
file. In VS 2005 and also in VS 2008 I'm not able to debug into the
source code of the dll. If I try so an explorer window appears where I
have to choose the location of the source file. The pdb file lies inside
the debug output directory and belongs to the dll. I'm not sure if I
missed some settings or what else can be wrong.
Hope someone has an idea because attaching the project directly is not
possible (remoting issues).

Thanks in advance
Martin
Feb 28 '08 #1
7 5696
Martin,

I am making a guess here.
It could be that the target runtime your exe uses (2.0 or above) could
be different from the framework version you made build using (1.0 or
1.1)
or, the DLL could be latest (with code changes) & not in sync with
pdb.

MVPs can comment things more appropriately.

Kalpesh
Feb 28 '08 #2
Hi,

sh***********@gmail.com schrieb:
Martin,

I am making a guess here.
It could be that the target runtime your exe uses (2.0 or above) could
be different from the framework version you made build using (1.0 or
1.1)
or, the DLL could be latest (with code changes) & not in sync with
pdb.

MVPs can comment things more appropriately.

Kalpesh
I had the guesses, too. The target runtime is the same, the pdb fit to
their dll, even the source code lies on the same disk location. I'm
really at a loss.

Thanks and greets
Martin
Feb 28 '08 #3
On Feb 28, 8:23 am, Martin Horst <pub1-R...@martinhorst.dewrote:
Hi,

shahkalpes...@gmail.com schrieb:
Martin,
I am making a guess here.
It could be that the target runtime your exe uses (2.0 or above) could
be different from the framework version you made build using (1.0 or
1.1)
or, the DLL could be latest (with code changes) & not in sync with
pdb.
MVPs can comment things more appropriately.
Kalpesh

I had the guesses, too. The target runtime is the same, the pdb fit to
their dll, even the source code lies on the same disk location. I'm
really at a loss.

Thanks and greets
Martin
If you open up the Modules window of VS 2005 it tells shows you which
symbols are loaded and if they are not then it tells you why not.
Feb 28 '08 #4
Hi,

wi*****@googlemail.com schrieb:
On Feb 28, 8:23 am, Martin Horst <pub1-R...@martinhorst.dewrote:
>Hi,
...

If you open up the Modules window of VS 2005 it tells shows you which
symbols are loaded and if they are not then it tells you why not.
I you can tell where I can find the "modules window", that whould be
nice. Do you mean the object browser, because I can't find anything like
"module window".

Best regards
Martin
Feb 28 '08 #5
On Feb 28, 10:16 am, Martin Horst <pub1-R...@martinhorst.dewrote:
If you open up the Modules window of VS 2005 it tells shows you which
symbols are loaded and if they are not then it tells you why not.

I you can tell where I can find the "modules window", that whould be
nice. Do you mean the object browser, because I can't find anything like
"module window".
Debug Windows Modules

Look up "Modules window" in the MSDN index for more information.

Jon
Feb 28 '08 #6
Hi,

Jon Skeet [C# MVP] schrieb:
On Feb 28, 10:16 am, Martin Horst <pub1-R...@martinhorst.dewrote:
>>If you open up the Modules window of VS 2005 it tells shows you which
symbols are loaded and if they are not then it tells you why not.
I you can tell where I can find the "modules window", that whould be
nice. Do you mean the object browser, because I can't find anything like
"module window".

Debug Windows Modules

Look up "Modules window" in the MSDN index for more information.

Jon
all right, found it (never used it before). As far as I can see the
corresponding pdb has be loaded. But if I try to step into the dll code
the following error message appears: "There is no source code available
for the current location.".
I think there is the problem because the dll has been build on a
different machine. I took a look inside the pdb file and I found the
directory of the source files. So I created the same directory on my
machine copied the source file into this directory. But this changed
anything. Maybe the filetime is importiert, I don't know.
I go and build the dll on my machine and see what's happening. Maybe
this is the problem.

Best regards
Martin

Feb 28 '08 #7
On Feb 28, 11:14 am, Martin Horst <pub1-R...@martinhorst.dewrote:

<snip>
all right, found it (never used it before). As far as I can see the
corresponding pdb has be loaded. But if I try to step into the dll code
the following error message appears: "There is no source code available
for the current location.".
I think there is the problem because the dll has been build on a
different machine. I took a look inside the pdb file and I found the
directory of the source files. So I created the same directory on my
machine copied the source file into this directory. But this changed
anything. Maybe the filetime is importiert, I don't know.
I go and build the dll on my machine and see what's happening. Maybe
this is the problem.
When you copied the source, did you copy the exact same version of the
source that created the DLL? I believe the PDB contains hashes of the
source so it can detect changes.

Jon
Feb 28 '08 #8

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

Similar topics

1
by: Jimmy | last post by:
Hi, I was trying to debug two different ASP.NET projects at the same time. But I was only able to debug one of them and I got the following error for the other one: "Unable to start debugging...
1
by: glaserp | last post by:
Hi, I am developing a Windows application with C# in Visual Stuio .NET. My application references three assemblies that are developed in another project. I have added these assemblies as...
3
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots...
2
by: Jim Chapman | last post by:
This is driving me nuts. I've been using VB.NET for about a year on this machine and decided to try C#. This is what I get when I try to debug (F11): Window title = Microsoft Development...
2
by: TM | last post by:
When I run an ASP.Net application I am getting the following error: "Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged."...
1
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots...
3
by: alan_coffman2004 | last post by:
Opening an ASP.NET VS2002 project in VS2003, am getting this error: "Unable to open Web project 'MyProject'. The file path 'c:\inetpub\wwwroot\MyProject' does not correspond to the URL...
2
by: Roy | last post by:
Hi all, I installed IIS on my Win2K machine after installing Visual Studio 2003 and now have problem with debugging asp.net files. I need to know if I need to uninstall IIS and install a newer...
5
by: Arno | last post by:
reposted with the right microsoft managed newsgroup ID: Sorry for the inconvinience Hi, I've written a class for client-socket connection, but I get a lot of times the error message "Unable...
0
by: Nachi | last post by:
I have installed SQL Server 2000 with VS 2005 - did not install SqlExpress\Sql 2005. I have a remote Sql Server Instance locally. The normal application connectes to this Sql Server. When I run...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.