# Debug command doesn't write to file

**URL:** https://community.mp3tag.de/t/debug-command-doesnt-write-to-file/70460
**Category:** Web Sources Discussion
**Created:** [January 7, 2026, 3:35pm UTC](https://community.mp3tag.de/t/debug-command-doesnt-write-to-file/70460 "2026-01-07T15:35:55Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Azazel\_1125](https://community.mp3tag.de/user_avatar/community.mp3tag.de/azazel_1125/32/21754_2.png) [@Azazel\_1125](https://community.mp3tag.de/u/Azazel_1125)
#### Post date: [January 7, 2026, 3:35pm UTC](https://community.mp3tag.de/t/debug-command-doesnt-write-to-file/70460/1 "2026-01-07T15:35:56Z")

</div>

I have been trying to write a WS for [AudiobookCovers.com](http://AudiobookCovers.com) but I cannot even get it to to output the debug text.

Here is what I have so far

```typescript
[Name]=AudiobookCovers.com
[BasedOn]=https://audiobookcovers.com
[IndexUrl]=https://audiobookcovers.com/search?q=%s
[AlbumUrl]=https://audiobookcovers.com
[WordSeparator]=+
[IndexFormat]=%_coverurl%|%_url%
[SearchBy]=Enter Album Name||%album%||%s
[Encoding]=url-utf-8
[UserAgent]=1

[ParserScriptIndex]=...
DebugWriteInput "E:\Test\test.html"
Debug "on" "E:\Test\test.txt"

		# URL
		findline "a class=\"max"
		findinline "href=\""	
		sayuntil "\">"
		say "|"
		
		# CoverURL
		findline "audiobook cover image"
		findinline "src=\"" 1 1
		sayuntil "\">"
		outputto "coverurl"

[ParserScriptAlbum]=...

```

I get the input pre-filled pop-up window

 ![image](https://community.mp3tag.de/uploads/default/original/3X/f/8/f8353f099e01113dd1c47038d2d1b1d4af152bbf.png)

which doesn’t get any hits (kind of expected as this is 1st attempt)

 ![image](https://community.mp3tag.de/uploads/default/original/3X/b/4/b4d3978483874886322e989d34bcbad3a4261cb1.png)

Only “Retry“ & “Cancel“, no “OK“

And that’s it. I doesn’t write either the DebugWriteOuput or Debug.

I have tried multiple locations (as I know Mp3Tag requires writinh priveleges) to no avail.

This seems like it should be pretty straightdoward, I’m sure it’s user error on my part. What a, I doing wronng? Can anyone help?

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [January 7, 2026, 3:48pm UTC](https://community.mp3tag.de/t/debug-command-doesnt-write-to-file/70460/2 "2026-01-07T15:48:01Z")

</div>

Have you tried to use `Debug "on" "E:\Test\test.txt"` line before the `DebugWriteInput "E:\Test\test.html"` line?

I'm not sure if the output format `.html` is supported. Personally, I use `.txt`

From the documentation about "[debugging](https://docs.mp3tag.de/tag-sources/development/#debugging)" a Websource Script:

> To check what the parser is doing, you can add a `Debug "on" "debug.out"` **command to the top of your script**. This will give you an output file which will show you step by step what the parser is doing and why you end up with a given output.
> 
> You can use `DebugWriteInput "debug-input.out"` to see what data you are actually parsing and before you build your script step by step.

BTW: I assume the `E:\Test` path is accessible and writable for Mp3tag?

---

<div class="post-metadata">

### Author: ![arb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/41988e/32.png) [@arb](https://community.mp3tag.de/u/arb)
#### Post date: [January 7, 2026, 4:02pm UTC](https://community.mp3tag.de/t/debug-command-doesnt-write-to-file/70460/3 "2026-01-07T16:02:02Z")

</div>

Can confirm, I changed to save the debug files in the .src’s folder and it saves:

```auto
debugwriteinput "C:\Users\Owner\AppData\Local\Packages\35795FlorianHeidenreich.Mp3tag_rf0p6xgxmspcc\LocalCache\Roaming\Mp3tag\data\sources\IndexInput.txt"
debug "on" "C:\Users\Owner\AppData\Local\Packages\35795FlorianHeidenreich.Mp3tag_rf0p6xgxmspcc\LocalCache\Roaming\Mp3tag\data\sources\Index.txt"

```

It CAN save `.html` but doesn’t show up exactly the same as the website, though I assume it’s for use with an editor to rake through the code easier.

---

<div class="post-metadata">

### Author: ![Azazel\_1125](https://community.mp3tag.de/user_avatar/community.mp3tag.de/azazel_1125/32/21754_2.png) [@Azazel\_1125](https://community.mp3tag.de/u/Azazel_1125)
#### Post date: [January 7, 2026, 4:06pm UTC](https://community.mp3tag.de/t/debug-command-doesnt-write-to-file/70460/4 "2026-01-07T16:06:28Z")

</div>

I just changed it to

```typescript
Debug "on" "E:\Test\test.txt"
DebugWriteInput "E:\Test\test_out.txt"

```

it made no difference.

And yes, E:\Test is accessible and writable for Mp3tag.

I previously tried just “Text.txt” which should just use the sources folder of Mp3tag, shouldn’t it?

I only added DebugWriteInput because it wasn’t outputting “Text.txt”

Thanks for quick reply

---

<div class="post-metadata">

### Author: ![Azazel\_1125](https://community.mp3tag.de/user_avatar/community.mp3tag.de/azazel_1125/32/21754_2.png) [@Azazel\_1125](https://community.mp3tag.de/u/Azazel_1125)
#### Post date: [January 7, 2026, 4:07pm UTC](https://community.mp3tag.de/t/debug-command-doesnt-write-to-file/70460/5 "2026-01-07T16:07:59Z")

</div>

I am using portable version. Would this make a difference?

I have tried multiple locations and nothing.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [January 7, 2026, 4:11pm UTC](https://community.mp3tag.de/t/debug-command-doesnt-write-to-file/70460/6 "2026-01-07T16:11:20Z")

</div>

Please try it with the path that you get with `%temp%` in your Windows Explorer.  
Something like `C:\Users\MyUserName\AppData\Local\Temp` and

```auto
Debug "on" "C:\Users\MyUserName\AppData\Local\Temp\audiobook_debug.txt"
DebugWriteInput "C:\Users\MyUserName\AppData\Local\Temp\audiobook_debugWriteInput.txt"

```

I have just copy & pasted your code and obtained both files.

---

<div class="post-metadata">

### Author: ![Azazel\_1125](https://community.mp3tag.de/user_avatar/community.mp3tag.de/azazel_1125/32/21754_2.png) [@Azazel\_1125](https://community.mp3tag.de/u/Azazel_1125)
#### Post date: [January 7, 2026, 4:16pm UTC](https://community.mp3tag.de/t/debug-command-doesnt-write-to-file/70460/7 "2026-01-07T16:16:22Z")

</div>

I have just tried

```typescript
Debug "on" "C:\Users\azaze\AppData\Local\Temp\test.txt"
DebugWriteInput "C:\Users\azaze\AppData\Local\Temp\test_out.txt"

```

and

```typescript
Debug "on" "C:\Users\azaze\AppData\Local\Temp\test.txt"
DebugWriteInput "E:\Applications\MP3TagPortable - Audiobooks\data\sources\test_out.txt"

```

but neither produce any new files

Changed the install path from `E:\Applications\MP3TagPortable - Audiobooks\` to `E:\Applications\MP3TagPortable - Audiobooks\`

and ran as admin

Still no files.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 7, 2026, 4:22pm UTC](https://community.mp3tag.de/t/debug-command-doesnt-write-to-file/70460/8 "2026-01-07T16:22:28Z")

</div>

Can you check if you find a scripterror.log in your data folder? Maybe there is an error in the script and it's not even interpreted.

---

<div class="post-metadata">

### Author: ![Azazel\_1125](https://community.mp3tag.de/user_avatar/community.mp3tag.de/azazel_1125/32/21754_2.png) [@Azazel\_1125](https://community.mp3tag.de/u/Azazel_1125)
#### Post date: [January 7, 2026, 4:24pm UTC](https://community.mp3tag.de/t/debug-command-doesnt-write-to-file/70460/9 "2026-01-07T16:24:40Z")

</div>

no scripterror.log in my data folder.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 7, 2026, 4:30pm UTC](https://community.mp3tag.de/t/debug-command-doesnt-write-to-file/70460/10 "2026-01-07T16:30:48Z")

</div>

Can you try

```plaintext
Debug "on" "E:\\Test\\test.txt"
DebugWriteInput "E:\\Test\\test_out.txt"

```

---

<div class="post-metadata">

### Author: ![Azazel\_1125](https://community.mp3tag.de/user_avatar/community.mp3tag.de/azazel_1125/32/21754_2.png) [@Azazel\_1125](https://community.mp3tag.de/u/Azazel_1125)
#### Post date: [January 7, 2026, 4:32pm UTC](https://community.mp3tag.de/t/debug-command-doesnt-write-to-file/70460/11 "2026-01-07T16:32:01Z")

</div>

That got it!

Thanks so much for speedy replies

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 6, 2026, 4:32pm UTC](https://community.mp3tag.de/t/debug-command-doesnt-write-to-file/70460/12 "2026-02-06T16:32:15Z")

</div>

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