0 votes

Using GDScript
In Process:

if not thread.is_active():
    thread.start(self, "load_chunk",[thread, x, z])

load_chunk:

func load_chunk(arr):

I'm not sure why this doesn't ever hit in breakpoint? They are in the same script, thread = Thread.New() in Ready func. load_chunk([thread, x, z]) works when not on a thread. This has been slowing me down for almost a week now. The worst part is, it originally worked! I didn't change any of the thread elements in my script, either!

Godot version 3.2.1
in Engine by (47 points)

1 Answer

+1 vote

This is probably the problem. From the documentation:

Breakpoints won't break on code if it's running in a thread. This is a current limitation of the GDScript debugger.

by (1,964 points)

That certainly explains why it doesn't hit in breakpoint, thanks!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.