Closed Kohagan91 closed 5 years ago
Hi,
I try TTD on an application with call to a N-API addon.
` try { var testAddon = require('C:/DEV/TestNAPI/blog-addons-example-master/build/Release/testaddon.node'); } catch(error) { console.error(error); } var http = require("http");
http.createServer(function (request, response) { response.writeHead(200, {'Content-Type': 'text/plain'}); response.end(testAddon.hello()); }).listen(8081); `
This script is very simple. testAddon.hello() return the date. I start this one with an command line tool node .\index.js => all is OK
If I do node --record .\index.js => I have only Recording is enabled (but not yet started)... and immediately that return to my CMD.
Thank you for your help :) ! And sorry for my bad English.
Hi,
I try TTD on an application with call to a N-API addon.
` try { var testAddon = require('C:/DEV/TestNAPI/blog-addons-example-master/build/Release/testaddon.node'); } catch(error) { console.error(error); } var http = require("http");
http.createServer(function (request, response) { response.writeHead(200, {'Content-Type': 'text/plain'}); response.end(testAddon.hello()); }).listen(8081); `
This script is very simple. testAddon.hello() return the date. I start this one with an command line tool node .\index.js => all is OK
If I do node --record .\index.js => I have only Recording is enabled (but not yet started)... and immediately that return to my CMD.
Thank you for your help :) ! And sorry for my bad English.