# How do I unbind the AI debugging key (') for game instance?

**URL:** <https://forums.unrealengine.com/t/how-do-i-unbind-the-ai-debugging-key-for-game-instance/278769>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine, bug-report, CPP, question\
**Created:** [March 28, 2014, 5:31am UTC](https://forums.unrealengine.com/t/how-do-i-unbind-the-ai-debugging-key-for-game-instance/278769 "2014-03-28T05:31:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [March 28, 2014, 5:31am UTC](https://forums.unrealengine.com/t/how-do-i-unbind-the-ai-debugging-key-for-game-instance/278769/1 "2014-03-28T05:31:51Z")

</div>

Dear Friends at Epic,

#Context

Independent game instance from commandline

#Issue

I am trying to write my chat system, but every time I press " ’ " (next to ENTER key on US keyboards)

the AI debugging starts and disables my character

🙂

How do i disable it?!!

It doesnt seem to be in baseinput.ini

Thanks!

Rama

PS: my unsuccessful attempt so far:

```
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[/Script/Engine.PlayerInput]
-DebugExecBindings=(Key=Pause,Command="Pause")
-DebugExecBindings=(Key=F11,Command="LevelEditor.ToggleImmersive")
-DebugExecBindings=(Key=F11,Command="MainFrame.ToggleFullscreen",Shift=True)
-DebugExecBindings=(Key=B,Command="ToggleSpeaking true | OnRelease ToggleSpeaking false")
-DebugExecBindings=(Key=F1,Command="ShowMouseCursor",Shift=True)
-DebugExecBindings=(Key=F1,Command="viewmode wireframe", bIgnoreShift=True)
-DebugExecBindings=(Key=F2,Command="viewmode unlit")
-DebugExecBindings=(Key=F3,Command="viewmode lit")
-DebugExecBindings=(Key=F4,Command="viewmode detaillighting")
-DebugExecBindings=(Key=F5,Command="viewmode shadercomplexity")
-DebugExecBindings=(Key=F9,Command="shot")
-DebugExecBindings=(Key=Period,Command="RECOMPILESHADERS CHANGED",Control=True,Shift=True)
-DebugExecBindings=(Key=Comma,Command="PROFILEGPU",Control=True,Shift=True)
-DebugExecBindings=(Key=Escape,Command="CloseEditorViewport")
-DebugExecBindings=(Key=Enter,Command="TOGGLE_FULLSCREEN",Alt=True)
-DebugExecBindings=(Key=Tab,Command="FocusNextPIEWindow",Control=True)
-DebugExecBindings=(Key=Tab,Command="FocusLastPIEWindow",Shift=True)
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

---

<div class="post-metadata">

**Author:** ![Marc\_Audy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marc_audy/32/710746_2.png) [@Marc\_Audy](https://forums.unrealengine.com/u/Marc_Audy)\
**Post date:** [March 28, 2014, 1:42pm UTC](https://forums.unrealengine.com/t/how-do-i-unbind-the-ai-debugging-key-for-game-instance/278769/2 "2014-03-28T13:42:39Z")

</div>

I took a quick look and there doesn’t seem to be an easy way to do this right now. Depending on your wants, there’s two code changes you could make.

If you just want it on a different key you can change the value set to DebugComponentKey in the constructor of UGameplayDebuggingControllerComponent. I’ll add a task to make this configurable.

If you want to just disable the AI debugging entirely you could make sure that in APlayerController::Possess the DebuggingController doesn’t get created (I’d probably just add a false && in to the if statement). I’ll also add a task for someone to consider whether the debugging controller should be easily disabled.

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [March 28, 2014, 1:56pm UTC](https://forums.unrealengine.com/t/how-do-i-unbind-the-ai-debugging-key-for-game-instance/278769/3 "2014-03-28T13:56:29Z")

</div>

Okay thanks Marc! As always!

Mainly I wanted to bring it to your attention, as I wont be able to type in my chat system anything with " " marks till this is fixed 🙂

But it is not that big of a deal right now, just something for next build 🙂

#Potential Pull

By the way I sent you a PM on regular UE4 forum about a potential pull!

It is my CreateDirectoryRecursive function!

full details here

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

#❤

Rama
