DonJayamanne / javaVSCode

Extension for java development on VSCode (deprecated)
https://marketplace.visualstudio.com/items?itemName=donjayamanne.javaDebugger
MIT License
43 stars 30 forks source link

Need help on how to use this debugger #63

Closed toastk32 closed 6 years ago

toastk32 commented 6 years ago

Hello. I'm a little lost on how to use this debugger. I was watched the gifs on the 'readme' page and whenever I clicked the green-play button, it doesn't look like the gif.

Some questions I have:

  1. I placed the red dot on the side but the debugger starts debugging at the beginning of my code?
  2. How do I watch a variable?

This is what my screen looks like after I press the play button.

1

faustinoaq commented 6 years ago

Just compile with javac -g to enable debug info.

Read the README again (see the -g)

{
    "version": "0.1.0",
    "command": "javac",
    "isShellCommand": true,
    "showOutput": "always",
    "isWatching": true,
    "suppressTaskName": true,
    "tasks": [
        {
            "taskName": "build",
            "args": ["-g", "${file}"]
        }
    ]
}
toastk32 commented 6 years ago

I changed it to this and it still doesn't show info?

{
    "version": "2.0.0",
    "type": "shell",
    "presentation": {
        "echo": true,
        "reveal": "always",
        "focus": false,
        "panel": "shared"
    },
    "isBackground": true,
    "suppressTaskName": true,
    "tasks": [
        {
            "taskName": "build",
            "command": "javac",
            "args": ["javac -g", "${file}"]
        }
    ]
}
faustinoaq commented 6 years ago

I don't know what would be the problem 😅