Enhance runtime error stack trace output for better debugging
This commit is contained in:
parent
8be08bc791
commit
681b3f9514
1 changed files with 6 additions and 0 deletions
|
|
@ -12,6 +12,11 @@ import (
|
||||||
// Start v8 runtime
|
// Start v8 runtime
|
||||||
func Start(cfg config.Config) error {
|
func Start(cfg config.Config) error {
|
||||||
|
|
||||||
|
debug := false
|
||||||
|
if cfg.Mode == "development" {
|
||||||
|
debug = true
|
||||||
|
}
|
||||||
|
|
||||||
option := &v8.Option{
|
option := &v8.Option{
|
||||||
MinSize: cfg.Runtime.MinSize,
|
MinSize: cfg.Runtime.MinSize,
|
||||||
MaxSize: cfg.Runtime.MaxSize,
|
MaxSize: cfg.Runtime.MaxSize,
|
||||||
|
|
@ -24,6 +29,7 @@ func Start(cfg config.Config) error {
|
||||||
DefaultTimeout: cfg.Runtime.DefaultTimeout,
|
DefaultTimeout: cfg.Runtime.DefaultTimeout,
|
||||||
ContextTimeout: cfg.Runtime.ContextTimeout,
|
ContextTimeout: cfg.Runtime.ContextTimeout,
|
||||||
Import: cfg.Runtime.Import,
|
Import: cfg.Runtime.Import,
|
||||||
|
Debug: debug,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read the tsconfig.json
|
// Read the tsconfig.json
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue