macOS failure when debugging rust program

196 views
Skip to first unread message

David Cowden

unread,
Jan 5, 2021, 9:36:36 PM1/5/21
to CodeLLDB Users

I generated a program with `cargo new my-program` which is simply: println!("Hello world"). I have the codelldb and rust-analyzer extensions installed in vscode. I open the project folder in vscode and select the run/debug side panel and allowing codelldb to create targets. The run target works fine. When trying the debug target, macOS prompts me to allow a program to attach, which I authorize, and then I get an error from vscode:

process exited with status -1 (Error 1)

Has anybody run into this issue? Any ideas on how I can troubleshoot?

David

David Cowden

unread,
Jan 6, 2021, 12:19:13 AM1/6/21
to CodeLLDB Users
Here are the relevant logs from vscode:


default 22:17:19.806905-0700 debugserver 1 +0.000000 sec [424f/0203]: error: ::task_set_exception_ports ( task = 0x220f, exception_mask = 0x00001bfe, new_port = 0x5403, behavior = 0x80000001, new_flavor = 0x0000000d ) err = (os/kern) invalid argument (0x00000004)
error 22:17:19.807605-0700 debugserver error: Attach failed: "(os/kern) invalid argument".
default 22:17:19.807655-0700 debugserver error: attach failed.
default 22:17:19.808147-0700 debugserver 2 +0.001312 sec [424f/1903]: error: ::read ( 15, 0x30a50cb10, 1024 ) => -1 err = Bad file descriptor (0x00000009)
default 22:17:19.808245-0700 debugserver Exiting.


--
You received this message because you are subscribed to a topic in the Google Groups "CodeLLDB Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codelldb-users/FaRJRC9Zoos/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codelldb-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codelldb-users/24f0a677-4045-49c2-b939-481123845c2dn%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Cowden

unread,
Jan 6, 2021, 1:50:05 AM1/6/21
to CodeLLDB Users
This thread appears to be related:

Reply all
Reply to author
Forward
0 new messages