如何进入MonoDevelop中的Framework源代码 [英] How to step into Framework source code in MonoDevelop

查看:77
本文介绍了如何进入MonoDevelop中的Framework源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在MonoDevelop中调试项目时,如何进入Mono Framework源代码?

While debugging a project in MonoDevelop how can I step into Mono Framework source code?

我正在从openSUSE 11.3运行香草MonoDevelop.

I'm running the vanilla MonoDevelop from openSUSE 11.3.

推荐答案

这是一篇旧文章,但我偶然发现了它,今天就寻找答案,因此希望它能对其他人有所帮助.除非您将源文件放在PDB/MDB文件所指向的位置,否则仅取消选中请勿进入框架代码"就不会起作用.在我的盒子上,它正在"/usr/src/packages/BUILD/mono-2.10"中寻找源.

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".

为了明确找出它应该去哪里,请生成并注销一个异常,该异常包含涉及该框架的堆栈跟踪(例如,新的SqlConnection(null)),并且它将向您显示其寻找的文件位置来源.例如:

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:

  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00065] in /usr/src/packages/BUILD/mono-2.10/mcs/class/System/System.Net.Sockets/NetworkStream.cs:369 
  at Mono.Data.Tds.Protocol.TdsComm.Read (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in /usr/src/packages/BUILD/mono-2.10/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsComm.cs:630 
  --- End of inner exception stack trace ---

这篇关于如何进入MonoDevelop中的Framework源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