Client Debugging: AMA!

Nice, this was my most requested feature during the internship.

But that means you will miss out on the killer chicken recipe!

The beginning but before the ‘flavour text’ gives the general summary.

1 Like

I’m a vegan.

Yeah I realized that a little bit after

Thank you. Debugging was starting to remind me of the good old days of writing code for embedded mcu’s and sending output to a terminal app through an RS232 port.

So glad the debugger is being worked on! I had disabled it to simplify Studio (get rid of everything I don’t use). My problem with it is that breakpoints are not serialized (StarterPlayerScripts, testing using Play Solo), but this is a great start and I look forward to being able to use it some day! Unless they are actually serialized now (please tell me if they are!).

It should be the case, and has been for a long while, that if you open place P, set a bunch of breakpoints in scripts, close P, close Studio, re-open Studio, re-open P, the breakpoints you set should still be there.

If that’s not happening for you, please let me know with specific repro steps (it seems to work properly for me).

Is that what you mean by “serialized”, or am I misunderstanding you?

Sorry for confusion: That’s the intention of the “Summary” section at the top.

Should I make that shorter? Label it something different?

Thanks for your feedback. Even if you can’t consistently repro, please send along as many details as you can when you experience a crash related to debugger, I will see what I can do.

It is DEPRECATED because, as mentioned in the Summary, this business of having to choose whether debugger attaches to Server or Client is Not Long For This World: I am currently working on having separate debuggers, one attached to Client, one attached to Server. Then there’s no more preference, no need to choose, no setting.

So I wouldn’t spend much/any time developing features, plugins, whatever around the ability to attach debugger to Client or Server. Soon that will be a non-issue.

2 Likes

Just to clarify:

You mean that Play Solo is laggy (like just hitting play and running?)

Or you mean the debugger is laggy (like if you use settings and turn off Debugger then run play solo, things work fine, but if you turn Debugger on in Settings and run play solo, things are laggy)?

If it’s the latter (we’re sure it’s the debugger’s fault), could you produce a simple-as-possible sample place that demonstrates this problem and share it here?

No it was my mistake, but my suggestion is to put the Summary at the bottom and label it as “Summary (TL;DR)” as well, because usually it’s done like that from what I have seen.

Summary part is already good, I just happen to skip it automatically when I read it the first time


The crashes (and probably related useless stack info) during exceptions are really frustrating for me too, see the report here: Debugger stack in certain cases completely garbage . It’d be awesome to see this fixed.

If I have time, I will produce a test place, but in general its whenever you have a lot of modules/objects that are updated every game renderstep, you will get freezing up no matter what. It’s only when I have a really lightweight architecture/engine that I can use the debugger and not experience a freeze up.

What I mean is that breakpoints do not appear to carry over into Play Solo (the version that opens the place in a new window). It does save the breakpoints when publishing or cloning the script whoever.

I made sure the debugger was set to Client to be sure. Appears to also show a warning when opening the script: ScriptNavigationHandler : No script currently available. Not sure if it is related.

1 Like

I am confused. As of today 5/24/2019, there are no debugging options in the studio(advanced section. First Option I see is “Show Diagnostic Bar”). All of the online help I can find seems to be out of date. How do I find how to set up the debugger for client or server debugging as of today?

@Hack5785
See this:

Now this is what I call flavour text.

Ayy. A lot of devs don’t realize how nice a real debugger is to have. Bugged me a lot that it was server only (to the point where a really hacky solution I had was on my todo list).

I for one have been waiting for this for a while.

Did you even read the post? I don’t see the need to keep bumping this

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.