Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breakpoints inside threads are not triggered properly #647

Open
ArchLinus opened this issue Apr 17, 2024 · 0 comments
Open

Breakpoints inside threads are not triggered properly #647

ArchLinus opened this issue Apr 17, 2024 · 0 comments
Labels

Comments

@ArchLinus
Copy link

Godot version

v4.2.stable.official [46dc27791]

VS Code version

1.88.1

Godot Tools VS Code extension version

2.0.0

System information

Windows 11

Issue description

When placing a breakpoint in code that runs in a thread, the breakpoint will not be triggered properly. More specifically, the game will pause, but there's no indication of hitting a breakpoint in VSCode and the game will just sit frozen. The breakpoint works in the editor but not in VSCode.

Steps to reproduce

  1. Create a new node
  2. Attach the following script:
extends Node

var thread := Thread.new()

func _ready():
	thread.start(_thread_worker)

func _thread_worker():
	while true:
		print("Place a breakpoint here")
  1. Place down a breakpoint on the print statement.
  2. Launch game from VSCode.
@ArchLinus ArchLinus added the bug label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant