See both variables and code in the debugger?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 222
- Joined: Thu Jul 01, 2010 11:50 am
See both variables and code in the debugger?
Ridiculously, the list of variables in the debugger is at the bottom of the script editor, so both the script and the list of variables competes for space. The larger I make the list of variables, the less code I can see, and vice-versa. The variables list ought to be listed in a separate pane or window so the programmer can see both the list of variables and the code at the height of the screen. I have a 27" screen but LC forces me to waste it.
Is there in fact some way to show a screen-high list of variables without being at the expense of how much code I can see? Are there any 3rd party debuggers? I couldn't find any.
Is there in fact some way to show a screen-high list of variables without being at the expense of how much code I can see? Are there any 3rd party debuggers? I couldn't find any.
Re: See both variables and code in the debugger?
Hi MichaelBluejay,
That's an interesting idea. Working on a plugin now.
That's an interesting idea. Working on a plugin now.
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
Re: See both variables and code in the debugger?
A lot easier than I thought it would be.
This can be docked left or right to the editor or free floating.
Finishing off and will upload to Sample Stacks later today.
This can be docked left or right to the editor or free floating.
Finishing off and will upload to Sample Stacks later today.
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
Re: See both variables and code in the debugger?
Way cool, Andy!
-
- Posts: 720
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
-
- Posts: 222
- Joined: Thu Jul 01, 2010 11:50 am
Re: See both variables and code in the debugger?
Wow, thanks!
-
- VIP Livecode Opensource Backer
- Posts: 9670
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: See both variables and code in the debugger?
Andy.
Eager to see your work.
I use a 32" monitor exclusively for the SE, rotated on its side so it is rather tall. Though I can see a lot of real estate, I still have to look from on high to down low constantly, so being able to see the variable pane right next to the code being debugged would be a treat.
Now I need a huge square monitor.
But does the variable pane in your gadget scroll? I do not see a scrollbar.
Craig
Eager to see your work.
I use a 32" monitor exclusively for the SE, rotated on its side so it is rather tall. Though I can see a lot of real estate, I still have to look from on high to down low constantly, so being able to see the variable pane right next to the code being debugged would be a treat.
Now I need a huge square monitor.
But does the variable pane in your gadget scroll? I do not see a scrollbar.
Craig
Re: See both variables and code in the debugger?
Yes it does.
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
Re: See both variables and code in the debugger?
@Andy - that is sooooooooo cool !
I think I should point out that you *can* also pop any variable your interested in keeping track of out of that pane and into a separate window of it's own. As well, Mikey made this invaluable tip (among many gems over the year(s)) -
I'll have to see if I can do better when I wake up for sure.
I think I should point out that you *can* also pop any variable your interested in keeping track of out of that pane and into a separate window of it's own. As well, Mikey made this invaluable tip (among many gems over the year(s)) -
Somehow, I have misplaced the bookmarks I made of a similar post, and an afternoon of looking failed to turn it upMikey wrote: ↑Mon Feb 18, 2019 8:27 pm@bogs
if you're trying to debug your app after it's compiled, you can take advantage of the fact that LC is interpreted at runtime by adding something like:That's all it takes to get started with adding the ability to execute arbitrary code on the fly.Code: Select all
on mouseUp ask "Command, please" if it is not empty then do it end mouseUp
You could check the contents of a global if you responded with:Code: Select all
global goop; answer goop
** Note by bogs - the above and below can also be used within the IDE itself ~
I'll have to see if I can do better when I wake up for sure.
Re: See both variables and code in the debugger?
]HI All,
The Variable Monitor is now on Sample Stacks.
[attachment=0]2021-01-08_18-55-42.png[/attachment
Please place in your plugins folder and restart LiveCode.
Open the Variable Monitor plugin and hit the refresh button to start mirroring the Script Editor variable pane.
Looking forward to your feedback and suggestions.
The Variable Monitor is now on Sample Stacks.
[attachment=0]2021-01-08_18-55-42.png[/attachment
Please place in your plugins folder and restart LiveCode.
Open the Variable Monitor plugin and hit the refresh button to start mirroring the Script Editor variable pane.
Looking forward to your feedback and suggestions.
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: See both variables and code in the debugger?
The variables used to be in a separate window. People said it was too fiddly.
Hard to come up with a design that pleases a diverse audience.
Fortunately, with the IDE being all scripted, we have many options for tooling to choose from.
Hard to come up with a design that pleases a diverse audience.
Fortunately, with the IDE being all scripted, we have many options for tooling to choose from.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: See both variables and code in the debugger?
Well, with the ability to either pop out the windows or not, don't you have the best of both worlds?
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: See both variables and code in the debugger?
Depending on how it's done it may be a patent infringement.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 222
- Joined: Thu Jul 01, 2010 11:50 am
Re: See both variables and code in the debugger?
Not at all. You just give them the option to do it one way or the other, then everyone on both sides is happy.FourthWorld wrote: ↑Fri Jan 08, 2021 9:09 pmHard to come up with a design that pleases a diverse audience.
-
- Posts: 222
- Joined: Thu Jul 01, 2010 11:50 am