How to debug TypeScript applications?

Learn on YouTube-

  1. CoreIDE can not run TypeScript code directly. You will need to setup TypeScript compiler using Gulp or other tools. The TypeScript compiler should be configured to provide output JavaScript code file and the mapping file.
  2. Open CoreIDE.
  3. Open your project.
  4. Go to Run/Debug tab.
  5. Click on Add (+) button it will open a new window. Here you can create your new run/debug configuration.
  6. Go to JavaScript tab in the new window.
    debug java
  7. Enter unique configuration name.
  8. Enter the command for example “node output.js --inspect-brk”. Make sure that your Node.js installation bin path is configured properly in system environment variables otherwise you will need to enter full path of the node installation.
  9. Check TypeScript checkbox.
  10. Enter the path for compiled/output JavaScript file and mapping file.
  11. Configure other fields as needed.
  12. Click on Save button.
  13. Now you can select your configuration from the dropdown and click on Run or Debug buttons to start.
    debug ts
  14. You can hover your cursor over the buttons to know the purpose and keyboard shortcut of a button.
  15. You can go to any Java file in the project and click on sidebar to add breakpoints.
    debug ts
  16. You can launch the debugger by pressing the () button.

Need more help? Please visit the CoreIDE Wiki for more articles. You can also report an issue or request a new feature.