PC Review


Reply
Thread Tools Rate Thread

C# exceptions not showing filename/line numbers (PDB issue?)

 
 
Arun Bhalla
Guest
Posts: n/a
 
      3rd Feb 2004
Hi,

I'm developing an Explorer bar using VS.NET 2003 (C#) on Windows XP. For
some time, I've noticed that I don't have filenames and line numbers
appearing in my exceptions' stack traces. On the other hand, debugging with
breakpoints, etc. seems to work fine in VS.NET 2003. I can't understand why
this isn't working -- and I think it used to work, perhaps under VS.NET
2002, but maybe not. The information doesn't appear in exceptions when
running under VS.NET or when not.

I am running my Explorer bar (which is a class library, not an application)
on the same machine (and user account) which built the library. The PDB
file is accessible to me, and its location does match the location in the
assembly. I am making Debug builds, and I do have "Generate debugging
information" enabled. As far as I can tell, the PDB and DLL files are
equally fresh and the same version?

Any tips? Is this a known bug? It's driving me batty trying to locate an
exception in code blocks without any help from line numbers.

Thanks!
Arun


 
Reply With Quote
 
 
 
 
Chris Capel
Guest
Posts: n/a
 
      3rd Feb 2004
Tell me this. When you run the project from Visual Studio, or attach to the
process after it's started, look in your Output tab for all the assembly
loading logs. Find the one for the assembly in question. See whether it says
"Symbols Loaded" or "No symbols loaded". The symbols in question are,
obviously, the debugging symbols. From your description, I suspect that it
is loading the debug symbols. Tell me if this is your situation: When
running the program by pressing F5 on your project, you encounter an
exception and the standard exception dialog appears with a stack trace but
no line numbers.

I do believe that whether or not you have a pdb, the only time you get line
numbers in your stack traces is when you're *actually debugging* the
project. Now, I could be wrong, but this is my experience.

Chris

"Arun Bhalla" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I'm developing an Explorer bar using VS.NET 2003 (C#) on Windows XP. For
> some time, I've noticed that I don't have filenames and line numbers
> appearing in my exceptions' stack traces. On the other hand, debugging

with
> breakpoints, etc. seems to work fine in VS.NET 2003. I can't understand

why
> this isn't working -- and I think it used to work, perhaps under VS.NET
> 2002, but maybe not. The information doesn't appear in exceptions when
> running under VS.NET or when not.
>
> I am running my Explorer bar (which is a class library, not an

application)
> on the same machine (and user account) which built the library. The PDB
> file is accessible to me, and its location does match the location in the
> assembly. I am making Debug builds, and I do have "Generate debugging
> information" enabled. As far as I can tell, the PDB and DLL files are
> equally fresh and the same version?
>
> Any tips? Is this a known bug? It's driving me batty trying to locate an
> exception in code blocks without any help from line numbers.
>
> Thanks!
> Arun
>
>



 
Reply With Quote
 
Arun Bhalla
Guest
Posts: n/a
 
      3rd Feb 2004
Thanks for responding...

When I hit F5 (Start), I do see that symbols are being loaded for the
assembly in question. However, when an exception occurs in my assembly, I
don't see the line numbers in the MessageBox which I popup containing the
exceptions StackTrace, etc. I hope it doesn't matter, but again I'm writing
an Explorer bar, which is a class library that gets loaded by Internet
Explorer.

I decided to try a new Windows Application solution. I was able to throw
and catch an exception and display the line numbers in a MessageBox there.
It also didn't matter if I Started the project (F5) or Started without
debugging (Ctrl-F5).

Any ideas?

cheers,
Arun


"Chris Capel" <(E-Mail Removed)> wrote in message
news:%23%(E-Mail Removed)...
> Tell me this. When you run the project from Visual Studio, or attach to

the
> process after it's started, look in your Output tab for all the assembly
> loading logs. Find the one for the assembly in question. See whether it

