mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +00:00
This commit is contained in:
parent
9206f15b2e
commit
ac9f86fd35
2 changed files with 12 additions and 1 deletions
|
|
@ -100,6 +100,17 @@
|
||||||
debugger and use additional functionality. It is accessed using the Debugger
|
debugger and use additional functionality. It is accessed using the Debugger
|
||||||
class in the Cosmos.Debug namespace in the Cosmos.Kernel assembly. This assembly
|
class in the Cosmos.Debug namespace in the Cosmos.Kernel assembly. This assembly
|
||||||
is used by all Cosmos projects.</p>
|
is used by all Cosmos projects.</p>
|
||||||
|
<pre>Debugger.Break();</pre>
|
||||||
|
<p>
|
||||||
|
Break can be used to issue a code based break. Visual Studio will break on the
|
||||||
|
line after this statement. Since Cosmos does not support conditional breaks in
|
||||||
|
the IDE yet, code base breaks are very useful for implementing such. For
|
||||||
|
example:</p>
|
||||||
|
<pre>if (x == 5) {
|
||||||
|
Debugger.Break();
|
||||||
|
}</pre>
|
||||||
|
<p>
|
||||||
|
</p>
|
||||||
<h3>
|
<h3>
|
||||||
What's the catch?</h3>
|
What's the catch?</h3>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ namespace Cosmos.Debug.VSDebugEngine {
|
||||||
|
|
||||||
if (String.IsNullOrEmpty(xVmwPath) || !File.Exists(xVmwPath))
|
if (String.IsNullOrEmpty(xVmwPath) || !File.Exists(xVmwPath))
|
||||||
{
|
{
|
||||||
MessageBox.Show("VWMare not installed, probably going to crash now!", "Cosmos DebugEngine", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
MessageBox.Show("VWMare is not installed, probably going to crash now!", "Cosmos DebugEngine", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue