# Set Microsoft C# Compiler Debug Property in javascript

**URL:** https://www.finalbuilder.com/forums/t/set-microsoft-c-compiler-debug-property-in-javascript/1030
**Category:** Discussion
**Created:** [November 12, 2008, 12:35pm UTC](https://www.finalbuilder.com/forums/t/set-microsoft-c-compiler-debug-property-in-javascript/1030 "2008-11-12T12:35:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![abell](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/c37758/32.png) [@abell](https://www.finalbuilder.com/forums/u/abell)
#### Post date: [November 12, 2008, 12:35pm UTC](https://www.finalbuilder.com/forums/t/set-microsoft-c-compiler-debug-property-in-javascript/1030/1 "2008-11-12T12:35:37Z")

</div>

Hi,  
  
I need to test a project variable in javascript and set the Microsoft C# Compiler Property to DebugOff, DebugFull etc depending on the variable value.  
  
I have tried the following:  
  
Action.Debug = TDotNetDebugOptions.DebugOff;  
  
and  
  
Action.Debug = "DebugOff";  
  
but neither works.&nbsp;   
  
Can anyone tell me the correct syntax for this?  
  
  
Regards  
  
AndyB

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [November 12, 2008, 1:43am UTC](https://www.finalbuilder.com/forums/t/set-microsoft-c-compiler-debug-property-in-javascript/1030/2 "2008-11-12T01:43:15Z")

</div>

Hi Andy,   
  
 Looks like the debug options constants aren’t being registered correctly, we’ll get that fixed for the next build. In the mean time you can set the property using the constant value:

```
0 = DebugOff
1 = DebugFull
2 = DebugPDBOnly
```
   
  
 So, for example, to set debugging off you would write:   
  
 
```
Action.Debug = 0
```
   
  
 Regards,   
 Paul.
