<commit_before>---
post_title: DC/OS CLI Debug Subcommands
feature_maturity: experimental
menu_order: 0
---

The DC/OS CLI provides a set of debugging subcommands, `dcos marathon debug` to troubleshoot a stuck service or pod deployment. A large portion of this functionality is also available from the DC/OS web interface.

# How Offer Matching Works

DC/OS services or pods often fail to deploy because the resource offers from Mesos do not match or cannot match the resources the service or pod requests in the [Marathon application definition](/docs/usage/marathon/application-basics/)). Below is an overview of the offer matching process.

1. You post an application or pod definition to Marathon either via the DC/OS CLI (`dcos marathon app add <my-service>.json`) or the DC/OS web interface. The service specifies resource requirements and/or placement constraints as well as the number of instances to launch.

1. Marathon adds the new service or pod to the launch queue.<commit_msg>added comma<commit_after>---
post_title: DC/OS CLI Debug Subcommands
feature_maturity: experimental
menu_order: 0
---

The DC/OS CLI provides a set of debugging subcommands, `dcos marathon debug`, to troubleshoot a stuck service or pod deployment. A large portion of this functionality is also available from the DC/OS web interface.

# How Offer Matching Works

DC/OS services or pods often fail to deploy because the resource offers from Mesos do not match or cannot match the resources the service or pod requests in the [Marathon application definition](/docs/usage/marathon/application-basics/)). Below is an overview of the offer matching process.

1. You post an application or pod definition to Marathon either via the DC/OS CLI (`dcos marathon app add <my-service>.json`) or the DC/OS web interface. The service specifies resource requirements and/or placement constraints as well as the number of instances to launch.

1. Marathon adds the new service or pod to the launch queue.
{'fraction_non_alphanumeric': 0.052046488125315815, 'fraction_numerical': 0.003031834259727135, 'mean_word_length': 4.5, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3748339', 'n_tokens_mistral': 496, 'n_tokens_neox': 468, 'n_words': 288}