generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: What's this? A debugger? For RBX.Lua? Couldn't be.

Previous Thread :: Next Thread 
3543 is not online. 3543
Joined: 03 Dec 2011
Total Posts: 121
16 Aug 2012 12:50 AM
I've found 3 (new?) objects in the object browser. DebuggerWatch, DebuggerService, and DebuggerBreakpoint. Haven't looked at them much. This is exciting!

What do you think of these? A debugger would be really useful!
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
16 Aug 2012 12:55 AM
Yes, Erik is working on debugging stuffs for studio.
Report Abuse
zac4545 is not online. zac4545
Joined: 19 Aug 2009
Total Posts: 2324
16 Aug 2012 12:56 AM
awesome
Report Abuse
3543 is not online. 3543
Joined: 03 Dec 2011
Total Posts: 121
16 Aug 2012 12:57 AM
That's great! That'll make solving issues a lot easier. Thanks for confirming it so we don't have to guess about it. Even though guessing is fun.
Report Abuse
zac4545 is not online. zac4545
Joined: 19 Aug 2009
Total Posts: 2324
16 Aug 2012 12:58 AM
^
Report Abuse
Robloxianof07 is not online. Robloxianof07
Joined: 30 Jul 2012
Total Posts: 896
16 Aug 2012 01:01 AM
Stravant tell him to fix the horrid new GUI.
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
16 Aug 2012 03:50 AM
No I like the new GUI but I think we need changable backgrounds in the text editor, white hurts my eyes, black is epic.
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
16 Aug 2012 04:00 AM
And when I think that I was planning to start an huge project to make my own incomplete debugger with a plugin and a GUI and stuff...

Well, this changes everything...

In the future, we will now be able to debug hard to find errors in almost no time. :D
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
16 Aug 2012 04:07 AM
I hate stupid errors that no idea liak wth


I have this evolution simulator, but when I was trying to get it to spawn animals better something like this happened:

local Species = {LionStarterClass,PigeonStarterClass}
local choice

for i = 1, animals do
repeat
for _, v in pairs(Species) do
if math.random(1,v.MatingCycle) == v.MatingCycle then
choice = v
end
end
until choice ~= nil
end

print(choice)


it just loops forever and ever...
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
16 Aug 2012 06:51 PM
@SN0X

That code is flawed anywai. :|
Report Abuse
NecroBumpist is not online. NecroBumpist
Joined: 12 Sep 2010
Total Posts: 4198
16 Aug 2012 06:54 PM
ROBLOX, why won't you use any of the existing remote debuggers :|
Report Abuse
Vocalise is not online. Vocalise
Joined: 11 Aug 2012
Total Posts: 160
16 Aug 2012 07:20 PM
How is this gonna work?
Is this gonna show the errors and how to fix it, or will it automatically fix the errors themselves THEN print an overview?

☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞ - Candymaniac, a highly reactive substance.
Report Abuse
AdvorsusDuo is not online. AdvorsusDuo
Joined: 17 May 2012
Total Posts: 5265
16 Aug 2012 09:18 PM
^
both maybe?
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
16 Aug 2012 09:22 PM
"How is this gonna work?
Is this gonna show the errors and how to fix it, or will it automatically fix the errors themselves THEN print an overview?"

> automatically fix the errors
The computer is not sentient yet, and as such will not be correcting your syntactic anomalies.
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
16 Aug 2012 09:43 PM
"The computer is not sentient yet, and as such will not be correcting your syntactic anomalies."

Of course, that doesn't change the fact that 95% of the errors people make would be solvable through static analysis alone.

For example, typing the wrong case or spelling of a built in function or property, using . rather than : on a method call, etc.

Even code completion could be done pretty well (after actually looking into it in detail, I reassess my assertion that it would be impossible to do well). 99% of the time people's code is actually statically typed (100% for mine, I could not find a single variable in some of my code that did not have at the very least a verifiable base class which was more specific than just Instance). As in, the variables in the program only have one possible type, which is easily verifiable at compile time assuming that the user has not done anything crazy like replacing the game and script globals or even creating their own environment mechanics.

Even for data which is user defined, it's possible to work through the program and see the flow of a given piece of data, and what members it has assigned / tested.

For instance:
function AddStuff(foo)
if foo.Blah then
return foo.Blah
end
end

Now code completion can instantly know that any value I call "AddStuff" on must have a "Blah" member. Now what if the code also has:

local a = ...
local a = AddStuff(a)
a.Parent = game.Workspace

Great, now the code completion also knows that the type of that foo.Blah member is some kind of Roblox Instance.

And if you go on like that you'll find that 99% of Roblox code is actually code-completeable.

I'm working on making a proof of concept eventually. It's not an easy thing to implement, but it is possible.
Report Abuse
AdvRobot is not online. AdvRobot
Joined: 09 Aug 2012
Total Posts: 172
16 Aug 2012 09:49 PM
This is really interesting!
Report Abuse
X135 is not online. X135
Joined: 20 Aug 2010
Total Posts: 245
17 Aug 2012 04:09 PM
Yay! An auto fixer. And by solve the problem, I meant what stravant said basically. This could be very neat.
Report Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
17 Aug 2012 04:13 PM
I don't want intellisense.
Report Abuse
TobotRobot is not online. TobotRobot
Forum Moderator
Joined: 11 Sep 2011
Total Posts: 615
17 Aug 2012 04:59 PM
@booing yes you do, you just don't know it yet :-D

JavaScript has similar problems, but I was very impressed with the code completion and hints given by Aptana Studio, though I think you'd be taking it even further than they do Stravant. Try it out if you haven't. Much better than Visual Studio's JS intellisense.

Also, in your example, just because you execute AddStuff doesn't mean your parameter has a .blah property, does it? Trying to do both type inference and type checking feels a little chicken and egg. If you pass in a variable to AddStuff, does it need to have a .blah (static checking) or is it likely to have a .blah (type inference)?
Report Abuse
DestinyHarbinger is not online. DestinyHarbinger
Joined: 01 Jun 2008
Total Posts: 16701
25 Nov 2013 07:14 PM
lol
Report Abuse
MettaurSp is not online. MettaurSp
Joined: 20 Mar 2010
Total Posts: 3179
25 Nov 2013 08:16 PM
@SN0X, the studio script source editor? If so, then: Tools > Settings > Studio > Script Editor Colors o3o
Report Abuse
YEGGOR is not online. YEGGOR
Joined: 02 Apr 2013
Total Posts: 1150
25 Nov 2013 08:17 PM
damn you destiny harbinger. necrobumping ....
Report Abuse
VictorProjects is not online. VictorProjects
Joined: 07 Mar 2010
Total Posts: 4137
25 Nov 2013 08:18 PM
Don't call it a comeback, its been here for years.
Report Abuse
MettaurSp is not online. MettaurSp
Joined: 20 Mar 2010
Total Posts: 3179
25 Nov 2013 08:21 PM
o3o Lol, yet again failed to notice a necro bumped thread q-p
Report Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
25 Nov 2013 09:03 PM
epic :D
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image