How to debug a Suitelet in WebStorm
I have a suitelet that starts with
/** * @NApiVersion 2.x * @NScriptType Suitelet */ define(['N/search', "N/ui/serverWidget","N/record", "N/log"], function(search, ui, record, log) { var res = onRequest(); var exports = {}; function onRequest(context){ log.audit({title: "Request received"}); var result = findLicenses();Whenever I try to debug it the Webstorm IDE gives me an error on the define statement - saying it cannot resolve the symbols for N/search, N/ui/serverWidget, N/record and N/log As I am a rookie I would like some pointers in the right direction on how to debug and step code of a Suitelet in Webstorm. I have installed the SuiteCloud IDE plugin, and I can upload and run my Suitelet in Netsuite without problems. So what I want is the ability to debug and step the code in WebStorm so I don't have to use the NetSuite debugger - if possible? Thank you in advance!
Your only choice for debugging suitelet code is the SuiteScript Debugger. This may change in the future when NetSuite successfully completes their new debugger.