You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and selecting the `main.rs` file. The source code should then appear in the browser and you can click to set breakpoints
45
45
and run the program. Of course, if you want to break in some other file, you can find that in the file browser instead.
46
46
47
-
The second difficulty is with the GDB pretty-printing macros that Rust ships with. GDB can't find these by default,
47
+
**Note for macOS Users:** When you load your rust binary on a mac, you may see many warnings like this
48
+
49
+
> warning /Users/user/examples/rust/target/debug/deps/hello-486956f9dde465e5.9elsx31vb4it187.rcgu.o': can't open to read symbols: No such file or directory.
50
+
51
+
Symbols are names of variables, functions and types defined in your program. You can define symbols for your program by loading symbol files. gdb usually does this automatically for you, but sometimes has trouble finding the right paths.
52
+
53
+
In this case, you need to manually tell gdb where the symbol files is; it's usually the first part of the missing file. In the above example, it's `hello-486956f9dde465e5.9elsx31vb4it187.rcgu.o`.
54
+
55
+
You can load this into gdb with the following command (changed as appropriate):
0 commit comments