NetSuite Debugger

Please follow the below steps for debugging in netsuite. Use the below mentioned script for practice by netsuite solution provider

define([‘N/record’,’N/search’],function(record,search){

function execute(){
    var searchObj = search.load({id:'customsearch5801'});
    var searchResult = searchObj.run().getRange(0,999);
    var length = searchResult.length;
    log.debug(length);
}
return{
    execute: execute
};

});

require([‘N/record’,’N/search’],function(record,search){

//function execute(){
    var searchObj = search.load({id:'customsearch5801'});
    var searchResult = searchObj.run().getRange(0,999);
    var length = searchResult.length;
    log.debug(length);
//}
/*return{
    execute: execute
};*/

});

As a netsuite solution provider we recommend you to use the power of debugger 

Step 1) Open the debugger.
Step 2) Paste you scheduled script or user event script etc to test in debugger.
Step 3) change the define function to require. and remove the function execute. also remove the return statement.
step 4) Click on debug button. the debugger starts debugging.
Step 5) Put breakpoint. on line number 5 and line number 7, So that the debugger. stops here . and clicks the step over button to go to next step
Step 6) And you will move to validate the local variables. where you can see the result of search object.
Step 7) Expand the result one by one and see the vaules availbale in each section filters and column of search object.


NetSuite Debugger

Feel free to reach out TheSmilingCoders for proper netsuite implementationnetsuite consultation , netsuite customizationnetsuite Support,netsuite Training contact us at:

Email : info@smilingcoders.com

Facebook : https://www.facebook.com/Smiling-Coders-Netsuite-Training-Implementation-and-Support-1591053827660082/

Linkedin : https://www.linkedin.com/company/netsuite-academy/


Leave a Reply