says
> "Symbols Loaded" or "No symbols loaded". The symbols in question are,
> obviously, the debugging symbols. From your description, I suspect that it
> is loading the debug symbols. Tell me if this is your situation: When
> running the program by pressing F5 on your project, you encounter an
> exception and the standard exception dialog appears with a stack trace but
> no line numbers.
>
> I do believe that whether or not you have a pdb, the only time you get

line
> numbers in your stack traces is when you're *actually debugging* the
> project. Now, I could be wrong, but this is my experience.
>
> Chris
>
> "Arun Bhalla" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi,
> >
> > I'm developing an Explorer bar using VS.NET 2003 (C#) on Windows XP.

For
> > some time, I've noticed that I don't have filenames and line numbers
> > appearing in my exceptions' stack traces. On the other hand, debugging

> with
> > breakpoints, etc. seems to work fine in VS.NET 2003. I can't understand

> why
> > this isn't working -- and I think it used to work, perhaps under VS.NET
> > 2002, but maybe not. The information doesn't appear in exceptions when
> > running under VS.NET or when not.
> >
> > I am running my Explorer bar (which is a class library, not an

> application)
> > on the same machine (and user account) which built the library. The PDB
> > file is accessible to me, and its location does match the location in

the
> > assembly. I am making Debug builds, and I do have "Generate debugging
> > information" enabled. As far as I can tell, the PDB and DLL files are
> > equally fresh and the same version?
> >
> > Any tips? Is this a known bug? It's driving me batty trying to locate

an
> > exception in code blocks without any help from line numbers.
> >
> > Thanks!
> > Arun
> >
> >

>
>



 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      4th Feb 2004
Is the PDB file in the same directory as the dll when IE loads it? Where
does it load it from?

"Arun Bhalla" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks for responding...
>
> When I hit F5 (Start), I do see that symbols are being loaded for the
> assembly in question. However, when an exception occurs in my assembly, I
> don't see the line numbers in the MessageBox which I popup containing the
> exceptions StackTrace, etc. I hope it doesn't matter, but again I'm

writing
> an Explorer bar, which is a class library that gets loaded by Internet
> Explorer.
>
> I decided to try a new Windows Application solution. I was able to throw
> and catch an exception and display the line numbers in a MessageBox there.
> It also didn't matter if I Started the project (F5) or Started without
> debugging (Ctrl-F5).
>
> Any ideas?
>
> cheers,
> Arun
>
>
> "Chris Capel" <(E-Mail Removed)> wrote in message
> news:%23%(E-Mail Removed)...
> > Tell me this. When you run the project from Visual Studio, or attach to

> the
> > process after it's started, look in your Output tab for all the assembly
> > loading logs. Find the one for the assembly in question. See whether it

> says
> > "Symbols Loaded" or "No symbols loaded". The symbols in question are,
> > obviously, the debugging symbols. From your description, I suspect that

it
> > is loading the debug symbols. Tell me if this is your situation: When
> > running the program by pressing F5 on your project, you encounter an
> > exception and the standard exception dialog appears with a stack trace

but
> > no line numbers.
> >
> > I do believe that whether or not you have a pdb, the only time you get

> line
> > numbers in your stack traces is when you're *actually debugging* the
> > project. Now, I could be wrong, but this is my experience.
> >
> > Chris
> >
> > "Arun Bhalla" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Hi,
> > >
> > > I'm developing an Explorer bar using VS.NET 2003 (C#) on Windows XP.

> For
> > > some time, I've noticed that I don't have filenames and line numbers
> > > appearing in my exceptions' stack traces. On the other hand,

debugging
> > with
> > > breakpoints, etc. seems to work fine in VS.NET 2003. I can't

understand
> > why
> > > this isn't working -- and I think it used to work, perhaps under

VS.NET
> > > 2002, but maybe not. The information doesn't appear in exceptions

when
> > > running under VS.NET or when not.
> > >
> > > I am running my Explorer bar (which is a class library, not an

> > application)
> > > on the same machine (and user account) which built the library. The

PDB
> > > file is accessible to me, and its location does match the location in

> the
> > > assembly. I am making Debug builds, and I do have "Generate debugging
> > > information" enabled. As far as I can tell, the PDB and DLL files are
> > > equally fresh and the same version?
> > >
> > > Any tips? Is this a known bug? It's driving me batty trying to

locate
> an
> > > exception in code blocks without any help from line numbers.
> > >
> > > Thanks!
> > > Arun
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Arun Bhalla
Guest
Posts: n/a
 
      4th Feb 2004
I figured out yesterday that the issue was that the DLL was in the GAC, and
the PDB path
in the DLL was relative (./). When I copied the PDB file to the same
directory in the GAC,
it worked.

Thanks,
Arun

"Dave" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Is the PDB file in the same directory as the dll when IE loads it? Where
> does it load it from?
>
> "Arun Bhalla" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Thanks for responding...
> >
> > When I hit F5 (Start), I do see that symbols are being loaded for the
> > assembly in question. However, when an exception occurs in my assembly,

I
> > don't see the line numbers in the MessageBox which I popup containing

the
> > exceptions StackTrace, etc. I hope it doesn't matter, but again I'm

> writing
> > an Explorer bar, which is a class library that gets loaded by Internet
> > Explorer.
> >
> > I decided to try a new Windows Application solution. I was able to

throw
> > and catch an exception and display the line numbers in a MessageBox

there.
> > It also didn't matter if I Started the project (F5) or Started without
> > debugging (Ctrl-F5).
> >
> > Any ideas?
> >
> > cheers,
> > Arun
> >
> >
> > "Chris Capel" <(E-Mail Removed)> wrote in message
> > news:%23%(E-Mail Removed)...
> > > Tell me this. When you run the project from Visual Studio, or attach

to
> > the
> > > process after it's started, look in your Output tab for all the

assembly
> > > loading logs. Find the one for the assembly in question. See whether

it
> > says
> > > "Symbols Loaded" or "No symbols loaded". The symbols in question are,
> > > obviously, the debugging symbols. From your description, I suspect

that
> it
> > > is loading the debug symbols. Tell me if this is your situation: When
> > > running the program by pressing F5 on your project, you encounter an
> > > exception and the standard exception dialog appears with a stack trace

> but
> > > no line numbers.
> > >
> > > I do believe that whether or not you have a pdb, the only time you get

> > line
> > > numbers in your stack traces is when you're *actually debugging* the
> > > project. Now, I could be wrong, but this is my experience.
> > >
> > > Chris
> > >
> > > "Arun Bhalla" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > Hi,
> > > >
> > > > I'm developing an Explorer bar using VS.NET 2003 (C#) on Windows XP.

> > For
> > > > some time, I've noticed that I don't have filenames and line numbers
> > > > appearing in my exceptions' stack traces. On the other hand,

> debugging
> > > with
> > > > breakpoints, etc. seems to work fine in VS.NET 2003. I can't

> understand
> > > why
> > > > this isn't working -- and I think it used to work, perhaps under

> VS.NET
> > > > 2002, but maybe not. The information doesn't appear in exceptions

> when
> > > > running under VS.NET or when not.
> > > >
> > > > I am running my Explorer bar (which is a class library, not an
> > > application)
> > > > on the same machine (and user account) which built the library. The

> PDB
> > > > file is accessible to me, and its location does match the location

in
> > the
> > > > assembly. I am making Debug builds, and I do have "Generate

debugging
> > > > information" enabled. As far as I can tell, the PDB and DLL files

are
> > > > equally fresh and the same version?
> > > >
> > > > Any tips? Is this a known bug? It's driving me batty trying to

> locate
> > an
> > > > exception in code blocks without any help from line numbers.
> > > >
> > > > Thanks!
> > > > Arun
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Marco Liedekerken
Guest
Posts: n/a
 
      17th Feb 2004
Hi Arun,

I have the same problem as you have (had).
Did you find a solution for it allready or does anybody who reads this now
know how to solve it?

Thanks, Marco (puzzled)





