Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Readline() not work well (sdb plugin) #46

@callmekohei

Description

@callmekohei

Hello! I'm callmekohei!

screen shot 2018-01-13 at 14 44 25

Problesm

Readline() not work well.

like this

(sdb) mycmd foo.exe
....
(sdb)                  // <--- I can not watch input strings (^_^;;;

repro

  1. wirte code
open Mono.Debugger.Client
open Mono.Debugging.Client

open System.IO

[<Sealed; Command>]
type MyCommand() =
    inherit Command()
    override __.Names   = [|"mycmd"|]
    override __.Summary = "aaa bbb ccc"
    override __.Syntax  = "ddd eee fff"
    override __.Help    = "Help Help Help"
    override __.Process(args) =

        let file = new FileInfo(args)
        Debugger.Run(file)

        let width = System.Console.WindowWidth
        Log.Info(String.replicate width "" )

02 compile and move dll

$ fsharpc -a -r:$(dirname $(which sdb))/../lib/sdb/sdb.exe test.fsx
$ mv test.dll ../.sdb/

03 launch sdb and run

$ sdb
(sdb) mycmd foo.exe
...
(sdb)                  // <--- I can not watch input strings (^_^;;;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions