This is pretty hack, but it works. You need to be creative when what you want to do is not officially supported, right?
Script.Alert [ScriptAlias] JavaScript. , ScriptAliasAttribute .
namespace MyNamespace
{
[GlobalMethods]
[IgnoreNamespace]
[Imported]
public static class Debugger
{
[ScriptAlias("debugger;//")]
public static void Break()
{
}
}
}
, , Debugger.Break(); #, debugger;//(); JavaScript. , .