I am trying to debug a SS2.1 script, but I am gett...
# suitescript
t
I am trying to debug a SS2.1 script, but I am getting the Websocket disconnected error everytime, anyone else is experiencing this?
Even if I just write a simple script in the debugger, it raises the same error.
p
@Toni Capella I'm getting the exact same thing. I'm in a dev account - are you in a standard account, please?
t
Yes it happens in several acccounts to us. Dev, Sandbox and Production
πŸ‘πŸΌ 1
m
I just assumed this was the expected behavior when a script in the debugger ends.
p
Well, it's 17:24 where I am and so far I've had a support ticket fail to submit and the debugger is broken, so I think NetSuite's irony department must be on double-time, and it's time for me to call it a day. Hopefully it's resolved by tomorrow, if not I might raise a ticket ... wait ...
@Mike Robbins Yeah, but it doesn't even start my brother. That's the issue
m
ouch! Yep. I'm seeing the same thing.
πŸ‘πŸΌ 1
p
Ah well, time for some food, some guitar n some sleep, and maybe NS will have sorted its head out by the morning. Thanks for the confirmation Mike, 3 strikes n it's a bug πŸ™‚
s
I never use the web debugger.
t
Good morning, is this still happening to you guys?
@Shawn Talbert do you use any other tool?
p
@Toni Capella It was still happening for me around an hour ago. Alternative for me is to use chrome dev console, but that's problematic if I need server side stuff.
t
Exactly, I need it for serverside testing
p
I wonder if the 'standard' debugger is working, I can't remember if 2.0 runs in console or NetSuite original debugger.
Our stuff is all 2.1
But we might be able to adapt to 2 if that runs in original UI...
t
Yes, 2.0 is working as it is using the old debugger style. To adapt to 2.0 is not an option at the moment for us
p
I haven’t been able to use the debugger for the past two days.
πŸ‘πŸΌ 1
s
The scripts I write tend to be clear and concise (due in part to the libraries and practices) and do unit tests if things are more complex (i.e. tests that run locally to test business logic). So long story short, I rarely needed more than a few execution logs for debugging when code is finally running in netsuite. I also always felt the debugger was rather slow and klunky compared to other source level debuggers on other platforms, so that was a bit of a turnoff.
I'm a bit surprised to see a good number of you using it.
Also, we do functional decomposition of the problem, then have an autologger that logs entry/exit of every function and the params/return values automatically... which essentially means we get a no-effort logical execution trace in the execution log, which also aids in any debugging.
p
@Shawn Talbert That all sounds like good practice, but it sounds like you're disparaging use of the debugger. It's a tool provided for a purpose, and there's really no reason it can't/shouldn't be used. In 2.1 it's a very useful tool as it opens in chrome dev tools, which is a lot nicer to use.
s
Whatever makes you most effective as a developer is fine with me.
πŸ™ŒπŸΌ 1
p
@Shawn Talbert So, coffee then πŸ™‚
s
That's a given πŸ™‚
❀️ 1
p
Anyhow, I've raised a case. It would help if others who want to use it also raise a case, otherwise they might just think I'm using internet explorer and wearing a tinfoil hat
Obviously I am wearing a tinfoil hat, but I'm not keen on IE
s
Edge is the new Chrome
p
I actually like Edge. Internet Explorer was only good because it fell apart on any issue. In a way, Chromium based are almost too forgiving
s
True, though I wonder if having the vast majority of browser users on the same core (chromium) is the best thing
blob 100 1
p
@Toni Capella They've essentially agreed there's a bug
t
Hello @Paul Lawton, yes I received the same. Thanks for sharing πŸ‘
πŸ‘πŸΌ 1
p
@Toni Capella No worries and thanks πŸ™‚
p
it is now back up and debugging. happy debugging!!
❀️ 2
p
Thanks @Patrick A. I hopped in to say NS had sent an update that it was resolved, but I haven't checked it myself yet - appreciate the heads up
πŸ‘ 1