Three quick questions:
I’m finally getting some time to start using Servoy 4/5 and in the first instance I want to move a couple of existing 3.5 solutions to 5. I’m importing first to 4 and that has gone well as a first step. I then wanted to check most of the methods using the debugger. To save time I wanted just to have the debugger running and for it to break immediately on calling a new method. It seems though that I have to first put a breakpoint in EACH method that I want to call.
- Is that correct?
I’ve seen in Windows/Preferences/Javascript/Debug a checkbox for ‘Break on first line’ which I thought would give me that functionality but that doesn’t seem to be it. (I can’t actually see what exactly that does to be honest).
2) If there is no universal preference to set debugging to break on the first line of every method when called, is there a way to at least remove all the break points one sets up with one click?
- Is there no way to RUN a ‘child’ method without triggering a ‘calling’ method in the Smart Client first? Some methods I have just ‘do’ something that is unrelated to what is happening on the form. For example I’ll run some method in advance of going to another form where I’ll need a custom valuelist. I’d like to test those ‘independent’ methods without triggering the (much bigger) calling method first. I realize I can put the breakpoint in the child method but it would be much more convenient to just be able to click the ‘step into’ arrow directly.
Sorry guys for what I’m sure are simple, stupid questions but I can’t find any answers to this in the forum or docs and I keep thinking I must be able to do this some way that I’ve overlooked… In doing the Eclipse tutorials it appears to be possible to debug that way but not within Servoy/Eclipse…
John
Hi John,
john.allen:
Three quick questions:
I’m finally getting some time to start using Servoy 4/5 and in the first instance I want to move a couple of existing 3.5 solutions to 5. I’m importing first to 4 and that has gone well as a first step. I then wanted to check most of the methods using the debugger. To save time I wanted just to have the debugger running and for it to break immediately on calling a new method. It seems though that I have to first put a breakpoint in EACH method that I want to call.
- Is that correct?
I’ve seen in Windows/Preferences/Javascript/Debug a checkbox for ‘Break on first line’ which I thought would give me that functionality but that doesn’t seem to be it. (I can’t actually see what exactly that does to be honest).
In the debugger perspective you find the Breakpoints view:
[attachment=0]breakpoints view.png[/attachment]
Here you can enable the global exception break (JS! button), the Global Entrybreak (the one selected) and the Global Exitbreak next to this.
john.allen:
2) If there is no universal preference to set debugging to break on the first line of every method when called, is there a way to at least remove all the break points one sets up with one click?
All breakpoints will be listed in this Breakpoints view where you can delete them one by one (the X) or delete them all at once (the double X). You can also double click on the breakpoint entry to jump straight to the code. Very handy.
john.allen:
3) Is there no way to RUN a ‘child’ method without triggering a ‘calling’ method in the Smart Client first? Some methods I have just ‘do’ something that is unrelated to what is happening on the form. For example I’ll run some method in advance of going to another form where I’ll need a custom valuelist. I’d like to test those ‘independent’ methods without triggering the (much bigger) calling method first. I realize I can put the breakpoint in the child method but it would be much more convenient to just be able to click the ‘step into’ arrow directly.
Good question. I know we had this capability in Servoy 3.5 and below but I haven’t seen anything like that in Eclipse. Perhaps one of the Servoyans can tell us.
Hope this helps.
if you have a debug client started.
Then when you go the the developer and for example in the Solution Explorer tree, select the method you want to run.
in the popup menu you then have an option Debug Method … if you press that look what happen then!
(or use the outline view of a js file)