Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

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

@riiight

Description

@riiight

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions