From 1ebffc0cf752ba81ee1ffb75e11e2a7755454066 Mon Sep 17 00:00:00 2001 From: Zverev Eugene Date: Mon, 18 Jun 2018 15:49:14 +0300 Subject: [PATCH 1/3] Update MonoSampleProject.csproj change full to portable for Debug|AnyCPU configuration --- src/MonoSampleProject/MonoSampleProject.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MonoSampleProject/MonoSampleProject.csproj b/src/MonoSampleProject/MonoSampleProject.csproj index a615b34..8dbe1f8 100644 --- a/src/MonoSampleProject/MonoSampleProject.csproj +++ b/src/MonoSampleProject/MonoSampleProject.csproj @@ -48,7 +48,7 @@ true - full + portable false bin\Debug\ DEBUG;TRACE @@ -105,4 +105,4 @@ --> - \ No newline at end of file + From 044529869e90f84eb0e817cc868c7193c2ccc6eb Mon Sep 17 00:00:00 2001 From: Zverev Eugene Date: Tue, 19 Jun 2018 14:14:52 +0300 Subject: [PATCH 2/3] Update MonoSampleDebuggerSession.cs When launched without the mdb-optimizations option the IDE extension fails in Mono.Debugging.Soft.SoftDebuggerSession.LoadPdbFile --------------------------- Microsoft Visual Studio --------------------------- EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object. at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at Mono.Debugging.Soft.SoftDebuggerSession.LoadPdbFile(String assemblyFileName, String pdbFileName) at Mono.Debugging.Soft.SoftDebuggerSession.LoadDebugFile(String assemblyFileName, String debugFileName, Func`3 loadDebugFile) at Mono.Debugging.Soft.SoftDebuggerSession.CheckBetterMatch(TypeMirror type, String file, Int32 line, Int32 column, Location found) at Mono.Debugging.Soft.SoftDebuggerSession.FindLocationByMethod(MethodMirror method, String file, Int32 line, Int32 column, Boolean& insideTypeRange) at Mono.Debugging.Soft.SoftDebuggerSession.FindLocationByType(TypeMirror type, String file, Int32 line, Int32 column, Boolean& genericMethod, Boolean& insideTypeRange) at Mono.Debugging.Soft.SoftDebuggerSession.ResolveBreakpoints(TypeMirror type) at Mono.Debugging.Soft.SoftDebuggerSession.HandleTypeLoadEvents(TypeLoadEvent[] events) at Mono.Debugging.Soft.SoftDebuggerSession.HandleEventSet(EventSet es) at Mono.Debugging.Soft.SoftDebuggerSession.EventHandler() --------------------------- OK --------------------------- --- src/Mono.Debugger.Sample/MonoSampleDebuggerSession.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mono.Debugger.Sample/MonoSampleDebuggerSession.cs b/src/Mono.Debugger.Sample/MonoSampleDebuggerSession.cs index 82a99fb..e63d48c 100644 --- a/src/Mono.Debugger.Sample/MonoSampleDebuggerSession.cs +++ b/src/Mono.Debugger.Sample/MonoSampleDebuggerSession.cs @@ -24,7 +24,7 @@ protected override void OnRun(DebuggerStartInfo startInfo) var args = ((Debugging.VisualStudio.StartInfo)startInfo).StartArgs as SoftDebuggerListenArgs; process = new System.Diagnostics.Process(); - process.StartInfo = new System.Diagnostics.ProcessStartInfo(Path.Combine(monoDirectory, "mono.exe"), string.Format("--debug --debugger-agent=transport=dt_socket,address=127.0.0.1:{0} {1}", args.DebugPort, exeName)); + process.StartInfo = new System.Diagnostics.ProcessStartInfo(Path.Combine(monoDirectory, "mono.exe"), string.Format("--debug=mdb-optimizations --debugger-agent=transport=dt_socket,address=127.0.0.1:{0} {1}", args.DebugPort, exeName)); process.StartInfo.WorkingDirectory = monoDirectory; process.StartInfo.UseShellExecute = true; process.Start(); @@ -44,4 +44,4 @@ protected override void OnExit() process.Kill(); } } -} \ No newline at end of file +} From 65629f700c38696bafe1e577413f946a83041347 Mon Sep 17 00:00:00 2001 From: Zverev Eugene Date: Thu, 21 Jun 2018 12:09:42 +0300 Subject: [PATCH 3/3] Update ProjectTemplate.csproj --- src/MonoSampleProject/ProjectTemplate.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MonoSampleProject/ProjectTemplate.csproj b/src/MonoSampleProject/ProjectTemplate.csproj index 5b659c6..f24bce3 100644 --- a/src/MonoSampleProject/ProjectTemplate.csproj +++ b/src/MonoSampleProject/ProjectTemplate.csproj @@ -16,7 +16,7 @@ true - full + portable false bin\Debug\ DEBUG;TRACE @@ -24,7 +24,7 @@ 4 - pdbonly + portable true bin\Release\ TRACE