Does -d:1 not implement /o- in Csharp automatically
Posted: Tue Jan 19, 2010 2:54 pm
Gentlemen,
when we pass -d:1 option to cobra compiler than does it not pass /o- option to
CSharp compiler to not optimize.
in sharpdevelop when i tried debugging cobra i was able to breakpoint
but variables use to show infomation not available in optimized mode
well debugging and all is preety heavy handed subject for me so i thought maybe
i am doing something wrong and i maynot have implemented certain features of
Sharpdevelop for debugging to work.since it is able to breakpoint properly and not show
variable values must be wrong something with my implementation.
but then today i thought why not try to send argument to Csharp compiler through
-sharp-args to not optimize. to see what exactly this sharpdevelop mean by optimised code
and it worked!!!!
now still values are not available in the Editor window but down below
in Local Variables pane all values are nicely displaying their bargin. and one can easily
see while stepping through code what is going on in what variable.
So my question is to getinsight in debugging as to what exactly -d: option means
i understand that it should spit out some pdb or some stuff for debuggers to understand
when using debuggers to debug application and as just seen if even with -d: option the
code is optimized as well the pdb is made than does it mean no debugger will be
able to show values. or is it only sharpdevelop implementation that way.
if it would be true with all debuggers than it is better to pass /o- to Csharp as well
otherwise what use is -d option . thou i have hardcoded it now in sharpdevelop when programm is compiled in debug mode.
2) what might be the reasons for not being able to reference
certain assemblies.when i am mentioning the path correctly
with -lib: . i thought maybe that directory is protected
i checked and even removed readonly option from directory containing it
but still i am unable to reference certain asemblies while others
are getting referenced properly.this feature i have noticed after
i downloaded the latest version of cobra before it was referencing
same assemblies properly.if you could give certain guidelines for
referencing assemblies for me to check before i can blame
cobra for that.
a few days back Mr. todd a.(Alexander) was asking about getting errors
while debugging . in 64 bit windows 7. so this could have been the reason also. because csharp by default compiles for anucpu unless COBRA
changes to something else which i doubt and i am also not
specifying anything specific for platforms. so it might work by
specifying -sharp-args:/o-. on 64 bit platform also.thou i am about to
upadate it after clarifying the referencing issue.
what tool does everybody use for debugging cobra programms?
Thankyou
RIGHT_THEN
when we pass -d:1 option to cobra compiler than does it not pass /o- option to
CSharp compiler to not optimize.
in sharpdevelop when i tried debugging cobra i was able to breakpoint
but variables use to show infomation not available in optimized mode
well debugging and all is preety heavy handed subject for me so i thought maybe
i am doing something wrong and i maynot have implemented certain features of
Sharpdevelop for debugging to work.since it is able to breakpoint properly and not show
variable values must be wrong something with my implementation.
but then today i thought why not try to send argument to Csharp compiler through
-sharp-args to not optimize. to see what exactly this sharpdevelop mean by optimised code
and it worked!!!!
now still values are not available in the Editor window but down below
in Local Variables pane all values are nicely displaying their bargin. and one can easily
see while stepping through code what is going on in what variable.
So my question is to getinsight in debugging as to what exactly -d: option means
i understand that it should spit out some pdb or some stuff for debuggers to understand
when using debuggers to debug application and as just seen if even with -d: option the
code is optimized as well the pdb is made than does it mean no debugger will be
able to show values. or is it only sharpdevelop implementation that way.
if it would be true with all debuggers than it is better to pass /o- to Csharp as well
otherwise what use is -d option . thou i have hardcoded it now in sharpdevelop when programm is compiled in debug mode.
2) what might be the reasons for not being able to reference
certain assemblies.when i am mentioning the path correctly
with -lib: . i thought maybe that directory is protected
i checked and even removed readonly option from directory containing it
but still i am unable to reference certain asemblies while others
are getting referenced properly.this feature i have noticed after
i downloaded the latest version of cobra before it was referencing
same assemblies properly.if you could give certain guidelines for
referencing assemblies for me to check before i can blame
cobra for that.
a few days back Mr. todd a.(Alexander) was asking about getting errors
while debugging . in 64 bit windows 7. so this could have been the reason also. because csharp by default compiles for anucpu unless COBRA
changes to something else which i doubt and i am also not
specifying anything specific for platforms. so it might work by
specifying -sharp-args:/o-. on 64 bit platform also.thou i am about to
upadate it after clarifying the referencing issue.
what tool does everybody use for debugging cobra programms?
Thankyou
RIGHT_THEN