Jump to content
darthlukan

Script Debugger: Table keys displayed out of order

Recommended Posts

I'm in the process of debugging a loop which is supposed to vertically scroll some text contained in a table. My loop is verified as looping over the keys in order (ipairs(array) vs pairs(array)) but in the debugger (pictured) the keys appear out of order once we get to "k=10", where it appears after the first index.

 

It's a small thing, but it confused me for a minute before I double-checked the loop again and verified that it is in fact iterating in the correct order. This is literally just a display issue in the debugger.

 

Here's the screenshot of what I'm talking about (nevermind my improperly incremented values):

 

Expected behavior: Keys in "txt_y" table are displayed in order

Current behavior: Keys in "txt_y" table are displayed out of order once there are more than 9 keys.

 

post-16033-0-77786000-1451144428_thumb.png

Share this post


Link to post

Yeah, they are sorted in alphabetical order to make it easier to view. But in this case I see how this is not good.

Share this post


Link to post

I can change this behavior, but I am not going to work on it right now.

Share this post


Link to post

No worries, it's not some super-high priority bug. If nothing else, it's just more of a confusion point at first and can honestly be counted as one of those "fixes of convenience" :)

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

×
×
  • Create New...