vscode-firefox-debug icon indicating copy to clipboard operation
vscode-firefox-debug copied to clipboard

firefoxExecutable ignored

Open aimcosoftware opened this issue 3 years ago • 1 comments

Trying to get debugging working on Windows 10/64 for Thunderbird extension, but will only launch Firefox. I have tried the path as shown below and "C:\\Program Files (x86)\\Mozilla Thunderbird New\\thunderbird.exe" Here's the config:

		{
			"name": "Thunderbird",
			"type": "firefox",
			"request": "launch",
			"reAttach": true,
			"firefoxExecutable": "C:/Program Files (x86)/Mozilla Thunderbird New/thunderbird.exe",
			"reloadOnChange": {
				"watch": "${workspaceFolder}/*.js",
			},
			"profileDir": "C:/Users/DevWin10/AppData/Roaming/Thunderbird/Profiles/tyyl1700.Test User",
			"keepProfileChanges": true,
			"internalConsoleOptions": "openOnSessionStart",
			"addonPath": "${workspaceFolder}/"
		},

aimcosoftware avatar Jun 10 '22 06:06 aimcosoftware

There seems to be an issue how thunderbird handles command line parameters. The VFD attaches about:blank at the end of command line:

"C:\Program Files\Thunderbird\Nightly\thunderbird.exe" -start-debugger-server 6000 -no-remote -profile "C:\TB\profile" about:blank

Because of that TB just quits immediately. There seems to be no way disable adding about:blank, because url property can't be empty (why?)

However, there is a work around: adding "" before -profile (WTF?) So, in launcher.json just need add

"firefoxArgs": [""],

If you add other arguments, make sure last one is an empty string ""

[EDIT] It seems TB is picky about the parameters, so in some combinations, the empty quotes must be as first and last item in the array:

"firefoxArgs": ["", "-jsconsole", "-purgecaches", ""],

vanowm avatar Jul 17 '22 16:07 vanowm