# Can't launch jobs in debug mode

**URL:** <https://travis-ci.community/t/cant-launch-jobs-in-debug-mode/10309>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** debug-mode\
**Created:** [October 27, 2020, 11:43am UTC](https://travis-ci.community/t/cant-launch-jobs-in-debug-mode/10309 "2020-10-27T11:43:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanySK](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/danysk/32/1399_2.png) [@DanySK](https://travis-ci.community/u/DanySK)\
**Post date:** [October 27, 2020, 11:43am UTC](https://travis-ci.community/t/cant-launch-jobs-in-debug-mode/10309/1 "2020-10-27T11:43:23Z")

</div>

I cannot understand why I am refused access to the debug mode.

```auto
curl -s -X POST -H "Content-Type: application/json" -H "Travis-API-Version: 3" -H "Authorization: token **************" -H "Accept: application/json" https://api.travis-ci.com/job/409019778/restart

```

–\> works, answer is:

```json
{
  "@type": "pending",
  "job": {
    "@type": "job",
    "@href": "/job/409019778",
    "@representation": "minimal",
    "id": 409019778
  },
  "state_change": "restart",
  "resource_type": "job"
}

```

```auto
curl -s -X POST -H "Content-Type: application/json" -H "Travis-API-Version: 3" -H "Authorization: token *********************" -H "Accept: application/json" https://api.travis-ci.com/job/409019778/debug

```

–\> fails, answer is:

```json
{
  "@type": "error",
  "error_type": "wrong_credentials",
  "error_message": "access denied"
}

```

How can my credentials be fine for relaunching a job but not enough to launch a debug?

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [October 27, 2020, 2:14pm UTC](https://travis-ci.community/t/cant-launch-jobs-in-debug-mode/10309/2 "2020-10-27T14:14:28Z")

</div>

> [@DanySK](#):
>
> How can my credentials be fine for relaunching a job but not enough to launch a debug?

Because this job

> **[Travis CI - Test and Deploy with Confidence](https://app.travis-ci.com/github/Protelis/Protelis-Parser/jobs/409019778)**
>
> Travis CI enables your team to test and ship your apps with confidence. Easily sync your projects with Travis CI and you'll be testing your code in minutes.

belongs to a public repository, for which the debug feature has not been enabled.

> **[Travis CI Documentation](https://docs.travis-ci.com/user/running-build-in-debug-mode/)**
>
> Running Build in Debug Mode

I have now enabled the feature for you, so it will work.

But this particular job is a Windows job, so debugging jobs do not work. (This is noted in the documentation.)

---

<div class="post-metadata">

**Author:** ![DanySK](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/danysk/32/1399_2.png) [@DanySK](https://travis-ci.community/u/DanySK)\
**Post date:** [October 27, 2020, 4:59pm UTC](https://travis-ci.community/t/cant-launch-jobs-in-debug-mode/10309/3 "2020-10-27T16:59:03Z")

</div>

Thank you @BanzaiMan!  
The same build have OSX jobs failing similarly, so I’ll debug those. I confirm jobs can now get launched and I can connect.
