Debugger tests: do not check breakpoint line and file extension for JDK classes
This commit is contained in:
@@ -2,7 +2,7 @@ LineBreakpoint created at doNotSkipClassloader.kt:7
|
|||||||
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !APP_PATH!\classes;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! doNotSkipClassloader.DoNotSkipClassloaderPackage
|
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !APP_PATH!\classes;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! doNotSkipClassloader.DoNotSkipClassloaderPackage
|
||||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||||
doNotSkipClassloader.kt:6
|
doNotSkipClassloader.kt:6
|
||||||
ClassLoader.class:98
|
ClassLoader.!EXT!
|
||||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||||
|
|
||||||
Process finished with exit code 0
|
Process finished with exit code 0
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socke
|
|||||||
stepIntoSpecificKotlinClasses.kt:7
|
stepIntoSpecificKotlinClasses.kt:7
|
||||||
MyJavaClass.java:11
|
MyJavaClass.java:11
|
||||||
stepIntoSpecificKotlinClasses.kt:7
|
stepIntoSpecificKotlinClasses.kt:7
|
||||||
Intrinsics.class
|
Intrinsics.!EXT!
|
||||||
stepIntoSpecificKotlinClasses.kt:7
|
stepIntoSpecificKotlinClasses.kt:7
|
||||||
stepIntoSpecificKotlinClasses.kt:8
|
stepIntoSpecificKotlinClasses.kt:8
|
||||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ LineBreakpoint created at stepIntoStdlib.kt:6
|
|||||||
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !APP_PATH!\classes;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! stepIntoStdlib.StepIntoStdlibPackage
|
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !APP_PATH!\classes;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! stepIntoStdlib.StepIntoStdlibPackage
|
||||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||||
stepIntoStdlib.kt:5
|
stepIntoStdlib.kt:5
|
||||||
KotlinPackage.class
|
KotlinPackage.!EXT!
|
||||||
_Mapping.kt
|
_Mapping.!EXT!
|
||||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||||
|
|
||||||
Process finished with exit code 0
|
Process finished with exit code 0
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ import com.intellij.debugger.impl.PositionUtil
|
|||||||
import com.intellij.execution.process.ProcessOutputTypes
|
import com.intellij.execution.process.ProcessOutputTypes
|
||||||
import com.intellij.openapi.roots.libraries.LibraryUtil
|
import com.intellij.openapi.roots.libraries.LibraryUtil
|
||||||
import org.jetbrains.jet.plugin.JetJdkAndLibraryProjectDescriptor
|
import org.jetbrains.jet.plugin.JetJdkAndLibraryProjectDescriptor
|
||||||
|
import com.intellij.openapi.roots.JdkOrderEntry
|
||||||
|
import com.intellij.openapi.util.io.FileUtil
|
||||||
|
|
||||||
abstract class KotlinDebuggerTestBase : KotlinDebuggerTestCase() {
|
abstract class KotlinDebuggerTestBase : KotlinDebuggerTestCase() {
|
||||||
|
|
||||||
@@ -61,9 +63,10 @@ abstract class KotlinDebuggerTestBase : KotlinDebuggerTestCase() {
|
|||||||
return@runReadAction println("VirtualFile for position is null", ProcessOutputTypes.SYSTEM)
|
return@runReadAction println("VirtualFile for position is null", ProcessOutputTypes.SYSTEM)
|
||||||
}
|
}
|
||||||
|
|
||||||
val isInStdlib = LibraryUtil.findLibraryEntry(virtualFile, getProject())?.getPresentableName() == JetJdkAndLibraryProjectDescriptor.LIBRARY_NAME
|
val libraryEntry = LibraryUtil.findLibraryEntry(virtualFile, getProject())
|
||||||
if (isInStdlib) {
|
if (libraryEntry != null && (libraryEntry is JdkOrderEntry ||
|
||||||
return@runReadAction println(virtualFile.getName(), ProcessOutputTypes.SYSTEM)
|
libraryEntry.getPresentableName() == JetJdkAndLibraryProjectDescriptor.LIBRARY_NAME)) {
|
||||||
|
return@runReadAction println(FileUtil.getNameWithoutExtension(virtualFile.getName()) + ".!EXT!", ProcessOutputTypes.SYSTEM)
|
||||||
}
|
}
|
||||||
|
|
||||||
println(virtualFile.getName() + ":" + sourcePosition.getLine(), ProcessOutputTypes.SYSTEM)
|
println(virtualFile.getName() + ":" + sourcePosition.getLine(), ProcessOutputTypes.SYSTEM)
|
||||||
|
|||||||
Reference in New Issue
Block a user