Skip to content

Commit

Permalink
Issue #46: Enable the GemServer to listen for DEBUGGEM connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtkilpela committed Jun 28, 2024
1 parent 3f241f9 commit 75d2d4c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@ service instance-server
startServerOn: portOrResourceName
"start server in current vm. Not expected to return."

| shouldListenForDebug |
shouldListenForDebug := [ (System gemEnvironmentVariable: 'SeasideGemServerShouldListenForDebug') = 'true' ]
on: Error
do: [:ex | ex return: false].
shouldListenForDebug ifTrue: [System listenForDebugServer].
self startBasicServerOn: portOrResourceName.
[ true ] whileTrue: [ (Delay forSeconds: 10) wait ]
[ true ] whileTrue: [ (Delay forSeconds: 10) wait ]

0 comments on commit 75d2d4c

Please sign in to comment.