-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #599 from adpi2/better-stack-trace
Better stack trace
- Loading branch information
Showing
71 changed files
with
44,616 additions
and
2,267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
modules/tests/src/main/scala/ch/epfl/scala/debugadapter/testfmk/CommonFunSuite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package ch.epfl.scala.debugadapter.testfmk | ||
|
||
import scala.concurrent.duration.* | ||
import scala.util.Properties | ||
|
||
trait CommonFunSuite extends munit.FunSuite { | ||
def isJava8: Boolean = Properties.javaVersion.startsWith("1.8") | ||
|
||
def isDebug: Boolean = DebugUtils.isDebug | ||
|
||
override def munitTimeout: Duration = | ||
if (isDebug) 8.hours else super.munitTimeout | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
modules/tests/src/main/scala/ch/epfl/scala/debugadapter/testfmk/DebugUtils.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package ch.epfl.scala.debugadapter.testfmk | ||
|
||
import java.lang.management.ManagementFactory | ||
import scala.jdk.CollectionConverters.* | ||
|
||
object DebugUtils { | ||
def isDebug: Boolean = { | ||
val mxBean = ManagementFactory.getRuntimeMXBean | ||
mxBean.getInputArguments.asScala.exists(_.contains("jdwp")) | ||
} | ||
} |
Oops, something went wrong.