Skip to content

Commit

Permalink
fix: allow for JVM startup debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Dec 30, 2024
1 parent f9a5cef commit 5b8523d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jvm-runtime/plugin/common/jvmcommon.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ func (s *Service) runQuarkusDev(ctx context.Context, req *connect.Request[langpb
if err == nil {
devModeBuild = fmt.Sprintf("%s -Ddebug=%d", devModeBuild, debugPort.Port)
}
if os.Getenv("FTL_SUSPEND") == "true" {
devModeBuild += " -Dsuspend "
}
go func() {
logger.Infof("Using dev mode build command '%s'", devModeBuild)
command := exec.Command(ctx, log.Debug, buildCtx.Config.Dir, "bash", "-c", devModeBuild)
Expand Down

0 comments on commit 5b8523d

Please sign in to comment.