"Arun Bhalla" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks for responding...
>
> When I hit F5 (Start), I do see that symbols are being loaded for the
> assembly in question. However, when an exception occurs in my assembly, I
> don't see the line numbers in the MessageBox which I popup containing the
> exceptions StackTrace, etc. I hope it doesn't matter, but again I'm

writing
> an Explorer bar, which is a class library that gets loaded by Internet
> Explorer.
>
> I decided to try a new Windows Application solution. I was able to throw
> and catch an exception and display the line numbers in a MessageBox there.
> It also didn't matter if I Started the project (F5) or Started without
> debugging (Ctrl-F5).
>
> Any ideas?
>
> cheers,
> Arun
>
>
> "Chris Capel" <(E-Mail Removed)> wrote in message
> news:%23%(E-Mail Removed)...
> > Tell me this. When you run the project from Visual Studio, or attach to

> the
> > process after it's started, look in your Output tab for all the assembly
> > loading logs. Find the one for the assembly in question. See whether it

> says
> > "Symbols Loaded" or "No symbols loaded". The symbols in question are,
> > obviously, the debugging symbols. From your description, I suspect that

it
> > is loading the debug symbols. Tell me if this is your situation: When
> > running the program by pressing F5 on your project, you encounter an
> > exception and the standard exception dialog appears with a stack trace

but
> > no line numbers.
> >
> > I do believe that whether or not you have a pdb, the only time you get

> line
> > numbers in your stack traces is when you're *actually debugging* the
> > project. Now, I could be wrong, but this is my experience.
> >
> > Chris
> >
> > "Arun Bhalla" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Hi,
> > >
> > > I'm developing an Explorer bar using VS.NET 2003 (C#) on Windows XP.

> For
> > > some time, I've noticed that I don't have filenames and line numbers
> > > appearing in my exceptions' stack traces. On the other hand,

debugging
> > with
> > > breakpoints, etc. seems to work fine in VS.NET 2003. I can't

understand
> > why
> > > this isn't working -- and I think it used to work, perhaps under

VS.NET
> > > 2002, but maybe not. The information doesn't appear in exceptions

when
> > > running under VS.NET or when not.
> > >
> > > I am running my Explorer bar (which is a class library, not an

> > application)
> > > on the same machine (and user account) which built the library. The

PDB
> > > file is accessible to me, and its location does match the location in

> the
> > > assembly. I am making Debug builds, and I do have "Generate debugging
> > > information" enabled. As far as I can tell, the PDB and DLL files are
> > > equally fresh and the same version?
> > >
> > > Any tips? Is this a known bug? It's driving me batty trying to

locate
> an
> > > exception in code blocks without any help from line numbers.
> > >
> > > Thanks!
> > > Arun
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      17th Feb 2004
Copy the pdb files to the same directory the assembly is located at in the
GAC

"Marco Liedekerken" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Arun,
>
> I have the same problem as you have (had).
> Did you find a solution for it allready or does anybody who reads this now
> know how to solve it?
>
> Thanks, Marco (puzzled)
>
>
>
>
>
> "Arun Bhalla" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Thanks for responding...
> >
> > When I hit F5 (Start), I do see that symbols are being loaded for the
> > assembly in question. However, when an exception occurs in my assembly,

I
> > don't see the line numbers in the MessageBox which I popup containing

the
> > exceptions StackTrace, etc. I hope it doesn't matter, but again I'm

> writing
> > an Explorer bar, which is a class library that gets loaded by Internet
> > Explorer.
> >
> > I decided to try a new Windows Application solution. I was able to

throw
> > and catch an exception and display the line numbers in a MessageBox

there.
> > It also didn't matter if I Started the project (F5) or Started without
> > debugging (Ctrl-F5).
> >
> > Any ideas?
> >
> > cheers,
> > Arun
> >
> >
> > "Chris Capel" <(E-Mail Removed)> wrote in message
> > news:%23%(E-Mail Removed)...
> > > Tell me this. When you run the project from Visual Studio, or attach

to
> > the
> > > process after it's started, look in your Output tab for all the

assembly
> > > loading logs. Find the one for the assembly in question. See whether

