开发者

Debugging in Monodevelop on OSX not quite working

Hey guys, just installed on my Ma开发者_开发百科c Snow Leopard OSX:

Mono 2.6 and Monodevelop 2.2

I've created a simple C# Console App:

public static void Main (string[] args)
    {
        Console.WriteLine ("Hello World!");
        Console.Read();
    }

When I start to type "Console" intellisense works perfectly.

When I run the app in Debug mode, breakpoints hit as expected.

However, while debugging with breakpoints, if I hover over "Console" it says "Unknown Identifier"

When I try and use the immediate window, nothing works. Anything I type just says "Unknown Identifier."

Anyone know what's going on?

cheers!


Try this and compiling with the -debug flag on:

public static int Main (string[] args) 
{ 
    Console.WriteLine ("Hello World!"); 
    Console.Read(); 
    return 0; // Place breakpoint here
}

If that works then try this:

public static void Main (string[] args) 
{ 
    int dummy;
    Console.WriteLine ("Hello World!"); // Place breakpoint here
    Console.Read(); 
}


Please file a bug report.


For what it's worth, I can reproduce exactly what you're describing (Mac OS X, same versions, similar Hello World code, using a breakpoint on the first code line). However, as soon as I "Step Over" to the next line, the popup shows up correctly for "Console". As such, this behavior seems acceptable (at least to me).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