[Edited] cannot debug mojo in vscode with pixi or pip (cli option deprecated)

I was trying to install CLI so that I can debug mojo with vscode, but I ran into this error

$ brew install modular
✔︎ JSON API cask.jws.json                                                                                                                                                                 Downloaded   15.3MB/ 15.3MB
✔︎ JSON API formula.jws.json                                                                                                                                                              Downloaded   32.0MB/ 32.0MB
==> Fetching downloads for: modular
✔︎ Bottle Manifest ca-certificates (2025-12-02)                                                                                                                                           Downloaded    2.0KB/  2.0KB
✔︎ Bottle ca-certificates (2025-12-02)                                                                                                                                                    Downloaded  131.8KB/131.8KB
✔︎ Bottle Manifest readline (8.3.3)                                                                                                                                                       Downloaded   10.0KB/ 10.0KB
✔︎ Bottle readline (8.3.3)                                                                                                                                                                Downloaded  758.1KB/758.1KB
✔︎ Bottle Manifest sqlite (3.51.1)                                                                                                                                                        Downloaded   11.4KB/ 11.4KB
✔︎ Bottle sqlite (3.51.1)                                                                                                                                                                 Downloaded    2.4MB/  2.4MB
✔︎ Bottle Manifest xz (5.8.2)                                                                                                                                                             Downloaded   11.8KB/ 11.8KB
✔︎ Bottle xz (5.8.2)                                                                                                                                                                      Downloaded  764.9KB/764.9KB
✘ Formula modular (0.9.3)
Error: Failed to download resource "modular (0.9.3)"
Download failed: https://dl.modular.com/public/installer/raw/names/modular-mac-arm64/versions/latest/modular-v0.9.3-macos-arm64.tar.gz

modular CLI has been deprecated! Wondering where did you find such instructions? Please see the getting started page.

Here’s what I tried:

python3 -m pip install modular

then when I try to debug a mojo file, I get:

[“ERROR” - 9:18:37 PM] Cannot launch debug session with mojoFile specified (was ‘/Users/ksingh1/code/jedi/src/main.mojo’) because MAX was installed as a wheel.

and

Debugging a Mojo file using the ‘mojoFile’ option is not supported when the Mojo SDK is installed as a wheel.

I think Gemini suggested that I try install CLI, so I did brew install which is no longer valid option as you say

Try using the Pixi option in the getting started page.

1 Like

Opened the project using pixi shell. Still getting

[“ERROR” - 11:45:25 AM] Cannot launch debug session with mojoFile specified (was ‘/Users/ksingh1/code/jedi/src/main.mojo’) because MAX was installed as a wheel.

my toml

[workspace]
authors = ["Kanwaljit Singh <>"]
channels = ["https://conda.modular.com/max-nightly", "conda-forge"]
name = "jedi"
platforms = ["osx-arm64"]
version = "1.0.0"

[tasks]

[dependencies]
mojo = ">=0.26.1.0.dev2026010605,<0.27"

With vscode open, I did

(jedi) [ksingh1@IB-F25914YXHC] : jedi $ pixi clean
  removed /Users/ksingh1/code/jedi/.pixi/envs                                                                                                                                                                                                 

(jedi) [ksingh1@IB-F25914YXHC] : jedi $ pixi install
✔ The default environment has been installed.

here is the extension info

Identifier:
modular-mojotools.vscode-mojo

Version:
26.0.3

Last Updated:
1 day ago

Size:
4.00MB

Finally this mode worked!

$ mojo debug --vscode main.mojo

but ya if I choose Mojo: Debug from vscode itself, it still says this is wheel