opened
bszekely1
username_0
## Type of issue
<!-- Note if this is a documentation issue, please open a ticket here instead: https://github.com/prebid/prebid.github.io →
Intent to implement

## Description
<!-- Describe the issue -->
To help with debugging integrations, Prebid Server offers a debug mode to show the resolved request and http calls and responses to PBS bid adapters, however the Prebid SDK is not able to take advantage of this feature without hacks such as using Charles Proxy or other tools. The intent here is to expose an SDK API field to enable debug mode.

## Goals
<!--
  If this is a bug, please provide a list of steps to reproduce the issue
-->
- Expose a field to enable PBS debug mode

## Proposed Design
<!-- Technical details -->
Add a new global Prebid SDK field to enable debugging at the global level:

`var pbsDebug: Bool { get set }`

Example:
```
Prebid.shared.pbsDebug = true
```

This would add the "test:1" field to the PBS data payload

``` JSON
{
    "test":1,
    "id": "2499DE67-8B54-4561-9027-07C4F31091D4",
    "imp": [
        {
            "id": "708D9FA7-9071-4E83-9127-F55AFF7898D6",
            ...
        }
    ],
    "app": {
        "bundle": "org.prebid.PrebidDemoSwift",
        "ver": "1.5",
        "publisher": {
            "id": "7780-mobilewrapper-video"
        },
        "ext": {
            "prebid": {
                "source": "prebid-mobile",
                "version": "1.5"
            }
        }
    },
    "device": {
        ...
    },
    "ext": {
        "prebid": {
            ...
    }
}
```

### In-Scope

### Out of Scope
<!-- If any -->

### Prebid SDK Changes

new field in the SDK


### Prebid Server OpenRTB Changes
<!-- If any -->
none

### Prebid Server Changes
<!-- If any-->
none


## Other information
<!-- References to related issue or PR #s, etc. -->
PBS Debug Mode
issue
closed
bszekely1
username_0
issue
created
sriramr98
username_1
Was there any progress on this guys? Would really help.
comment