Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Hang when debugging in a thread #6

@psychicteeth

Description

@psychicteeth

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions