com.jtransc.debugger.debugger.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtransc-debugger Show documentation
Show all versions of jtransc-debugger Show documentation
JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.
package com.jtransc.debugger
import com.jtransc.async.Promise
import com.jtransc.debugger.v8.normalizePath
open class JTranscDebugger(val handler: EventHandler) {
open class EventHandler {
open fun onBreak(): Unit {
}
}
open fun initAsync(): Promise {
return Promise.resolved(Unit)
}
data class SourcePosition(val file: String, val line: Int) {
val normalizedFile = normalizePath(file)
override fun toString(): String = "SourcePosition($normalizedFile:$line)"
}
open class Value() {
open val type: String = "type"
open val value: String = "value"
}
open class Local() {
open val name: String = ""
open val value: Value = Value()
}
open class Frame() {
open val position = SourcePosition("unknown", -1)
open val locals = listOf()
open fun evaluate(expr: String): Any? = null
override fun toString() = "Frame(position=$position)"
}
open val currentPosition = SourcePosition("unknown", -1)
open fun resume() {
}
open fun pause() {
}
open fun stepOver() {
}
open fun stepInto() {
}
open fun stepOut() {
}
open fun disconnect() {
}
open fun backtrace(): List {
return listOf()
}
open fun setBreakpoint(script: String, line: Int): Breakpoint {
return Breakpoint()
}
open class Breakpoint {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy