While debugging a project in MonoDevelop how can I step into Mono Framework source code?
I'm running the vanilla MonoDevelop from openSUSE 11.3.
While debugging a project in MonoDevelop how can I step into Mono Framework source code?
I'm running the vanilla MonoDevelop from openSUSE 11.3.
Firstly, your Mono class libraries must have debug symbols pointing to the framework source files. Then you should uncheck the "Do not step into framework code" option in MD debugger options.
This is an old post, but I stumbled upon it looking for the answer today, so hopefully it will help someone else out. Just unchecking the "Do not step into framework code" doesn't work unless you have the source in the location the PDB/MDB files point to. On my box, it was looking for the source at "/usr/src/packages/BUILD/mono-2.10".
In order to find out specifically where it should go for you, generate and log out an exception that contains a stack trace involving the framework (new SqlConnection(null) for example) and it will show you the file location its looking for the source in. For example:
A key part of the answer if you're just setting up a Mono environment is where to install the source files. For the standard Mono build on Ubuntu Natty, this is /build/buildd. So to get the source of mono 2.6.7 (the Ubuntu build), do:
Then ensure you have "Do not step into framework code" unchecked in monodevelop and it should be able to find the sources.
I don't have the
apt-get source
option in Arch Linux, so I did this as root:Instead of these /build paths use your own accordingly to Greg's answer.