Debugger, tests: Change ADDITIONAL_BREAKPOINT directive format

- Make it extendable and easier to parse
- Allow to create additional function breakpoints
This commit is contained in:
Yan Zhulanow
2020-02-06 21:14:48 +09:00
parent 4244f05307
commit bf890a1540
15 changed files with 49 additions and 44 deletions
@@ -12,7 +12,7 @@ fun unused() {
secondInline()
}
// ADDITIONAL_BREAKPOINT: manyFilesWithInlineCalls1.First.kt: Breakpoint 1
// ADDITIONAL_BREAKPOINT: manyFilesWithInlineCalls1.First.kt / Breakpoint 1
// FILE: manyFilesWithInlineCalls1.First.kt
package manyFilesWithInlineCalls1.first
@@ -12,7 +12,7 @@ fun unused() {
firstInline()
}
// ADDITIONAL_BREAKPOINT: manyFilesWithInlineCalls2.Second.kt: Breakpoint 1
// ADDITIONAL_BREAKPOINT: manyFilesWithInlineCalls2.Second.kt / Breakpoint 1
// FILE: manyFilesWithInlineCalls2.First.kt
package manyFilesWithInlineCalls2.first
@@ -16,7 +16,7 @@ fun secondCall() {
}
// RESUME: 2
// ADDITIONAL_BREAKPOINT: severalInlineCallsFromOtherFile.Other.kt: Breakpoint 1
// ADDITIONAL_BREAKPOINT: severalInlineCallsFromOtherFile.Other.kt / Breakpoint 1
// FILE: severalInlineCallsFromOtherFile.Other.kt
package severalInlineCallsFromOtherFile
@@ -5,7 +5,7 @@ fun main(args: Array<String>) {
customLib.functionInLibrary.simpleFun()
}
// ADDITIONAL_BREAKPOINT: functionInLibrary.kt:public inline fun simpleFun()
// ADDITIONAL_BREAKPOINT: functionInLibrary.kt / public inline fun simpleFun()
// STEP_INTO: 5
// FILE: customLib/functionInLibrary/functionInLibrary.kt
@@ -5,7 +5,7 @@ fun main(args: Array<String>) {
inlineInObject.other.TestInlineInObject.inlineFun()
}
// ADDITIONAL_BREAKPOINT: inlineInObject.Other.kt: Breakpoint 1
// ADDITIONAL_BREAKPOINT: inlineInObject.Other.kt / Breakpoint 1
// FILE: inlineInObject.Other.kt
package inlineInObject.other
@@ -5,7 +5,7 @@ fun main(args: Array<String>) {
inlineFun()
}
// ADDITIONAL_BREAKPOINT: stopInInlineInOtherFile.Other.kt: Breakpoint 1
// ADDITIONAL_BREAKPOINT: stopInInlineInOtherFile.Other.kt / Breakpoint 1
// FILE: stopInInlineInOtherFile.Other.kt
package stopInInlineInOtherFile
@@ -6,7 +6,7 @@ fun main(args: Array<String>) {
val i = 1
}
// ADDITIONAL_BREAKPOINT: stopInInlineInOtherFileWithLambdaArgument.Other.kt: Breakpoint 1
// ADDITIONAL_BREAKPOINT: stopInInlineInOtherFileWithLambdaArgument.Other.kt / Breakpoint 1
// FILE: stopInInlineInOtherFileWithLambdaArgument.Other.kt
package stopInInlineInOtherFileWithLambdaArgument
@@ -19,7 +19,7 @@ fun main(args: Array<String>) {
AA().other()
}
// ADDITIONAL_BREAKPOINT: stopInWrongClass.Other.kt: Breakpoint 1
// ADDITIONAL_BREAKPOINT: stopInWrongClass.Other.kt / Breakpoint 1
// FILE: stopInWrongClass.Other.kt
package stopInWrongClass