Home » Community » U++ community news and announcements » U++ 2017 beta
Re: U++ 2017 beta [message #47330 is a reply to message #47327] |
Wed, 04 January 2017 15:38 |
cbpporter
Messages: 1401 Registered: September 2007
|
Ultimate Contributor |
|
|
mirek wrote on Wed, 04 January 2017 15:49cbpporter wrote on Wed, 04 January 2017 11:19
But I'll focus on strings first. Won't have probably time for anything more.
Here is a mockup of what I'm thinking:
Trouble with that is that it requires "special treatment" for String - debugger needs to be aware that you are at String.
Frankly, the ideal solution would be calling 'AsString' for values somehow, but that aint so easy unfortunately...
Yeah, that's exactly what I'm doing. Added special logic based on type name. Small price to pay I think for the added benefits. And not just String. A few Core classes should be handled like this too, like Vector, which has abysmal debugging. This isn't 1995 anymore, we can't have it like it is. Plus, the debugger should be aware of a few more other things, like Moveable. Remove all unnecessary information.
Think of the most fancy and elegant scripting language possible. Something people love to use and once they start to use it, become extremely loyal to it, like Python or Ruby. Now imagine how streamlined and useful debugging can look in those (there is support for full time run-time reflection and eval). That's what I want in U++. A String shouldn't have len, ptr, s, wptr, w, q and what not. What are even those? I know what they are, but I don't want to. Nobody does! The debug output should be readable for a String by a baby.
We can't do stuff like in the scripting languages, but we can hard code the debugger to pretty print a couple of hand picked types if in debug mode and if they have the proper layout.
I tested a very early and hack version of this for U++ in 2009, but there was no interest for it. Now I must do it because I can't stand to debug another string where 1/3 of it is cut off so I can have a clear look at the blasted wptr value. Or to debug a vector where I can only look at the first element. Things like this worked in Delphi like 10 years ago. They work perfectly in C#.
I don't have C# installed right now on this computer, but here is a screenshot of a decent, not great debugger:
The length of those fields in the window are enough to show most strings and there is no extra unneeded info.
-
Attachment: image001.gif
(Size: 30.76KB, Downloaded 503 times)
|
|
|
|
|
U++ 2017 beta
By: mirek on Thu, 22 December 2016 09:25
|
|
|
Re: U++ 2017 beta
By: MrSarup on Thu, 22 December 2016 20:25
|
|
|
Re: U++ 2017 beta
By: mirek on Thu, 22 December 2016 23:00
|
|
|
Re: U++ 2017 beta
By: MrSarup on Sun, 25 December 2016 08:02
|
|
|
Re: U++ 2017 beta
By: Klugier on Sun, 25 December 2016 21:29
|
|
|
Re: U++ 2017 beta
By: omari on Mon, 26 December 2016 13:36
|
|
|
Re: U++ 2017 beta
By: mr_ped on Fri, 23 December 2016 04:02
|
|
|
Re: U++ 2017 beta
By: koldo on Fri, 23 December 2016 10:28
|
|
|
Re: U++ 2017 beta
By: MrSarup on Sun, 25 December 2016 09:23
|
|
|
Re: U++ 2017 beta
By: MrSarup on Sun, 25 December 2016 09:52
|
|
|
Re: U++ 2017 beta
By: mirek on Sun, 25 December 2016 10:02
|
|
|
Re: U++ 2017 beta
By: mirek on Sun, 25 December 2016 09:52
|
|
|
Re: U++ 2017 beta
By: MrSarup on Sun, 25 December 2016 11:24
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: mirek on Sun, 01 January 2017 21:51
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: MrSarup on Wed, 28 December 2016 13:31
|
|
|
Re: U++ 2017 beta
By: mirek on Wed, 28 December 2016 16:53
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: MrSarup on Wed, 28 December 2016 20:53
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: Klugier on Wed, 28 December 2016 23:15
|
|
|
Re: U++ 2017 beta
By: amrein on Thu, 29 December 2016 08:44
|
|
|
Re: U++ 2017 beta
By: mirek on Sun, 01 January 2017 21:54
|
|
|
Re: U++ 2017 beta
By: mirek on Sun, 01 January 2017 22:03
|
|
|
Re: U++ 2017 beta
By: MrSarup on Mon, 02 January 2017 06:09
|
|
|
Re: U++ 2017 beta
By: mirek on Mon, 02 January 2017 22:31
|
|
|
Re: U++ 2017 beta
By: mirek on Mon, 02 January 2017 21:42
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: amrein on Tue, 03 January 2017 14:22
|
|
|
Re: U++ 2017 beta
By: mirek on Tue, 03 January 2017 14:59
|
|
|
Re: U++ 2017 beta
By: amrein on Wed, 04 January 2017 01:04
|
|
|
Re: U++ 2017 beta
By: MrSarup on Wed, 04 January 2017 07:28
|
|
|
Re: U++ 2017 beta
By: mirek on Wed, 04 January 2017 07:59
|
|
|
Re: U++ 2017 beta
By: mirek on Wed, 04 January 2017 08:03
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: MrSarup on Wed, 04 January 2017 08:47
|
|
|
Re: U++ 2017 beta
By: MrSarup on Wed, 04 January 2017 09:00
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: mirek on Wed, 04 January 2017 10:28
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: Tom1 on Wed, 04 January 2017 12:32
|
|
|
Re: U++ 2017 beta
By: mirek on Wed, 04 January 2017 12:38
|
|
|
Re: U++ 2017 beta
By: Tom1 on Wed, 04 January 2017 13:20
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: mirek on Wed, 04 January 2017 14:39
|
|
|
Re: U++ 2017 beta
By: Tom1 on Wed, 04 January 2017 15:29
|
|
|
Re: U++ 2017 beta
By: mirek on Thu, 05 January 2017 08:38
|
|
|
Re: U++ 2017 beta
By: Tom1 on Thu, 05 January 2017 09:17
|
|
|
Re: U++ 2017 beta
By: mirek on Wed, 04 January 2017 14:49
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: mirek on Wed, 04 January 2017 15:47
|
|
|
Re: U++ 2017 beta
By: Klugier on Wed, 04 January 2017 22:32
|
|
|
Re: U++ 2017 beta
By: mirek on Thu, 05 January 2017 08:23
|
|
|
Re: U++ 2017 beta
By: mr_ped on Thu, 05 January 2017 05:01
|
|
|
Re: U++ 2017 beta
By: mirek on Thu, 05 January 2017 08:20
|
Goto Forum:
Current Time: Tue May 07 09:10:18 CEST 2024
Total time taken to generate the page: 0.02114 seconds
|