You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In mono interpreter mode, the StackFrame's ilOffset value is set to -1.
Because of this, the functionality of showing ilOffset in StackTrace when pdb is not present does not work.
The text was updated successfully, but these errors were encountered:
In mono interpreter mode, the StackFrame's ilOffset value is set to -1.
Because of this, the functionality of showing ilOffset in StackTrace when pdb is not present does not work.
Author:
wscho77
Assignees:
-
Labels:
area-Codegen-Interpreter-mono, untriaged
Milestone:
-
wscho77
added a commit
to wscho77/runtime
that referenced
this issue
Apr 12, 2021
* Add IL Offset and Method Token to stacktrace
For easier debugging, if the PDB is not deployed, add the Method Token and IL Offset to the stacktrace.
This functionality can be turned on and off by environment setting "COMPlus_ILOffsetToStackTrace"
* Use LocalAppContextSwitch and HexConverter
Use LocalAppContextSwitch to get environment variable without using static constructor in StackTrace.
Also, use HexConverter to get metadata token and il offset without unnecessary complex.
* Use AppendFormat instead of HexConverter
Use AppendFormat() for formatting of the hex number.
* Use switch to activate ILOffset in stacktrace
- Change switch name from ILOffsetsToStackTrace to ShowILOffset
- Use "Switch.System.Diagnostics.StackTrace.ShowILOffsets" to activate ILOffset in stacktrace
- Use "DOTNET_" prefix for environment variable name (DOTNET_ILOffsetToStackTrace)
* Use AppContextConfigHelper for get switch value
* Add test case for ILOffsetToStackTrace
* Remove unused variable
* Use RemoteExecutor.Invoke for testing
* Update src/libraries/System.Private.CoreLib/src/System/LocalAppContextSwitches.cs
Co-authored-by: Noah Falk <noahfalk@users.noreply.github.com>
* TC contents are added
* Remove setting code using enviornment variable
remove setting code using environment variable and change switch default value to true.
* code clean-up. remove unused code
* Sort using statements
* Skipt test in mono interpreter mode.
Related issue : #51096
Co-authored-by: Noah Falk <noahfalk@users.noreply.github.com>
Relates to: #44013
In mono interpreter mode, the StackFrame's ilOffset value is set to -1.
Because of this, the functionality of showing ilOffset in StackTrace when pdb is not present does not work.
The text was updated successfully, but these errors were encountered: