How can I debug Grid JS2 source code

Hi

In order to learn and, some times, add features or discover bugs I use to debug source code, how can I debug JS code of the components.

Thanks
Marco

5 Replies

VA Venkatesh Ayothi Raman Syncfusion Team March 15, 2018 01:09 PM UTC

Hi Marco, 

Thanks for using Syncfusion products. 

Before we proceed your requirement, we need some following details, 
  1. Are you using pure JavaScript(typescript)?
  2. Are you using any bundling?
  3. Are you using node modules packages or CDN link?
  4. Which framework(JavaScript, angular, and react) you are using in your project?
It would be help for us to find the appropriate requirement and provide the solution based on your project. 

Regards, 
Venkatesh Ayothiraman. 



MA Marc March 15, 2018 05:10 PM UTC

Hi. I'm using pure JS ES5 (no TypeScript) with the simpliest :

@import 'JavaScript/ej2/material.css';
<script src="JavaScript/ej2/dist/ej2.min.js"></script>
Thanks


VA Venkatesh Ayothi Raman Syncfusion Team March 16, 2018 12:29 PM UTC

Hi Marco, 

Thanks for the update. 

For your requirement, we can get the un-minified files from Custom Resource Generator(CRG) for Essential JS-2. In that CRG, we can select the corresponding control by tick the checkbox. Please refer to the following screenshot, 
 
We can choose the CSS file from Dropdown. Please refer to the following screenshot, 
 
After the selecting the corresponding control and CSS files then we can download the those from following button which is in bottom right corner like as follows, 
 
Please refer to the following link for CRG, 
We can debug the EJ2 source when we referred downloaded un-minified files from CRG. Please let us know if you have any further assistance on this. 

Regards, 
Venkatesh Ayothiraman. 



MA Marc March 16, 2018 05:48 PM UTC

Hi

I download all components in one .js but now I get an error:



And that's because ej.data can't be found.



I see that there is no "Data" component in CRG, how can I solve that?

Thanks


VA Venkatesh Ayothi Raman Syncfusion Team March 19, 2018 11:50 AM UTC

Hi Marco, 

Thanks for the update. 

Yes, we are also faced the issue “Generating the Scripts/CSS files for all components from CRG ” and we have considered this as issue and logged the defect report and it will be updated to live on March 23,2018. Until we suggest you use Single component which you want to Debug the source file. For example, do you want to debug the Grid source then we can Grid component only in CRG.    
Please let us know if you have any further assistance on this. 

Regards, 
Venkatesh Ayothiraman. 


Loader.
Up arrow icon