Wiki

Changes between Initial Version and Version 1 of DebuggingWithAnIDE

Show
Ignore:
Timestamp:
05/04/10 08:43:34 (14 years ago)
Author:
Chuck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DebuggingWithAnIDE

    v1 v1  
     1Cobra produces standard CommonLanguageRuntime libraries and executables (also called "assemblies"). In other words, Cobra does not introduce its own "class model" on top of what the virtual machine already provides. Therefore, standard debugging tools (as well as other tools like profilers) will work on what Cobra produces even if they are not "Cobra-savvy" with things like SyntaxHighlighting and AutoCompletion. 
     2 
     3However, check [wiki:IDESupport] first to see if your chosen IDE has a Cobra add-in as using the IDE will be that much more enjoyable. 
     4 
     5'''Important:''' Be sure to compile your code with the "-d" switch in order to produce debugging symbols. 
     6 
     7Then instruct your IDE to load the executable and run it in debug mode. If your bug is exhibited by an uncaught exception then the interactive debugger will be engaged when it occurs. If your bug does not throw an exception, you can force it do so by adding `assert` statements, `throw` statements, contracts and/or unit tests. 
     8 
     9You should be able to step through code, inspect variable and objects, set breakpoints, etc. 
     10 
     11See also: DebuggingTopics, [wiki:IDESupport]