Re: StackTrace and StackFrame

Tech-Archive recommends: Fix windows errors by optimizing your registry

anonymous_at_discussions.microsoft.com
Date: 03/12/04


Date: Fri, 12 Mar 2004 13:21:46 -0800

I am not running from the IDE. I have placed my C#
assembly in the GAC. So should the pdb file also lie in
the GAC? Thanks a lot for your help.
>-----Original Message-----
>Hi,
>
>
> Are you running it from the IDE?
> If not are you sure that the symbols file are present ?
> These are named similar to the assembly but with a pdb
extension.
>
>Cheers,
>
>--
>Ignacio Machin,
>ignacio.machin AT dot.state.fl.us
>Florida Department Of Transportation
>
>"C# beginner" <anonymous@discussions.microsoft.com> wrote
in message
>news:91a001c4086b$0fcbe4c0$a601280a@phx.gbl...
>> StackTrace Trace = new StackTrace(true);
>> int Count = Trace.FrameCount;
>> StackFrame Frame = Trace.GetFrame(0);
>> String FileName = Frame.GetFileName();
>> int LineNumber = Frame.GetFileLineNumber();
>>
>> Hi all
>> I posted this question a few days back. I am trying the
>> above code in my C# assembly. I get Count as 4. But no
>> matter how I try, I can't get the correct filename and
>> linenumber. They are always null and 0 respectively. Can
>> anyone help me resolve this issue?
>> I am using a debug build of my assembly.
>> Thanks a lot in advance for your replies.
>
>
>.
>



Relevant Pages

  • Re: StackTrace and StackFrame
    ... Yes the code is built in debug mode. ... assembly in the GAC. ... So should the pdb file also lie in ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Stack file information
    ... Most likely its due to the location of the PDB file. ... My C# assembly is in the GAC. ... > have copied the pdb file manually to the GAC folder ... > everyone who has given suggestions to me to resolve the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Want add / remove Components in ToolBox
    ... (nor does the VS.NET IDE takes its References from there, ... GAC is used mostly at runtime, and has almost no influence on the IDE ... toolbox object model to add / replace your controls on a toolbox tab of your ...
    (microsoft.public.vsnet.ide)
  • Re: How to debug a C# object in ORchestration Debugger
    ... How can i add a pdb file to gac. ... > Not through the orchestration debugger - but you can through the VS.NET ... > 2) Choose to debug the Common Language Runtime ...
    (microsoft.public.biztalk.general)
  • RE: debug managed dll in gac that is called by unmanaged exe
    ... To set the breakpoint without the source code, ... you need to copy the corrsponding .pdb file to the GAC every ...
    (microsoft.public.vsnet.debugging)