graal icon indicating copy to clipboard operation
graal copied to clipboard

Add output group for VS Code extension

Open nirvdrum opened this issue 3 years ago • 3 comments

Feature request

Please include the following information:

Is your feature request related to a problem? Please describe.

I've been trying to use the "GraalVM Tools for Java" VS Code extension to debug a Ruby application with TruffleRuby. I've run into a variety of problems such as:

  • Inability to set a breakpoint
    • I see message that says "Failed to load message bundle. See console for details."
  • Crash expanding the "Globals" view

I can't see or find any log output related to these issues.

Describe the solution you'd like.

I'm not a VS Code expert, so apologies if I get the nomenclature incorrect. VS Code has an area called "Outputs" with different "channels" that show log output related to that extension or section of VS Code. It would be nice if there were a channel for "GraalVM Tools for Java" so it'd be easy to locate any log messages.

Describe who do you think will benefit the most.

End users trying to debug applications using Truffle interpreters.

Describe alternatives you've considered.

I've tried looking for log data in other channels. I was unable to do so.

Additional context.

N/A

Express whether you'd like to help contributing this feature

I don't know anything about writing a VS Code extension, so I'm afraid I won't be much help there. But, I'm happy to work with the tools team on design and test.

nirvdrum avatar Sep 08 '22 20:09 nirvdrum

Hi, Thank you for your suggestion, we'll take a look into it

oubidar-Abderrahim avatar Sep 13 '22 09:09 oubidar-Abderrahim

We need more details, like sample code to see where breakpoint cannot be set. thank you

MartinBalin avatar Sep 13 '22 12:09 MartinBalin

I'll file a separate issue about the breakpoint not being able to be set. This issue is about the lack of feedback from the extension when something breaks. Most other extensions have an output channel that can be selected from the "Output" view. The GraalVM Tools for Java does not, so it's not clear where, if anywhere, its log output ends up.

nirvdrum avatar Sep 14 '22 19:09 nirvdrum

Here's a video showing what I mean by output groups. You'll notice there are several sections that show logs just for that entry. There is no option for the GraalVM Tools for Java extension, making it much harder to find any log data.

https://user-images.githubusercontent.com/12584/191971841-5136f52d-0db3-4bd3-9d65-dd3bb24bc7e9.mp4

nirvdrum avatar Sep 23 '22 13:09 nirvdrum