HttpDebugService class is used to manage HTTP debug configuration and behavior. This service provides functionality to configure how the getCaller function identifies the actual caller in the stack trace by allowing specific files to be ignored during stack trace analysis.ts
import { HttpDebugService } from "@arkyn/server";
ignoreFilestring | undefinedgetCaller function will skip stack frames containing this file name.setIgnoreFile(file: string)file (string): The name of the file to ignore in stack traces (e.g., "httpAdapter.ts")typescript
// Configure to ignore httpAdapter.ts in stack tracesHttpDebugService.setIgnoreFile("httpAdapter.ts");// Now when httpDebug is called from within httpAdapter.ts,// it will show the actual caller (e.g., cart.ts) instead
typescript
// Ignore the HTTP adapter file so debug shows the actual business logic callerHttpDebugService.setIgnoreFile("httpAdapter.ts");