使用apache和mod_mono调用堆栈丢失的mono信息

时间:2021-09-23 20:44:54

How do i enable debugging/stacktrace with filenames and numbers with apache2/mod_mono? Instead of filenames and numbers i get something like this

如何使用apache2/mod_mono对文件名和数字进行调试/堆栈跟踪?我得到的不是文件名和数字,而是这样的东西

at System.Web.StaticFileHandler.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0 

I tried using MonoDebug true in apache and recompile mod_mono with --enable-debug and i have <compilation debug="true"> inside of configuration>system.web>httpRuntime in web.config.

我尝试在apache中使用MonoDebug true并重新编译mod_mono,并在配置>系统中有< compile debug="true">。在web . config中网络> httpRuntime。

i am using debian lenny and i tried installing mono-debugger, restart apache and still no luck. I even used the configuration tool with no luck. Many its only supported on suse? http://go-mono.com/config-mod-mono/

我正在使用debian lenny,并尝试安装单调试器,重新启动apache,但仍然没有成功。我甚至不走运地使用了配置工具。它只支持suse吗?http://go-mono.com/config-mod-mono/

1 个解决方案

#1


3  

I had the same problem. There are quite few solutions. First of all, you MUST install mono-core-debuginfo package, or it might not work.

我也有同样的问题。解决方案很少。首先,您必须安装mono-core-debuginfo包,否则它可能无法工作。

Second, you must run Mono in debug mode

其次,必须在调试模式下运行Mono

*Solution 1: Add this to your virtual host section/httpd.conf

解决方案1:将此添加到虚拟主机部分/httpd.conf

MonoSetEnv MonoDebug true

*Solution 2: Start xsp/mod-mono-server with debug

*解决方案2:使用debug启动xsp/mod-mono-server

$ MONO_OPTIONS=--debug xsp2

#1


3  

I had the same problem. There are quite few solutions. First of all, you MUST install mono-core-debuginfo package, or it might not work.

我也有同样的问题。解决方案很少。首先,您必须安装mono-core-debuginfo包,否则它可能无法工作。

Second, you must run Mono in debug mode

其次,必须在调试模式下运行Mono

*Solution 1: Add this to your virtual host section/httpd.conf

解决方案1:将此添加到虚拟主机部分/httpd.conf

MonoSetEnv MonoDebug true

*Solution 2: Start xsp/mod-mono-server with debug

*解决方案2:使用debug启动xsp/mod-mono-server

$ MONO_OPTIONS=--debug xsp2