it
> > says
> > > "Symbols Loaded" or "No symbols loaded". The symbols in question are,
> > > obviously, the debugging symbols. From your description, I suspect

that
> it
> > > is loading the debug symbols. Tell me if this is your situation: When
> > > running the program by pressing F5 on your project, you encounter an
> > > exception and the standard exception dialog appears with a stack trace

> but
> > > no line numbers.
> > >
> > > I do believe that whether or not you have a pdb, the only time you get

> > line
> > > numbers in your stack traces is when you're *actually debugging* the
> > > project. Now, I could be wrong, but this is my experience.
> > >
> > > Chris
> > >
> > > "Arun Bhalla" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > Hi,
> > > >
> > > > I'm developing an Explorer bar using VS.NET 2003 (C#) on Windows XP.

> > For
> > > > some time, I've noticed that I don't have filenames and line numbers
> > > > appearing in my exceptions' stack traces. On the other hand,

> debugging
> > > with
> > > > breakpoints, etc. seems to work fine in VS.NET 2003. I can't

> understand
> > > why
> > > > this isn't working -- and I think it used to work, perhaps under

> VS.NET
> > > > 2002, but maybe not. The information doesn't appear in exceptions

> when
> > > > running under VS.NET or when not.
> > > >
> > > > I am running my Explorer bar (which is a class library, not an
> > > application)
> > > > on the same machine (and user account) which built the library. The

> PDB
> > > > file is accessible to me, and its location does match the location

in
> > the
> > > > assembly. I am making Debug builds, and I do have "Generate

debugging
> > > > information" enabled. As far as I can tell, the PDB and DLL files

are
> > > > equally fresh and the same version?
> > > >
> > > > Any tips? Is this a known bug? It's driving me batty trying to

> locate
> > an
> > > > exception in code blocks without any help from line numbers.
> > > >
> > > > Thanks!
> > > > Arun
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Marco Liedekerken
Guest
Posts: n/a
 
      17th Feb 2004
Hi Dave,

This sounds good.

Only I get a build message that only assembly files (not pdb files) can be
shared in the GAC. I do the copying action via the Setup projects File
System on target machine, Global Assembly Cache folder.
I selected the pdb file I wanted to have in the GAC and set it into this
folder.

My Windows Service (.exe) assembly is installed to the folder "C:\Program
Files\NameCompany\MyServiceSetup"

Can you be a bit more specific on what I have to do?

Thanks, Marco





"Dave" <(E-Mail Removed)> wrote in message
news:uR7$(E-Mail Removed)...
> Copy the pdb files to the same directory the assembly is located at in the
> GAC
>
> "Marco Liedekerken" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi Arun,
> >
> > I have the same problem as you have (had).
> > Did you find a solution for it allready or does anybody who reads this

now
> > know how to solve it?
> >
> > Thanks, Marco (puzzled)
> >
> >
> >
> >
> >
> > "Arun Bhalla" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Thanks for responding...
> > >
> > > When I hit F5 (Start), I do see that symbols are being loaded for the
> > > assembly in question. However, when an exception occurs in my

assembly,
> I
> > > don't see the line numbers in the MessageBox which I popup containing

> the
> > > exceptions StackTrace, etc. I hope it doesn't matter, but again I'm

> > writing
> > > an Explorer bar, which is a class library that gets loaded by Internet
> > > Explorer.
> > >
> > > I decided to try a new Windows Application solution. I was able to

> throw
> > > and catch an exception and display the line numbers in a MessageBox

> there.
> > > It also didn't matter if I Started the project (F5) or Started without
> > > debugging (Ctrl-F5).
> > >
> > > Any ideas?
> > >
> > > cheers,
> > > Arun
> > >
> > >
> > > "Chris Capel" <(E-Mail Removed)> wrote in message
> > > news:%23%(E-Mail Removed)...
> > > > Tell me this. When you run the project from Visual Studio, or attach

> to
> > > the
> > > > process after it's started, look in your Output tab for all the

> assembly
> > > > loading logs. Find the one for the assembly in question. See whether

