Jump to content

Script Debugger: Table keys displayed out of order


darthlukan
 Share

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

GPG: 3694569D | Peppermint OS | i7 | GTX 960 | Github

Link to comment
Share on other sites

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
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.

 Share

×
×
  • Create New...