Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: this may not be a bug but it certainly needs to be fixed #125

Open
batman22 opened this issue Mar 23, 2024 · 5 comments
Open

[BUG]: this may not be a bug but it certainly needs to be fixed #125

batman22 opened this issue Mar 23, 2024 · 5 comments
Assignees

Comments

@batman22
Copy link

I just installed everything and got it up and running in VS Code. Can run write and run mojo programs not problem. Just can't hit breakpoints?! I've tried all the settings tweaking and what nots to no avail. Mindblowing this doesn't just work with the mojo extension. I suspect it is supposed to. Please help, I really want to try mojo, but if can't do basic debugging, it's a non starter.

I'm on Mac OSX 14.4, and my VS Code says it's up to date with v. 1.87.2 and I've got mojo 24.1.1 installed.

Help.

Jay

@mikowals
Copy link

Possible duplicate of modularml/mojo#1924.

@batman22
Copy link
Author

Yes, that sounds exactly like what I'm experiencing.

@iamtimdavis
Copy link
Contributor

@walter-erquinigo @River707 - PTAL when you get a moment

@River707
Copy link

River707 commented Mar 25, 2024

Thanks for reporting this! We've identified an issue with the currently shipped SDK where we're accidentally stripping symbols used by the debugger for JIT debugging. We're working on a fix, but it will likely only resolve issues on Linux platforms for the next release, resolving this for Mac will likely make it into the 24.3 release of Mojo/Max (not the next release, but the one after). Terribly sorry for the issues encountered! 🙇

@walter-erquinigo
Copy link

Thank for the report and apologies for the broken function. However, I'm going add here some troubleshooting until we get the proper fix out:

Regular non-JIT debugging still working, so if you want to debug the program foo.mojo, you can run the following two commands from a terminal

mojo build -O0 -debug-level=full foo.mojo -o /tmp/bin
mojo debug --rpc /tmp/bin 

That should start the debug session on VSCode, via the --rpc functionality, without having to JIT. I hope this can get you unblocked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants