Judiciously Placed Print Statements

“The most effective debugging tool is still careful thought, coupled with judiciously placed print statements.”

– Brian W. Kernighan

No matter how smart, savvy, or experienced you are with SuiteScript (or any programming language), you are going to make mistakes and introduce bugs – repeatedly. This morning alone I made several while trying to detect duplicate Case records being created.

Using the system I outlined in this week’s logging topic, I was able to quickly narrow down the sources of these issues and rectify them. After more than a decade of programming, log messages are still my #1 debugging tool.

However, I know that’s not true for everyone, and there are a couple of tools you can use to aid in your own SuiteScript debugging efforts:

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Related posts

March 3, 2021

Does the physical location of a competent employee change the amount of value they can deliver for your organization? If it does, I’d be keen to hear your story. If it does not, why ...

Read More

March 2, 2021

Today a friend and former colleague of mine – who happens to now be in a development leadership role for a NetSuite partner – was lamenting the extreme difficulty of finding and hiring NetSuite ...

Read More

March 1, 2021

Software is never finished; clients are always changing and re-prioritizing. NetSuite is ever a moving target – always updating and evolving. Market forces are always shifting and shoving, forcing new demands on your business. ...

Read More