EU4 debug_mode Console Command

Documentation and detailed help with working examples.
debug_mode Command
DeveloperDLC: None

This command activates certain debugging features, providing information like province IDs, country tags, border distances, event IDs, and AI weights in tooltips when hovering over provinces or event options.

Looking for EU4 console commands?

Search our complete list!

Quick Overview

The debug_mode command in Europa Universalis IV is a debugging tool used primarily by the game developers for testing and fixing the game, but also available to players.

When activated, it reveals additional information that isn't normally displayed to help understand the mechanics of the game better.

Upon activation, hovering the mouse over a province shows its unique ID and the country tag of whatever nation currently owns that province. This also includes the exact distance to the province's border.

In the context of events, debug_mode will reveal underlying details, such as the unique ID for each event and the AI weight which is a hint of how likely the AI is to choose a particular event option.

These details could be used to more effectively control or manipulate gameplay, especially when also using other console commands.

In-Depth Description

The debug_mode command in Europa Universalis IV is a console command that developers and advanced players use to gather more information about the game mechanics for troubleshooting, testing, or strategizing purposes.

Once activated, this command reveals a variety of 'hidden' information.

When you hover your mouse over a province on the map, it will display the province's unique ID number, the country tag of the nation that owns that province, and the border distances.

For example, the unique province ID could be beneficial when using other console commands that require you to specify a province, such as commands for changing ownership or culture of a specific province.

The country tags can also be used in other console commands to specify which nation you are making changes to, such as changing their technology level or making them declare war.

In addition to this, the debug_mode also displays the specific Event IDs and AI weighting on the tooltip for event options. Event IDs` are crucial if you want to trigger a specific event through console command.

AI weighting, on the other hand, can be helpful in understanding what decision the AI is more likely to make when faced with event options.

This sort of command is invaluable for players who are creating mods, those who are trying to understand the game mechanics in-depth, or even players who enjoy having complete control over their gameplay.

How to Open the Command Console

In EU4, cheats are executed from the command console, a text box that you type commands into.

To open the command console press the ~(tilde) key, which is typically located under ESC (escape).

If your keyboard does not have that key, or pressing ~ does not work, try the following keys:

  • ~
  • SHIFT + 2
  • SHIFT + 3
  • ALT + 2 + 1

Type your command into the console, and then press ENTER .