diff options
author | Jeffrey Stedfast <jeff@xamarin.com> | 2014-08-20 01:06:44 +0400 |
---|---|---|
committer | Jeffrey Stedfast <jeff@xamarin.com> | 2014-08-20 01:06:44 +0400 |
commit | 0a8a1236c21f16ac210ee15fc7ca1ac394e974b5 (patch) | |
tree | c0dcf7e9b41c3fdd45b336ce5f67ce2e74f3d187 /main/src/addins/MonoDevelop.HexEditor | |
parent | 4ba52200e8eebf3850a51445509d21f74494fa7c (diff) |
[Debugger] AllowTargetInvoke when opening a value in a visualizer
Fixes bug #22094
Diffstat (limited to 'main/src/addins/MonoDevelop.HexEditor')
-rw-r--r-- | main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor/HexEditorVisualizer.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor/HexEditorVisualizer.cs b/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor/HexEditorVisualizer.cs index 753d12af86..9ea23c4739 100644 --- a/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor/HexEditorVisualizer.cs +++ b/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor/HexEditorVisualizer.cs @@ -81,12 +81,16 @@ namespace MonoDevelop.HexEditor public override Widget GetVisualizerWidget (ObjectValue val) { - hexEditor = new Mono.MHex.HexEditor (); + var options = DebuggingService.DebuggerSession.EvaluationOptions.Clone (); + options.AllowTargetInvoke = true; + options.ChunkRawStrings = true; IBuffer buffer = null; + hexEditor = new Mono.MHex.HexEditor (); + if (val.TypeName != "string") { - var raw = (RawValueArray) val.GetRawValue (); + var raw = (RawValueArray) val.GetRawValue (options); switch (val.TypeName) { case "sbyte[]": @@ -100,10 +104,7 @@ namespace MonoDevelop.HexEditor break; } } else { - var ops = DebuggingService.DebuggerSession.EvaluationOptions.Clone (); - ops.ChunkRawStrings = true; - - buffer = new RawStringBuffer ((RawValueString) val.GetRawValue (ops)); + buffer = new RawStringBuffer ((RawValueString) val.GetRawValue (options)); } hexEditor.HexEditorData.Buffer = buffer; |