Perhaps a noob question but, has anyone been able ...
# suitescript
d
Perhaps a noob question but, has anyone been able to run a SS.2 suitelet through the debugger?
So, I set my SS2.1 Suitelet to Testing, and when I go to the debugger, it doesn't show up under 'Existing'.
s
Are you finding the NS debugger worth the trouble overall? I'm still not convinced... and your mention above doesn't inspire more confidence.
m
I use the debugger regularly and have done so with Suitelets. I often forget that I need to be the script owner to use the debugger. And with Suitelets, I often make a separate deployment for testing which does change the URL slightly.
k
I dont use the new 2.1 debugger much, I think its in beta. Every time I used it was in chrome and I wait for the new page to open
b
2.1 debugger is out of beta, it used to be pretty slow loading while in beta but its better now
s
are you guys finding source level debugging to be very useful? When I started with SuiteScript I was appalled that source level debugging wasn't available. However in practice I find that my decomposition of the problem in to small functions combined with autologging and strategic placement of a log message or two is quite effective at debugging. Basically, I'm not finding many times when I feel the need to 'step through' code. Do you find scripting a different experience?
e
I use the debugger when I have run out of ideas as to why something is failing or I am getting an unexpected value. Sometimes a line throws an exception that I didn't expect
s
ah yes, I see it much less often than in times past, but UNEXPECTED_ERROR is always a fun one- and I could see source level debugging helping there. Though it seems most often those errors happen inside execution of an API call like
record.save()
and I presume you can't step into that
save()
call?
k
Also I like using debugger when I want to implement a soap request or a file.load and parse an xml. Never figured a better way than the debugger for doing this
r
Is the owner in the script record the same as the user that is logged in the debugger?
d
@stalbert,I'm with you .. its been years since I needed/wanted to use the debugger. I was happy at what I saw in the 2.1 Chrome debugger though. Its nice to know its there. I found it a useful tool for onboarding a new developer into a complex code base. It was like a 'follow along' tutorial.
I'm going to try it out on a low-level bug I can't seem to find.
s
let me know what you think after that experience
speaking of
follow along
, have you tried the 'code with me' plugin for webstorm?
d
No, I haven't