コード例 #1
0
        internal bool GetStackValueData(ProtoCore.Lang.Obj stackValue, ref string data)
        {
            data = string.Empty;
            if ((null != internalWorker) && internalWorker.IsBusy)
            {
                return(false);
            }

            if (null == currentWatchedMirror)
            {
                return(false);
            }

            try
            {
                ITextEditorSettings editorSettings = TextEditorCore.Instance.TextEditorSettings;
                data = currentWatchedMirror.GetStringValue(stackValue.DsasmValue,
                                                           core.Heap, 0, editorSettings.MaxArrayDisplaySize, editorSettings.MaxOutputDepth);
            }
            catch (Exception exception)
            {
                HandleException(exception);
                return(false);
            }

            return(true);
        }