Below is Jan's reply to this question:

-------------
The /debug:full flag for C# compiler is the key for
making it work.

As you have pointed out, it would be nice for
mscorlib.dll from checked build to be compiled with
this flag. Indeed, it was supposed to work that way. A
minor bug sneaked in: the references to the URTBLDENV
environment variable in rotorenv\bin\makefile.csc
should have been URTBUILDENV. You can either replace
URTBLDENV with URTBUILDENV in
rotorenv\bin\makefile.csc. Or you can set URTBLDENV in
your environment:

set URTBLDENV=chk
cd %ROTOR_DIR%\clr\src\bcl
build -c

-Jan

This posting is provided "AS IS" with no warranties,
and confers no
rights.

-----Original Message-----
From: Discussion of the Rotor Shared Source CLI
implementation
[mailto:[EMAIL PROTECTED] On Behalf Of
Yuan Yu
Sent: Friday, January 30, 2004 1:22 PM
To: [EMAIL PROTECTED]
Subject: [DOTNET-ROTOR] A Simple Build Question

When printing stack trace, I can get filename and line
number information from my part of the code, but not
from bcl code.  I suspect that mscorlib
is built without all the debug information (even for a
checked build). How could I build mscorlib so that I
can get filename and line number?

Thanks,
-Yuan


--- Gajah Mada <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I have built the SSCLI with the "checked" option,
> which supposedly turns
> optimizations off, enables debug code, and generates
> debugging symbols.
>
> However, when I use cordbg to debug a HelloWorld
> application, the debugger
> complains that it could not load the symbol for the
> 'mscorlib.dll'.
>
> Warning: couldn't load symbols for
>
e:\research\clis\sscli\build\v1.x86chk.rotor\mscorlib.dll
>
> Therefore, when I stepped into a Console.WriteLine
> function, the debugger
> can not show the source code: [no source code
> available].
>
> PS: The symbols for the HelloWorld program was
> loaded successfully since I
> compiled the program with the "/debug" option.
>
> Can anyone help me?
>
> Thank you.
>
>
> Gajah Mada
>
> ===================================
> This list is hosted by DevelopMentorŪ
> http://www.develop.com
> ASP.NET courses you may be interested in:
>
> Guerrilla.NET Sept 27-Oct 1, in Torrance
> http://www.develop.com/courses/gdotnetls
>
> Essential.NET Sept 20-24, in San Francisco
> Essential.NET Oct. 4-8, in London
> http://www.develop.com/courses/edotnet
>
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>




_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
ASP.NET courses you may be interested in:

Guerrilla.NET Sept 27-Oct 1, in Torrance
http://www.develop.com/courses/gdotnetls

Essential.NET Sept 20-24, in San Francisco
Essential.NET Oct. 4-8, in London
http://www.develop.com/courses/edotnet


View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to