"Debugging your JavaScript/TypeScript code when it runs on the server" in Azure App Service #522

Closed
opened 2025-08-09 17:16:37 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @riiight on 8/7/2017

I believe I have an error in my code that is running in Node on the server. I see that the OP of this post has NodeServices debug statements such as the following being returned from their Azure App Service:

fail: Microsoft.AspNetCore.NodeServices[0]
      node.js:384

I attempted to use the instructions here to also get those debug statements but I believe those are not specific to Azure. Here's what's in my Startup.cs's ConfigureServices:

services.AddNodeServices(options => {
  options.InvocationTimeoutMilliseconds = 300000;
  options.LaunchWithDebugging = true;
  options.DebuggingPort = 9229;
});

But I am still not seeing those NodeServices debug statements. Can anyone help with this? Thx.

P.S. I noticed that NodeServicesOptions has NodeInstanceOutputLogger but couldn't find a way to hook that up with ASP.NET Core's dependency injection in the Startup.cs's ConfigureServices(). Any help with this is also appreciated.

*Originally created by @riiight on 8/7/2017* I believe I have an error in my code that is running in Node on the server. I see that the OP of this [post ](https://github.com/aspnet/JavaScriptServices/issues/1070) has NodeServices debug statements such as the following being returned from their Azure App Service: ``` fail: Microsoft.AspNetCore.NodeServices[0] node.js:384 ``` I attempted to use the instructions [here](https://github.com/aspnet/JavaScriptServices/tree/dev/src/Microsoft.AspNetCore.SpaServices#debugging-your-c-code-that-runs-on-the-server) to also get those debug statements but I believe those are not specific to Azure. Here's what's in my Startup.cs's ConfigureServices: ``` services.AddNodeServices(options => { options.InvocationTimeoutMilliseconds = 300000; options.LaunchWithDebugging = true; options.DebuggingPort = 9229; }); ``` But I am still not seeing those NodeServices debug statements. Can anyone help with this? Thx. P.S. I noticed that NodeServicesOptions has NodeInstanceOutputLogger but couldn't find a way to hook that up with ASP.NET Core's dependency injection in the Startup.cs's ConfigureServices(). Any help with this is also appreciated.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#522
No description provided.