vscode-unity-debug icon indicating copy to clipboard operation
vscode-unity-debug copied to clipboard

Hang when debugging in a thread

Open psychicteeth opened this issue 2 years ago • 0 comments

Expected Behavior

It's expected that stepping through code in a thread would work without the debugger hanging.

Current Behavior

If you step into a function (f11) and then try to step over the next instruction (f10) the debugger hangs and both Unity and VSCode must be closed in order to get back functionality

Possible Workaround

Maybe to use breakpoints and f5 instead of stepping

Steps to Reproduce (for bugs)

  1. Connect to Unity with VSCode and this extension
  2. Set up your code so that you have c# code running in a thread, in a class that has functions to call
  3. Place a breakpoint before a function call and hit it during execution
  4. Step into the function
  5. Step over the next instruction
  6. Observe hang

Context

Need to debug my code!

Your Environment

  • Unity Version: 2021.3.15f1
  • VS Code Version: 1.74.3
  • Version of the debugger tool: 3.0.11
  • Operating System and version: Win10 Version 10.0.19045 Build 19045

psychicteeth avatar Jan 29 '23 09:01 psychicteeth