Debug command doesn't write to file

I have been trying to write a WS for AudiobookCovers.com but I cannot even get it to to output the debug text.

Here is what I have so far

[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

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

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?

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" 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?

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

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.

I just changed it to

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

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

I have tried multiple locations and nothing.

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

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.

I have just tried

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

and

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.

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.

no scripterror.log in my data folder.

Can you try

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

That got it!

Thanks so much for speedy replies