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
|
  |
 |
| 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
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 2324 |
|
| |
|
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
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 2324 |
|
| |
|
|
| 16 Aug 2012 01:01 AM |
| Stravant tell him to fix the horrid new GUI. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 16 Aug 2012 06:51 PM |
@SN0X
That code is flawed anywai. :| |
|
|
| Report Abuse |
|
|
|
| 16 Aug 2012 06:54 PM |
| ROBLOX, why won't you use any of the existing remote debuggers :| |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
|
| 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
|
  |
 |
| 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
|
  |
| Joined: 09 Aug 2012 |
| Total Posts: 172 |
|
|
| 16 Aug 2012 09:49 PM |
| This is really interesting! |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
|
| 17 Aug 2012 04:13 PM |
| I don't want intellisense. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
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
|
  |
| Joined: 02 Apr 2013 |
| Total Posts: 1150 |
|
|
| 25 Nov 2013 08:17 PM |
| damn you destiny harbinger. necrobumping .... |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2013 08:18 PM |
| Don't call it a comeback, its been here for years. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
| |
|