Search code examples
c#node.jsuwpraspberry-pi2windowsiot

UWP with Node.js and C# library. How to debug the C# side?


I have a problem with my application for Raspberry PI with Windows IoT Core. I would expose a little server to manage the IO. For do that, I've a C# library that manage the IO and a WinRT bridge to take the informations from the C# library and give them to the Node.js server. But when I put a breackpoint in the C# library or in the WinRT bridge, it does not work. It only works in the Node.js file. How could I manage it? There's a way to make it works? Thanx a lot for answers


Solution

  • I would expose a little server to manage the IO.

    Enables Node.js to use the ChakraCore JavaScript engine you full access to UWP APIs from Node.js applications. No need for C# library and WinRT bridge.

    HelloBlinky is official sample of managing GPIO in Node.js server that you can reference.