# How can I enable the Chrome DevTools Protocol when starting Anki desktop?

**URL:** <https://forums.ankiweb.net/t/how-can-i-enable-the-chrome-devtools-protocol-when-starting-anki-desktop/49654>\
**Category:** Help\
**Created:** [September 19, 2024, 6:30am UTC](https://forums.ankiweb.net/t/how-can-i-enable-the-chrome-devtools-protocol-when-starting-anki-desktop/49654 "2024-09-19T06:30:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guitarlive](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@guitarlive](https://forums.ankiweb.net/u/guitarlive)\
**Post date:** [September 19, 2024, 6:30am UTC](https://forums.ankiweb.net/t/how-can-i-enable-the-chrome-devtools-protocol-when-starting-anki-desktop/49654/1 "2024-09-19T06:30:04Z")

</div>

When starting the Anki desktop version, how can I enable the Chrome DevTools Protocol corresponding to QtWebEngine? For example, like  
`anki.exe --remote-debugging-port=16101`  
Unfortunately, it is not currently supported. I don’t know if there is a corresponding setting entry? Or is it complicated to add such a function?

Introduction to **Chrome DevTools Protocol** On Github IO. `https://chromedevtools.github.io/devtools-protocol/`

My requirement is to dynamically change the html elements corresponding to the currently running view of Anki through a third-party program. For example, when a command is issued by a third-party program, Anki desktop changes the background color of the current body.

---

<div class="post-metadata">

**Author:** ![guitarlive](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@guitarlive](https://forums.ankiweb.net/u/guitarlive)\
**Post date:** [September 19, 2024, 7:51am UTC](https://forums.ankiweb.net/t/how-can-i-enable-the-chrome-devtools-protocol-when-starting-anki-desktop/49654/2 "2024-09-19T07:51:08Z")

</div>

I seem to have found a way to enable debugging. I’ll try it out first.

```auto
anki.exe --webEngineArgs --remote-debugging-port=16101

```

Sorry for disturbing.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [October 19, 2024, 7:51am UTC](https://forums.ankiweb.net/t/how-can-i-enable-the-chrome-devtools-protocol-when-starting-anki-desktop/49654/3 "2024-10-19T07:51:35Z")

</div>

Closed on October 19, 2024, 7:51am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
