CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-egg-bin

Developer tool for Egg.js framework providing development server, testing, coverage, and debugging capabilities

Pending

Quality

Pending

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

debug-command.mddocs/

Debug Command

The debug command provides a convenient alias to start the development server with Node.js debugging enabled.

Capabilities

DebugCommand

Simple command that redirects to the development server with debugging enabled.

/**
 * Debug command that aliases to 'egg-bin dev --inspect'
 * Extends Artus CLI Command directly for simple redirection
 */
class DebugCommand extends Command {
  /** Injected Artus CLI utilities */
  utils: Utils;
  
  /**
   * Executes debug command by redirecting to dev with --inspect
   * Uses Artus CLI utils.redirect for command delegation
   */
  run(): Promise<void>;
}

Usage Examples:

# Start debug server (equivalent to 'egg-bin dev --inspect')
egg-bin debug

# All other options should be passed to dev command directly
egg-bin dev --inspect --port 8000 --workers 2

Command Redirection

The debug command uses Artus CLI's built-in redirection mechanism:

/**
 * Artus CLI redirection interface
 * Allows commands to delegate to other commands with additional arguments
 */
interface CommandRedirection {
  /** Redirect to another command with specified arguments */
  redirect(args: string[]): Promise<void>;
}

Integration

The debug command integrates seamlessly with the development server:

  • All development server options are available through the dev --inspect command
  • VSCode debugging configurations should target the dev command directly
  • The debug command exists purely for convenience and discoverability

Note: For advanced debugging scenarios, use egg-bin dev --inspect or egg-bin dev --inspect-brk directly with additional options as needed.

Install with Tessl CLI

npx tessl i tessl/npm-egg-bin

docs

base-command.md

coverage-testing.md

debug-command.md

development-server.md

index.md

test-runner.md

tile.json