-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new - all code snippets for visual basic
new - snippet for Desharp.Debug.Fire.Log() fixed - snippet for Desharp.Debug.Configure()
- Loading branch information
Showing
21 changed files
with
492 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | ||
<CodeSnippet Format="1.0.0"> | ||
<Header> | ||
<Title>Desharp.Debug.Configure(new DebugConfig {...});</Title> | ||
<Shortcut>ddc</Shortcut> | ||
<Description>Configure Desharp assembly from running application environment and override any XML config settings or automaticly detected settings.</Description> | ||
<Author>Tom Flídr</Author> | ||
</Header> | ||
<Snippet> | ||
<Declarations> | ||
<Literal Editable="false"> | ||
<ID>DesharpDebug</ID> | ||
<Function>SimpleTypeName(global::Desharp.Debug)</Function> | ||
</Literal> | ||
<Literal Editable="false"> | ||
<ID>DesharpDebugConfig</ID> | ||
<Function>SimpleTypeName(global::Desharp.DebugConfig)</Function> | ||
</Literal> | ||
<Literal Editable="false"> | ||
<ID>DesharpLogFormat</ID> | ||
<Function>SimpleTypeName(global::Desharp.LogFormat)</Function> | ||
</Literal> | ||
<Literal> | ||
<ID>enabled</ID> | ||
<Default>true</Default> | ||
<ToolTip>Debug dumping into output is enabled or not.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>depth</ID> | ||
<Default>3</Default> | ||
<ToolTip>How many levels in complex type variables will be iterated throw to dump all it's properties, fields and other values.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>directory</ID> | ||
<Default>logs</Default> | ||
<ToolTip>Relative or absolute path into directory where all log files and mail notify boolean files will be stored.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>logFormat</ID> | ||
<Default>Auto</Default> | ||
<ToolTip>Application environment - usually automaticly determinated by Desharp asembly - change this value only when you REALLY know what you are doing!</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>snippetEnd</ID> | ||
<Default></Default> | ||
<ToolTip>Snippet end.</ToolTip> | ||
</Literal> | ||
</Declarations> | ||
<Code Language="csharp"><![CDATA[$DesharpDebug$.Configure(new $DesharpDebugConfig$ { | ||
Enabled = $enabled$, | ||
Depth = $depth$, | ||
Directory = "~/$directory$", | ||
LogFormat = $DesharpLogFormat$.$logFormat$ | ||
});$snippetEnd$]]></Code> | ||
</Snippet> | ||
</CodeSnippet> | ||
</CodeSnippets> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | ||
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | ||
<CodeSnippet Format="1.0.0"> | ||
<Header> | ||
<Title>dddo</Title> | ||
<Shortcut>dddo</Shortcut> | ||
<Description>Code snippet for dump with options: Desharp.Debug.Dump(obj, new Desharp.DumpOptions {...});</Description> | ||
<Author>Tom Flídr</Author> | ||
<SnippetTypes> | ||
<SnippetType>Expansion</SnippetType> | ||
</SnippetTypes> | ||
</Header> | ||
<Snippet> | ||
<Declarations> | ||
<Literal Editable="false"> | ||
<ID>DesharpDebug</ID> | ||
<Function>SimpleTypeName(global::Desharp.Debug)</Function> | ||
</Literal> | ||
<Literal Editable="false"> | ||
<ID>DesharpDumpOptions</ID> | ||
<Function>SimpleTypeName(global::Desharp.DumpOptions)</Function> | ||
</Literal> | ||
<Literal> | ||
<ID>obj</ID> | ||
<Default>obj</Default> | ||
<ToolTip>Any C# object to dump into HDD log.</ToolTip> | ||
<ToolTip>Any .NET object to print in Debugger Output window or directly in Console window.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>depth</ID> | ||
<Default>4</Default> | ||
<ToolTip>First argument C# object dumping depth.</ToolTip> | ||
<ToolTip>Printed object structure depth (levels count to print).</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>return</ID> | ||
<Default>false</Default> | ||
<ToolTip>Return dumped object as string.</ToolTip> | ||
<ToolTip>True to return printed object as string object reprezentation.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>snippetEnd</ID> | ||
<Default></Default> | ||
<ToolTip>Snippet end.</ToolTip> | ||
</Literal> | ||
</Declarations> | ||
<Code Language="csharp"><![CDATA[$DesharpDebug$.Dump($obj$, new Desharp.DumpOptions { | ||
Depth = $depth$, | ||
Return = $return$ | ||
});$snippetEnd$]]></Code> | ||
<Code Language="csharp"><![CDATA[$DesharpDebug$.Dump($obj$, new $DesharpDumpOptions$ { | ||
Depth = $depth$, | ||
Return = $return$ | ||
});$snippetEnd$]]></Code> | ||
</Snippet> | ||
</CodeSnippet> | ||
</CodeSnippets> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | ||
<CodeSnippet Format="1.0.0"> | ||
<Header> | ||
<Title>Desharp.Debug.Fire.Log(obj);</Title> | ||
<Shortcut>ddf</Shortcut> | ||
<Description>Print any serializable .NET object into JSON and log in client browser console through FirePHP/fire4chrome browser extension.</Description> | ||
<Author>Tom Flídr</Author> | ||
</Header> | ||
<Snippet> | ||
<Declarations> | ||
<Literal Editable="false"> | ||
<ID>DesharpDebug</ID> | ||
<Function>SimpleTypeName(global::Desharp.Debug)</Function> | ||
</Literal> | ||
<Literal> | ||
<ID>browserConsoleMethod</ID> | ||
<Default>Log</Default> | ||
<ToolTip>Any .NET object to print in Debugger Output window or directly in Console window.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>obj</ID> | ||
<Default>obj</Default> | ||
<ToolTip>Any serializable .NET object into JSON and log in client browser console through FirePHP/Fire4Chrome browser extension.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>snippetEnd</ID> | ||
<Default></Default> | ||
</Literal> | ||
</Declarations> | ||
<Code Language="csharp"><![CDATA[$DesharpDebug$.Fire.$browserConsoleMethod$($obj$);$snippetEnd$]]></Code> | ||
</Snippet> | ||
</CodeSnippet> | ||
</CodeSnippets> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.