Skip to content

Commit

Permalink
Enhance runtime error stack trace output for better debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Aug 1, 2024
1 parent 8be08bc commit 681b3f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import (
// Start v8 runtime
func Start(cfg config.Config) error {

debug := false
if cfg.Mode == "development" {
debug = true
}

option := &v8.Option{
MinSize: cfg.Runtime.MinSize,
MaxSize: cfg.Runtime.MaxSize,
Expand All @@ -24,6 +29,7 @@ func Start(cfg config.Config) error {
DefaultTimeout: cfg.Runtime.DefaultTimeout,
ContextTimeout: cfg.Runtime.ContextTimeout,
Import: cfg.Runtime.Import,
Debug: debug,
}

// Read the tsconfig.json
Expand Down

0 comments on commit 681b3f9

Please sign in to comment.