![]() ![]() The only difference is that you can set breakpoints right in the TypeScript code.Ĭompile the TypeScript code into JavaScript. You can write a client-side application in TypeScript, compile the code as described in Compiling TypeScript into JavaScript, and then run and debug your application exactly in the same way as client-side applications written in JavaScript. ![]() As a result, you can set breakpoints in your TypeScript code, launch the application with the run/debug configuration of the type JavaScript Debug (for client-side code) or Node.js, and then step through your original TypeScript code, thanks to generated sourcemaps. You can do that using the built-in TypeScript compiler and other tools, including ts-node for running TypeScript with Node.js, used separately or as part of build process.ĭuring compilation, there can also be generated source maps that set correspondence between your TypeScript code and the JavaScript code that is actually executed. ![]() With RustRover, you can run and debug client-side TypeScript code and TypeScript code running in Node.js.ĭebugging of TypeScript client-side code is only supported in Google Chrome and in other Chromium-based browsers.įor more information about running and debugging TypeScript with Angular, refer to Running and debugging Angular applications.īefore running or debugging an application, you need to compile your TypeScript code into JavaScript. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |