Debug.info page has incorrect samples

debug.info methods which use 5 letters “slnaf”, but accept ONLY 1 OR 0 letters at a time. Passing more returns error, but code sample shows 2-3 letters used at a time.


Page URL: https://create.roblox.com/docs/reference/engine/libraries/debug#info

This is more of a clarity issue. What it means is you can only use each character in "slnaf" only once.
So "sl" is fine, whereas "fafa" would be invalid.

1 Like

Nope, it will accept ONLY s, l, n, a, f If you pass 2 letter or more it will error.
At least that what I have run into not so long time ago.

The example from the documentation works perfectly fine.


You could have done something incorrect?

1 Like

Strange. I’ll look into this again.
It it works, then it’s my mistake.

I also tested using the sample from the page, and it works as expected. We appreciate the report; please post back if you confirm it’s working for you.

IgnisRBX

1 Like

Yes, idk what I did wrong with debug.info() last time, but it really works like described.
That’s my mistake. Sorry for that. :slightly_frowning_face:
image