mojo
mojo copied to clipboard
[BUG]: Mojo VS Code extension results in error dialog when debugging
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:
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)
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.
Found same. Pity! I'll be patient J
Is there a requirement for system architecture? We also get this error and can't use debugger.
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.
The same error on the M1 Mac (Apple Silicon)
- Vscode version
1.83.1
f1b07bd25dfad64b0167beb15359ae573aecd2cc
arm64
- Mojo version
mojo 0.4.0 (9e33b013)
- Provide Modular CLI version
modular 0.2.1 (5144fffe)
Found same.
Debugging is not yet fully released as part of the SDK, but is coming very soon! @walter-erquinigo
This will be fixed in the upcoming release on Linux, and Mac will be supported in the following release.
Thanks for the report!