Jump to content

Recommended Posts

Posted

If i use debug mode and add some breakpoints, they can be hit and the debug tools work well. However, if I debug the program for a long time, the max-tick-time will be exceeded and the game crashes. I know how to disable it in the server settings, but how can i avoid it in client debug?

Posted (edited)

With "client" i guess you mean a Singleplayer world, and in Singleplayer this should not matter.

If this is not what you mean please explain it and provide as much as possible details.

Edited by Luis_ST
Posted

Yes, it is the Singleplayer world.

If i use step in / step out code lines several times, the game will stop working correctly and then shows "connection lost" and "time out" (but not crashes as I mentioned).

I guess it is because the debug mode paused the program and the game thought it was a serious lag and the connention was lost.

How can i avoid this problem?

Posted
23 minutes ago, jissee said:

If i use step in / step out code lines several times, the game will stop working correctly and then shows "connection lost" and "time out" (but not crashes as I mentioned).

You then need to go back to the Title Screen?

What code are you talking about? What does the code do and where is it located?

Posted
On 9/10/2022 at 11:32 PM, Luis_ST said:

You then need to go back to the Title Screen?

What code are you talking about? What does the code do and where is it located?

Yes, after i press f9 and run the game, i need to go back to the title screen. i am debugging entity tick() code.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.