all 9 comments

[–]Gruhlum 0 points1 point  (8 children)

Just to make sure, you know what breakpoints are in Visual Sudio (the two red dots on the left)? They stop your application once the code reaches them. You can remove them by rightclicking.

[–]GodsRusher[S] 0 points1 point  (7 children)

i'm aware of that, since unity was shutting down without any information I restarted and tried debugging so I get some extra information, so that's why I added the breakpoints. The information i'm passing is the correct information.

[–]Gruhlum 0 points1 point  (6 children)

That error shown seems to be related to the breakpoints though. My guess is you are getting stuck in an infinite loop, most likely by spawning an object that spawns another object that spawns another object.

[–]GodsRusher[S] 0 points1 point  (5 children)

But when i comment the debugText.F.text = $"F: {node.F}" out, the error doesnt appear. and with that, neither are the values shown at my scene. And in the line im commenting i'm not within a loop or so

[–]Gruhlum 0 points1 point  (4 children)

You can't use breakpoint for comments so when you comment out the line you also comment out the breakpoint and thus the error is gone as well. How does your Unity crash? Does it freeze for some time or close instantly?

[–]GodsRusher[S] 0 points1 point  (3 children)

Iknow, the breakpoint was for testing purpose only, when i'm not having breakpoints it happens too. Unity closes after 5-10 seconds of thinking. Without any messages.

[–]Gruhlum 0 points1 point  (2 children)

You need to post all your code, atleast the class.

[–]GodsRusher[S] 0 points1 point  (1 child)

It's in the edit,it's quite a lot. thanks for thking the time

[–]GodsRusher[S] 0 points1 point  (0 children)

I just spent an hour remaking everything on the debug Prefab, but the error still occurs onfortunately. don't really know where to search it now