Hi Team,
Can we add feature to evaluate expression while debugging an application?
Description:
Currently in Debugger window we have "In Use", "Locals" etc tabs where we can see the values from current context. Apart from this we may add new tab i.e. "Immediate Window" where we can write an expression and it will get evaluated on button click. Please refer attached screenshot for more details.
This feature will be very useful for developers to troubleshoot an application while debugging.
Let me know if you need more inputs on this idea.
Regards,
Sagar Nannaware
There's a workaround, an ugly one, but works. Whenever you stop on a breakpoint in debugger mode, add an aggregate to a function that returns any result. Then add a new column with an expression (the one you need to evaluate), and there it is. You can see the results. This means that an evaluation method would not be that difficult to implement. By the way, i'm using version 9.0.1.55 of service studio. Don't know if it's already implemented so far in newer versions.
Very usefull for all.
https://success.outsystems.com/Documentation/11/Developing_an_Application/Troubleshooting_Applications/Debugging_Applications/WatchesDebug watches are nice, especially when debug is missing conditional breakpoints. What I'd like to see/use is a feature where expression editor could be used to modify debug watch. Mostly to edit already existing debug watches, but it could be nice to add new expressions as debug watch.
Currently values at the end of large lists cannot be added to watch list, as service studio limits the list to 150 first entries.
I merged these two ideas, since they're both about being able to create debug expressions viewable somewhere. Whether that's in the Watch Tab or a new Immediates Tab is of less importance, imho.
Similar to this idea, I would like to test individual functions in service studio.
It would be nice if I could assign input parameters to functions and get an output parameter for those functions directly in Service Studio. Instead of creating a screen to test an individual function…
Kristyan -
There is a separate idea for that already.
J.Ja
Very often i find the need of command / Immediate window, to manipulate values at runtime and see results. We want to try the next function then and there on the data. Then finally implement and publish. As its always publishing on cloud, its difficult to publish multiple time for small data checks. Eg.I want to check 'split','concatenate','compare dates'.
Way more time consuming when entire team is working on same application. Even 'developer tool' of browser allows us to perform small checks via JS JQuery. Imagine if had to run the application for every JS /JQ change. Command /Immediate window/Developer tool etc is developers' favourite in Visual Studio. Please have for OutSystems also
Duplicate of:
https://www.outsystems.com/ideas/111/debug-change-variable-values
https://www.outsystems.com/ideas/2227/evaluate-expression-while-debugging
https://www.outsystems.com/ideas/1074/input-an-expression-in-the-debugger
https://www.outsystems.com/ideas/1280/advanced-features-in-debug
https://www.outsystems.com/ideas/2277/change-the-variable-value-while-debugging
It would be great if we can able to inspect & execute statements while debugging the code flow like how we do in Immediate window in Visual Studio
It would be great if we could add our own (custom) expressions to a debug watch, rather than having to create a "throw-away" variable. I am thinking of something like what you see in Visual Studio.
The idea behind this feature is that we can able to see the runtime value of the expression, while debugging if I change expression then it will evaluate at that time show the result of that change.
For Ex : If I wrote in expression using text with substr function like.
Substr("This is for test expression",0,8) Result : "This is "
Now I change it to
Substr("This is for test expression",8,8) Result : for test .
If have this capability at the time of debugging. So it will save time no need to make changes and see after publish.
Above is the small example but it can be benefits when we have chained function so easy to make changes and efficient amount of time can be saved.
Feature will same as like quick watch in Visual studio or like inspect of the browser.
Thanks,
Gaurav Rawat