> it
> > > says
> > > > "Symbols Loaded" or "No symbols loaded". The symbols in question

are,
> > > > obviously, the debugging symbols. From your description, I suspect

> that
> > it
> > > > is loading the debug symbols. Tell me if this is your situation:

When
> > > > running the program by pressing F5 on your project, you encounter an
> > > > exception and the standard exception dialog appears with a stack

trace
> > but
> > > > no line numbers.
> > > >
> > > > I do believe that whether or not you have a pdb, the only time you

get
> > > line
> > > > numbers in your stack traces is when you're *actually debugging* the
> > > > project. Now, I could be wrong, but this is my experience.
> > > >
> > > > Chris
> > > >
> > > > "Arun Bhalla" <(E-Mail Removed)> wrote in message
> > > > news:(E-Mail Removed)...
> > > > > Hi,
> > > > >
> > > > > I'm developing an Explorer bar using VS.NET 2003 (C#) on Windows

XP.
> > > For
> > > > > some time, I've noticed that I don't have filenames and line

numbers
> > > > > appearing in my exceptions' stack traces. On the other hand,

> > debugging
> > > > with
> > > > > breakpoints, etc. seems to work fine in VS.NET 2003. I can't

> > understand
> > > > why
> > > > > this isn't working -- and I think it used to work, perhaps under

> > VS.NET
> > > > > 2002, but maybe not. The information doesn't appear in exceptions

> > when
> > > > > running under VS.NET or when not.
> > > > >
> > > > > I am running my Explorer bar (which is a class library, not an
> > > > application)
> > > > > on the same machine (and user account) which built the library.

The
> > PDB
> > > > > file is accessible to me, and its location does match the location

> in
> > > the
> > > > > assembly. I am making Debug builds, and I do have "Generate

> debugging
> > > > > information" enabled. As far as I can tell, the PDB and DLL files

> are
> > > > > equally fresh and the same version?
> > > > >
> > > > > Any tips? Is this a known bug? It's driving me batty trying to

> > locate
> > > an
> > > > > exception in code blocks without any help from line numbers.
> > > > >
> > > > > Thanks!
> > > > > Arun
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      18th Feb 2004
I'm not sure how you would do this automatically. You don't want to share
the pdb file or to install it, you only want to copy it.

You can manually copy the pdb files to the GAC. There's a registry switch (I
don't recall which one but you should be able to google it up) that allows
you to turn off the standard explorer display of the GAC so that it shows up
as if it were a directory filled with folders. Locate the folder your DLL is
in and manually copy the pdb there.


"Marco Liedekerken" <(E-Mail Removed)> wrote in message
news:%23$(E-Mail Removed)...
> Hi Dave,
>
> This sounds good.
>
> Only I get a build message that only assembly files (not pdb files) can be
> shared in the GAC. I do the copying action via the Setup projects File
> System on target machine, Global Assembly Cache folder.
> I selected the pdb file I wanted to have in the GAC and set it into this
> folder.
>
> My Windows Service (.exe) assembly is installed to the folder "C:\Program
> Files\NameCompany\MyServiceSetup"
>
> Can you be a bit more specific on what I have to do?
>
> Thanks, Marco
>
>
>
>
>
> "Dave" <(E-Mail Removed)> wrote in message
> news:uR7$(E-Mail Removed)...
> > Copy the pdb files to the same directory the assembly is located at in

the
> > GAC
> >
> > "Marco Liedekerken" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Hi Arun,
> > >
> > > I have the same problem as you have (had).
> > > Did you find a solution for it allready or does anybody who reads this

> now
> > > know how to solve it?
> > >
> > > Thanks, Marco (puzzled)
> > >
> > >
> > >
> > >
> > >
> > > "Arun Bhalla" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > Thanks for responding...
> > > >
> > > > When I hit F5 (Start), I do see that symbols are being loaded for

the
> > > > assembly in question. However, when an exception occurs in my

> assembly,
> > I
> > > > don't see the line numbers in the MessageBox which I popup

