2/17/2024 0 Comments Intellij debug nodeNotice that you don’t need to put any - inspect so the experience is a lot smoother. To debug your app you can run: ndb index.js For example, if you were used to doing node index.js or nodemon index.js in development. Run the app with ndb (not node or nodemon)įor debugging nodejs applications with ndb, you can directly run the nodejs app script with ndb rather than node. One thing I had to fix was to get the latest version of Chrome, as I saw some permission issues. You can also install and use it locally per app if you want. I would suggest that you install it globally with: # with npm All you need to do to get started debugging your nodejs application is to install ndb. It has mocha tests too as it was a demo for testing a nodejs application. This is a very simple application with most of the logic in exchangeRates.js file. You can clone the application from github and run npm install to get it ready for debugging. If not, it will fetch it from another API and send it back to the user, also saving the rate in the database at the same time (async) for later use. If the conversion rate is available in the database, it will fetch it from the database. You can also check out the running app hosted on Zeit Now to see the USD to AUD rate of 2019–01–10 as an example. It is built using the ExpressJS framework. I am using my open source currency API for this step-by-step guide to debugging a nodejs application. Debugging nodejs express application as a demo It is an open source application I used for a demo on testing nodejs applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |