Cosmos icon indicating copy to clipboard operation
Cosmos copied to clipboard

CS2019 crash when putting breakpoint on previos vm-player crashing line

Open EliaSulimanov opened this issue 4 years ago • 7 comments

Area of Cosmos - What area of Cosmos are we dealing with?

IDE

Expected Behaviour - What do you think that should happen?

Expecing VS2019 not to crash but run the dubgger normally

Actual Behaviour - What unexpectedly happens?

VS2019 crashing and restarts

Reproduction - How did you get this error to appear?

  1. I used this line to let VM-player crash: throw new Exception("test");
  2. I put breakpoint on this line and run the project again.
  3. VS2019 crash and restart.

devenv.exe event:

Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.COMException
   at Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread(System.String)
   at Cosmos.VS.DebugEngine.AD7Util.MessageBox(System.String, System.String)
   at Cosmos.VS.DebugEngine.AD7.Impl.AD7Process.DbgCmdMessageBox(System.String)
   at Cosmos.Debug.DebugConnectors.DebugConnector.ThreadMethod(System.Threading.CancellationToken)
   at Cosmos.Debug.DebugConnectors.DebugConnector.<Start>b__114_0()
   at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()

#1338 would probably fix it.

Notice it differs from #1334 by the fact that no CPU exception was thrown.

Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?

User Kit 20190628

EliaSulimanov avatar Jun 01 '20 21:06 EliaSulimanov

Stale issue message

github-actions[bot] avatar Apr 26 '21 01:04 github-actions[bot]

Can be closed if fixed, I've never seen anybody using breakpoints tho

selkij avatar May 29 '22 12:05 selkij

The Visual Studio extension is quite broken currently and part of it is that breakpoints dont work

quajak avatar May 29 '22 14:05 quajak

I don't think Cosmos supports breakpoints

AsertCreator avatar May 29 '22 23:05 AsertCreator

I don't think Cosmos supports breakpoints

if we talk about breakpoints its because cosmos does

selkij avatar May 30 '22 05:05 selkij

If it's unfixable from our end, can be closed.

EliaSulimanov avatar May 30 '22 06:05 EliaSulimanov

I think its a bug with the cosmos debugger extension since they worked in the past and can be fixed, if someone puts in the work.

quajak avatar May 30 '22 16:05 quajak