Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What's the error "noDebug mode: unable to process 'evaluate' request" means when I use visual studio code to run Go?

An error occured when I run the code and input something.
enter image description here
It says "noDebug mode: unable to process ‘evaluate’ request" .What should I do to solve this problem?

package main

import "fmt"

func main() {
    for {
        fmt.Println("Welcome to math world.Input 1 to an addiction,2 to a subtraction,3 to a multiplication,4 to a division")
        choice := 0
        fmt.Scanf("%d", &choice)
        var a, b int
        fmt.Scanf("%d %d", &a, &b)
        switch choice {
        case 1:
            fmt.Println(add(a, b))
        case 2:
            fmt.Println(subtract(a, b))
        case 3:
            fmt.Println(multiply(a, b))
        case 4:
            fmt.Println(divide(a, b))
        default:
            fmt.Println("The order is not exist!")
        }
    }
}

func add(a, b int) int {
    return a + b
}

func subtract(a, b int) int {
    return a - b
}

func multiply(a, b int) int {
    return a * b
}
func divide(a, b int) int {
    return a / b
}

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Please refer to this Github issue raised. This may be related to VS Code too as stated.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading