1.0.1 • Published 1 month ago
telescope-nodeapi v1.0.1
Introduction
Repo for all NodeAPI projects. Currently includes:
- journeys (see src/journeys.cpp for the potential improvements/ TODO items)
Getting Started
Debugging Node-API extensions in Visual Studio Code
NOTE: Large data sets can cause the typescript compiler to crash. If you are experiencing this, delete the data file before trying to run the compiler - only keep the data file when using this debugging code in this folder
- Open this repo as a workspace in Visual Studio Code.
- Modify the file 'test/test_binding.js' to load custom data (in the case of journeys, it has a dryRun flag, where it can, instead of calling the Node-API extension, return all the data that would be provided as parameters to the extension).
- Set breakpoints in the code (src/*.cpp)
- Run "LLDB Launch" from the Debug menu. (You need this extension: https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)