mojo icon indicating copy to clipboard operation
mojo copied to clipboard

[BUG]: Mojo VS Code extension results in error dialog when debugging

Open ngocngoan opened this issue 1 year ago • 7 comments

Bug description

I have been installed successfully the Mojo extension for VS Code. But, when I have started to debug source hello, then VS Code showed an error dialog: Screenshot from 2023-09-13 14-24-54

Steps to reproduce

  • Install the latest Mojo extension.
  • Reload VS Code.
  • Clone example source from https://github.com/modularml/mojo.git
  • Set the debug configuration in the file .vscode/launch.json with the following content:
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "mojo-lldb",
            "request": "launch",
            "name": "Debug",
            "program": "${workspaceRoot}/examples/hello.🔥",
            "args": [],
            "env": [],
            "cwd": "${workspaceRoot}"
        }
    ]
}
  • hit F5 button

System information

  • OS
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy
  • Vscode
Version: 1.82.1
Commit: 6509174151d557a81c9d0b5f8a5a1e9274db5585
Date: 2023-09-08T08:41:36.199Z
Electron: 25.8.0
ElectronBuildId: 23503258
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Linux x64 6.2.0-32-generic
  • Mojo version
mojo 0.2.1 (64d14e85)
  • Provide Modular CLI version
modular 0.1.4 (6b54d308)

ngocngoan avatar Sep 13 '23 07:09 ngocngoan

Hi @ngocngoan thanks for reporting, it's an experimental feature and is still being worked on, but we can leave this open until it's working for everyone.

jackos avatar Sep 13 '23 16:09 jackos

Found same. Pity! I'll be patient J

jradxl avatar Sep 26 '23 09:09 jradxl

Is there a requirement for system architecture? We also get this error and can't use debugger.

mqbojee avatar Sep 27 '23 06:09 mqbojee

is it possible if we can fix and start the debugger server locally? just want to analysis my codes. or is there any documents about that, so I may can figure out some solutions by myself. thanks.

ZhenxingXiao avatar Oct 05 '23 15:10 ZhenxingXiao

The same error on the M1 Mac (Apple Silicon)

Screenshot 2023-10-19 at 23 56 41
  • Vscode version
1.83.1
f1b07bd25dfad64b0167beb15359ae573aecd2cc
arm64
  • Mojo version
mojo 0.4.0 (9e33b013)
  • Provide Modular CLI version
modular 0.2.1 (5144fffe)

ngocngoan avatar Oct 19 '23 16:10 ngocngoan

Found same.

gmerendino avatar Oct 26 '23 18:10 gmerendino

Debugging is not yet fully released as part of the SDK, but is coming very soon! @walter-erquinigo

River707 avatar Feb 20 '24 19:02 River707

This will be fixed in the upcoming release on Linux, and Mac will be supported in the following release.

Thanks for the report!

walter-erquinigo avatar Mar 27 '24 22:03 walter-erquinigo