on 10-14-2014 12:44 PM
Hi all.
Is there any way to debut the javascript included at the additional properties sheet of a new SDK component?
How do you debug this javascript code?
For the component.js file I use the web browser debugguer but I do not know how to do it here and it drives me crazy.
By the way, is there any method to modify the component code and do not have to start/stop the DS from Eclipse thousand of times in order to test it?
Thank you.
Best regards,
Nacho
Ahhh, a topic near and dear to my heart Some of this I will be talking about at TechEd && d-code this year and also in a November ASUG webinar. I'll add my approaches but I'll also page , Former Member, and Former Member to this discussion thread to pile on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. Debugging of Additional Properties View scrips works best with Microsoft Visual Studio debugger. If you have access to it
2.Debugging of component.js code e.g. with Chrome debugger is quite nice. Just run your app locally, hit F12, use Ctrl+O to find your component.js and enjoy. The debug-mode mentioned by Mike helps to understand the context, but is not neede.
3. There is no need to restart Design Studio from Eclipse for changes in your component.js and other JS files. Restart is only needed for changes in contribution.xml and contribution.ztl.
If you see the wrong file, it is always a problem of the Browser cache. Chrome Debugger has an option to disable the cache during debugging, that is very useful to keep turned on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Reiner,
On points 1 and 3, you just blew my mind!! So for during design time, this is when Control+Right-Click to force a cache-free refresh of the BI App would pick up any changes to the DIV/SAPUI5 SDK Handler code?
Also I'll have to check out the Visual Studio to help debugging the property sheet.
As always, thanks!!
It is difficult to know what the browser do with the different kind of reloads, so I don't know if e.g. Ctrl+F5 really ignores the cache. But "Disable cache (while DevTools is open)" option in Chrome and the "Ctrl+Shift+Del" in all other browsers turned out to be very effective.
Design Studio itself doesn't cache SDK handler files etc.
Hi Reiner,
CTRL + Refresh does not really work all the times. At least in my development station. Some changes appear after refreshing but some others do not show at all.
An example: if there is a JS error (and it is supressed), the script stops working. I fix it in JS code (Eclipse). I close the DS dashboard (not DS itself), open it again and, sometimes, it works. But it is always sometimes.
But definitely this is not a stable solution.
Thanks.
Best regards.
Reiner,
Agreed that it's not 100% reliable. As what may also be alluding to is maybe debugging design-time component behavior is one task (debugging how the Addl Prop Sheet interacts with the component in the canvas) and runtime debugging is a different task (where setting Chrome to use no cache is a more reliable approach)
From my understanding, Eclipse always uses IE (not Chrome) for the Canvas and Addl Prop Sheet right? Just making sure we are all talking about debugging the same modes. (Designtime vs Runtime for instance)
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.