-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(intellij): implemented robot framework debugger
- Loading branch information
Showing
44 changed files
with
1,780 additions
and
134 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
18 changes: 18 additions & 0 deletions
18
...client/src/main/kotlin/dev/robotcode/robotcode4ij/debugging/RobotCodeBreakpointHandler.kt
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,18 @@ | ||
package dev.robotcode.robotcode4ij.debugging | ||
|
||
import com.intellij.xdebugger.breakpoints.XBreakpointHandler | ||
import com.intellij.xdebugger.breakpoints.XLineBreakpoint | ||
|
||
class RobotCodeBreakpointHandler(val process: RobotCodeDebugProcess) : | ||
XBreakpointHandler<XLineBreakpoint<RobotCodeBreakpointProperties>>(RobotCodeBreakpointType::class.java) { | ||
override fun registerBreakpoint(breakpoint: XLineBreakpoint<RobotCodeBreakpointProperties>) { | ||
process.registerBreakpoint(breakpoint) | ||
} | ||
|
||
override fun unregisterBreakpoint( | ||
breakpoint: XLineBreakpoint<RobotCodeBreakpointProperties>, | ||
temporary: Boolean | ||
) { | ||
process.unregisterBreakpoint(breakpoint) | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ent/src/main/kotlin/dev/robotcode/robotcode4ij/debugging/RobotCodeBreakpointProperties.kt
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,14 @@ | ||
package dev.robotcode.robotcode4ij.debugging | ||
|
||
import com.intellij.xdebugger.breakpoints.XBreakpointProperties | ||
|
||
class RobotCodeBreakpointProperties : XBreakpointProperties<RobotCodeBreakpointProperties>() { | ||
|
||
override fun getState(): RobotCodeBreakpointProperties { | ||
return this | ||
} | ||
|
||
override fun loadState(state: RobotCodeBreakpointProperties) { | ||
TODO("Not yet implemented") | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...ij-client/src/main/kotlin/dev/robotcode/robotcode4ij/debugging/RobotCodeBreakpointType.kt
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,20 @@ | ||
package dev.robotcode.robotcode4ij.debugging | ||
|
||
import com.intellij.openapi.project.Project | ||
import com.intellij.openapi.vfs.VirtualFile | ||
import com.intellij.xdebugger.breakpoints.XLineBreakpointType | ||
|
||
class RobotCodeBreakpointType : XLineBreakpointType<RobotCodeBreakpointProperties>(ID, NAME) { | ||
companion object { | ||
private const val ID = "robotcode-line" | ||
private const val NAME = "robotcode-line-breakpoint" | ||
} | ||
|
||
override fun createBreakpointProperties(file: VirtualFile, line: Int): RobotCodeBreakpointProperties? { | ||
return RobotCodeBreakpointProperties() | ||
} | ||
|
||
override fun canPutAt(file: VirtualFile, line: Int, project: Project): Boolean { | ||
return true | ||
} | ||
} |
Oops, something went wrong.