---
title: "debug.mode Property  HTML5/Flash Uploader JavaScript"
canonical: https://www.aurigma.com/docs/us8/FH_P_J_$au_debug_mode.htm
product: "Upload Suite 8"
---

# debug.mode Property HTML5/Flash Uploader JavaScript

Supported technologies: ![Adobe Flash](https://www.aurigma.com/docs/us8/icons/flash.png)![HTML 5](https://www.aurigma.com/docs/us8/icons/html5.png)
 
Gets or sets an array of available debug modes which will be used if the [level](https://www.aurigma.com/docs/us8/FH_P_J_$au_debug_level.htm.md) is greater than `0`.

## Syntax
 
```
$au.debug({
    //...other params...
    mode: ['popup', 'console', 'alert'],
    //...other params...
})
```

```
$au.debug().mode(value);
value = $au.debug().mode();
```
 
### Property Value
 
Type: **Array**
 
The string containing a debug mode or an array of available debug modes. The following values are supported:
 
| Value | Description |
| --- | --- |
| **popup** | All the messages will be shown in a popup window. |
| **console** | All the messages will be logged in a browser console (e.g. Firebug) if it is available. |
| **alert** | All the messages will be shown in alerts. |
 
**Note** 
If the array of debug modes is specified, it is used as follows. When the [debug](https://www.aurigma.com/docs/us8/FH_T_J_$au_debug.htm.md) class is about to display a message, it uses the first mode specified in this array. If it is failed, the next mode is used until the message is displayed correctly.
 
Default value is **['popup', 'console', 'alert']**.

## See Also
 
### Manual
 
- [Using HTML5/Flash Uploader at Runtime](https://www.aurigma.com/docs/us8/using-image-uploader-flash-at-runtime.htm.md)