containing
> > the
> > > > exceptions StackTrace, etc. I hope it doesn't matter, but again I'm
> > > writing
> > > > an Explorer bar, which is a class library that gets loaded by

Internet
> > > > Explorer.
> > > >
> > > > I decided to try a new Windows Application solution. I was able to

> > throw
> > > > and catch an exception and display the line numbers in a MessageBox

> > there.
> > > > It also didn't matter if I Started the project (F5) or Started

without
> > > > debugging (Ctrl-F5).
> > > >
> > > > Any ideas?
> > > >
> > > > cheers,
> > > > Arun
> > > >
> > > >
> > > > "Chris Capel" <(E-Mail Removed)> wrote in message
> > > > news:%23%(E-Mail Removed)...
> > > > > Tell me this. When you run the project from Visual Studio, or

attach
> > to
> > > > the
> > > > > process after it's started, look in your Output tab for all the

> > assembly
> > > > > loading logs. Find the one for the assembly in question. See

whether
> > it
> > > > says
> > > > > "Symbols Loaded" or "No symbols loaded". The symbols in question

> are,
> > > > > obviously, the debugging symbols. From your description, I suspect

> > that
> > > it
> > > > > is loading the debug symbols. Tell me if this is your situation:

> When
> > > > > running the program by pressing F5 on your project, you encounter

an
> > > > > exception and the standard exception dialog appears with a stack

> trace
> > > but
> > > > > no line numbers.
> > > > >
> > > > > I do believe that whether or not you have a pdb, the only time you

> get
> > > > line
> > > > > numbers in your stack traces is when you're *actually debugging*

the
> > > > > project. Now, I could be wrong, but this is my experience.
> > > > >
> > > > > Chris
> > > > >
> > > > > "Arun Bhalla" <(E-Mail Removed)> wrote in message
> > > > > news:(E-Mail Removed)...
> > > > > > Hi,
> > > > > >
> > > > > > I'm developing an Explorer bar using VS.NET 2003 (C#) on Windows

> XP.
> > > > For
> > > > > > some time, I've noticed that I don't have filenames and line

> numbers
> > > > > > appearing in my exceptions' stack traces. On the other hand,
> > > debugging
> > > > > with
> > > > > > breakpoints, etc. seems to work fine in VS.NET 2003. I can't
> > > understand
> > > > > why
> > > > > > this isn't working -- and I think it used to work, perhaps under
> > > VS.NET
> > > > > > 2002, but maybe not. The information doesn't appear in

exceptions
> > > when
> > > > > > running under VS.NET or when not.
> > > > > >
> > > > > > I am running my Explorer bar (which is a class library, not an
> > > > > application)
> > > > > > on the same machine (and user account) which built the library.

> The
> > > PDB
> > > > > > file is accessible to me, and its location does match the

location
> > in
> > > > the
> > > > > > assembly. I am making Debug builds, and I do have "Generate

> > debugging
> > > > > > information" enabled. As far as I can tell, the PDB and DLL

files
> > are
> > > > > > equally fresh and the same version?
> > > > > >
> > > > > > Any tips? Is this a known bug? It's driving me batty trying to
> > > locate
> > > > an
> > > > > > exception in code blocks without any help from line numbers.
> > > > > >
> > > > > > Thanks!
> > > > > > Arun
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSharpCodeProvider: Stack trace line numbers on exceptions? Ben Dilts Microsoft C# .NET 0 30th May 2008 12:22 AM
Getting line numbers for exceptions when the web site is published Rahul Microsoft ASP .NET 3 15th Feb 2007 05:48 PM
Why are my Line numbers not showing when Exceptions get thrown?! =?Utf-8?B?TSBL?= Microsoft ASP .NET 3 31st Mar 2004 11:57 PM
C# exceptions not showing filename/line numbers (PDB issue?) Arun Bhalla Microsoft C# .NET 8 18th Feb 2004 02:16 AM
Line numbers in Release exceptions Nick Bunton Microsoft C# .NET 4 28th Oct 2003 07:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:32 PM.