vscode-firefox-debug
vscode-firefox-debug copied to clipboard
Same setup for Launch Firefox and Launch Chrome. Chrome stops on breakpoint, Firefox doesn't.
Hi all. I have essentially the same launch config for Firefox and Chrome with a breakpoint set. Chrome does the expected and throws me back to VS Code where I can step through the code. Firefox loads the page completely without hitting the breakpoint. The breakpoint shows up as a proper bound red dot for both. Nothing is showing up in my console log to indicate why this could be happening.
I outputted the logs to a file:
DEBUG|000.436|BreakpointsManager: Setting 1 breakpoints for /Users/blah/boop/menu/mainMenu.js DEBUG|000.445|DataBreakpointsManager: Setting 0 data breakpoints DEBUG|000.448|FirefoxDebugAdapter: Setting exception filters: [] DEBUG|000.450|FirefoxDebugAdapter: 0 threads DEBUG|000.463|DebugConnection: Received response/event {"from":"root","applicationType":"browser","testConnectionPrefix":"server1.conn0.","traits":{"networkMonitor":true,"resources":{"extensions-backgroundscript-status":true},"supportsSwitchingMode":true,"workerConsoleApiMessagesDispatchedToMainThread":true}} DEBUG|000.463|RootActorProxy: Fetching root DEBUG|000.463|DebugConnection: Sending request {"to":"root","type":"getRoot"} DEBUG|000.516|DebugConnection: Received response/event {"preferenceActor":"server1.conn0.preferenceActor1","addonsActor":"server1.conn0.addonsActor2","deviceActor":"server1.conn0.deviceActor3","heapSnapshotFileActor":"server1.conn0.heapSnapshotFileActor4","perfActor":"server1.conn0.perfActor5","parentAccessibilityActor":"server1.conn0.parentAccessibilityActor6","screenshotActor":"server1.conn0.screenshotActor7","from":"root"} DEBUG|000.516|RootActorProxy: Received root response DEBUG|000.517|RootActorProxy: Fetching tabs DEBUG|000.517|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|000.537|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |000.538|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|000.639|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|000.686|DebugConnection: Received response/event {"tabs":[{"actor":"server1.conn0.tabDescriptor8","browserId":8,"browsingContextID":9,"isZombieTab":false,"outerWindowID":19,"selected":true,"title":"New Tab","traits":{"watcher":true,"supportsReloadDescriptor":true},"url":"about:blank"}],"from":"root"} DEBUG|000.686|RootActorProxy: Received 1 tabs DEBUG|000.686|RootActorProxy: Tab server1.conn0.tabDescriptor8 opened DEBUG|000.686|TabDescriptorActorProxy: Connecting to tab DEBUG|000.686|DebugConnection: Sending request {"to":"server1.conn0.tabDescriptor8","type":"getTarget"} DEBUG|000.830|DebugConnection: Received response/event {"frame":{"actor":"server1.conn0.child10/windowGlobalTarget2","browsingContextID":9,"processID":7771,"innerWindowId":4294967297,"topInnerWindowId":4294967297,"isTopLevelTarget":true,"isPopup":false,"isPrivate":false,"traits":{"isBrowsingContext":true,"supportsTopLevelTargetFlag":true,"frames":true,"logInPage":true,"watchpoints":true,"navigation":true},"title":"","url":"about:blank","outerWindowID":19,"consoleActor":"server1.conn0.child10/consoleActor3","inspectorActor":"server1.conn0.child10/inspectorActor4","styleSheetsActor":"server1.conn0.child10/styleSheetsActor5","storageActor":"server1.conn0.child10/storageActor6","memoryActor":"server1.conn0.child10/memoryActor7","reflowActor":"server1.conn0.child10/reflowActor8","cssPropertiesActor":"server1.conn0.child10/cssPropertiesActor9","animationsActor":"server1.conn0.child10/animationsActor10","responsiveActor":"server1.conn0.child10/responsiveActor11","webExtensionInspectedWindowActor":"server1.conn0.child10/webExtensionInspectedWindowActor12","accessibilityActor":"server1.conn0.child10/accessibilityActor13","changesActor":"server1.conn0.child10/changesActor14","webSocketActor":"server1.conn0.child10/webSocketActor15","eventSourceActor":"server1.conn0.child10/eventSourceActor16","manifestActor":"server1.conn0.child10/manifestActor17","networkContentActor":"server1.conn0.child10/networkContentActor18","screenshotContentActor":"server1.conn0.child10/screenshotContentActor19","threadActor":"server1.conn0.child10/thread1"},"from":"server1.conn0.tabDescriptor8"} DEBUG|000.830|TabDescriptorActorProxy: Received getTarget response DEBUG|000.830|DebugConnection: Received response/event {"type":"frameUpdate","frames":[{"id":19,"isTopLevel":true,"url":"about:blank","title":""}],"from":"server1.conn0.child10/windowGlobalTarget2"} DEBUG|000.830|DebugConnection: Received response/event {"type":"frameUpdate","frames":[{"id":19,"isTopLevel":true,"url":"about:blank","title":""}],"from":"server1.conn0.child10/windowGlobalTarget2"} INFO |000.830|FirefoxDebugSession: Tab opened with url about:blank DEBUG|000.830|TabActorProxy: Attaching to tab server1.conn0.child10/windowGlobalTarget2 DEBUG|000.830|ThreadActorProxy: Created thread server1.conn0.child10/thread1 DEBUG|000.831|FirefoxDebugSession: Attached to tab server1.conn0.child10/windowGlobalTarget2 DEBUG|000.831|TabActorProxy: Fetching workers DEBUG|000.831|DebugConnection: Sending request {"to":"server1.conn0.child10/windowGlobalTarget2","type":"listWorkers"} DEBUG|000.831|ThreadActorProxy: Attaching thread server1.conn0.child10/thread1 DEBUG|000.831|DebugConnection: Sending request {"to":"server1.conn0.child10/thread1","type":"attach","options":{"ignoreFrameEnvironment":true,"pauseOnExceptions":false,"ignoreCaughtExceptions":true}} DEBUG|000.843|DebugConnection: Received response/event {"type":"frameUpdate","frames":[{"id":19,"isTopLevel":true,"url":"http://localhost:8080/","title":""}],"from":"server1.conn0.child10/windowGlobalTarget2"} DEBUG|000.886|DebugConnection: Received response/event {"from":"root","type":"tabListChanged"} DEBUG|000.886|RootActorProxy: Fetching tabs DEBUG|000.886|RootActorProxy: Received tabListChanged event DEBUG|000.886|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|000.886|DebugConnection: Received response/event {"workers":[],"from":"server1.conn0.child10/windowGlobalTarget2"} DEBUG|000.886|TabActorProxy: Received 0 workers DEBUG|000.886|DebugConnection: Received response/event {"from":"server1.conn0.child10/thread1"} DEBUG|000.887|ThreadActorProxy: Received setBreakpoint or removeBreakpoint or pauseOnExceptions response DEBUG|000.887|ThreadActorProxy: Fetching sources from thread server1.conn0.child10/thread1 DEBUG|000.887|DebugConnection: Sending request {"to":"server1.conn0.child10/thread1","type":"sources"} DEBUG|000.889|DebugConnection: Received response/event {"type":"frameUpdate","frames":[{"id":19,"isTopLevel":true,"url":"http://localhost:8080/","title":"listing directory /"}],"from":"server1.conn0.child10/windowGlobalTarget2"} DEBUG|000.889|DebugConnection: Received response/event {"type":"tabNavigated","url":"http://localhost:8080/","title":"listing directory /","state":"stop","isFrameSwitching":false,"from":"server1.conn0.child10/windowGlobalTarget2"} DEBUG|000.889|TabActorProxy: Tab server1.conn0.child10/windowGlobalTarget2 did navigate to http://localhost:8080/ DEBUG|000.899|DebugConnection: Received response/event {"tabs":[{"actor":"server1.conn0.tabDescriptor8","browserId":8,"browsingContextID":9,"isZombieTab":false,"outerWindowID":19,"selected":true,"title":"listing directory /","traits":{"watcher":true,"supportsReloadDescriptor":true},"url":"http://localhost:8080/"}],"from":"root"} DEBUG|000.899|RootActorProxy: Received 1 tabs DEBUG|000.904|DebugConnection: Received response/event {"sources":[{"actor":"server1.conn0.child10/source20","extensionName":null,"url":"http://localhost:8080/","isBlackBoxed":false,"sourceMapBaseURL":"http://localhost:8080/","sourceMapURL":null,"introductionType":"scriptElement","isInlineSource":true}],"from":"server1.conn0.child10/thread1"} DEBUG|000.904|ThreadActorProxy: Received 1 sources from thread server1.conn0.child10/thread1 DEBUG|000.905|SourceMappingThreadActorProxy: Trying to sourcemap {"actor":"server1.conn0.child10/source20","extensionName":null,"url":"http://localhost:8080/","isBlackBoxed":false,"sourceMapBaseURL":"http://localhost:8080/","sourceMapURL":null,"introductionType":"scriptElement","isInlineSource":true} DEBUG|000.905|DebugConnection: Received response/event {"type":"newSource","source":{"actor":"server1.conn0.child10/source20","extensionName":null,"url":"http://localhost:8080/","isBlackBoxed":false,"sourceMapBaseURL":"http://localhost:8080/","sourceMapURL":null,"introductionType":"scriptElement","isInlineSource":true},"from":"server1.conn0.child10/thread1"} DEBUG|000.905|ThreadActorProxy: New source http://localhost:8080/ on thread server1.conn0.child10/thread1 DEBUG|000.905|PathConversion: Converted url http://localhost:8080/ to path /Users/blah/boop/menu/ DEBUG|000.905|SkipFilesManager: skipFile is not set for /Users/blah/boop/menu/ DEBUG|000.905|ConsoleActorProxy: Starting console listeners DEBUG|000.905|DebugConnection: Sending request {"to":"server1.conn0.child10/consoleActor3","type":"startListeners","listeners":["PageError","ConsoleAPI"]} DEBUG|000.905|ConsoleActorProxy: Getting cached messages DEBUG|000.905|DebugConnection: Sending request {"to":"server1.conn0.child10/consoleActor3","type":"getCachedMessages","messageTypes":["PageError","ConsoleAPI"]} DEBUG|000.915|DebugConnection: Received response/event {"startedListeners":["PageError","ConsoleAPI"],"from":"server1.conn0.child10/consoleActor3"} DEBUG|000.915|ConsoleActorProxy: Listeners started DEBUG|000.915|DebugConnection: Received response/event {"messages":[],"from":"server1.conn0.child10/consoleActor3"} DEBUG|000.915|ConsoleActorProxy: Received cached messages DEBUG|000.936|FirefoxDebugAdapter: 1 threads DEBUG|004.647|DebugConnection: Received response/event {"type":"tabNavigated","url":"http://localhost:8080/mainMenu.html","state":"start","isFrameSwitching":false,"from":"server1.conn0.child10/windowGlobalTarget2"} DEBUG|004.647|TabActorProxy: Tab server1.conn0.child10/windowGlobalTarget2 will navigate to http://localhost:8080/mainMenu.html DEBUG|004.669|DebugConnection: Received response/event {"from":"root","type":"tabListChanged"} DEBUG|004.669|RootActorProxy: Received tabListChanged event DEBUG|004.669|RootActorProxy: Fetching tabs DEBUG|004.669|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|004.670|DebugConnection: Received response/event {"tabs":[{"actor":"server1.conn0.tabDescriptor8","browserId":8,"browsingContextID":12,"isZombieTab":false,"outerWindowID":25,"selected":true,"title":"{{TITLE_CONTENT}}","traits":{"watcher":true,"supportsReloadDescriptor":true},"url":"http://localhost:8080/mainMenu.html"}],"from":"root"} DEBUG|004.670|RootActorProxy: Received 1 tabs DEBUG|023.981|DebugConnection: Received response/event {"from":"root","type":"forwardingCancelled","prefix":"server1.conn0.child10"} DEBUG|023.981|RootActorProxy: Received forwardingCancelled event from root (ignoring) DEBUG|023.984|DebugConnection: Received response/event {"type":"descriptor-destroyed","from":"server1.conn0.tabDescriptor8"} WARN |023.985|TabDescriptorActorProxy: Unknown message from TabDescriptorActor: {"type":"descriptor-destroyed","from":"server1.conn0.tabDescriptor8"} DEBUG|023.985|DebugConnection: Received response/event {"from":"root","type":"tabListChanged"} DEBUG|023.985|RootActorProxy: Received tabListChanged event DEBUG|023.985|RootActorProxy: Fetching tabs DEBUG|023.985|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|023.986|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |023.986|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|024.087|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|024.088|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |024.088|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|024.189|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|024.191|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |024.192|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|024.292|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|024.295|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |024.295|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|024.397|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|024.401|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |024.401|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|024.502|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|024.504|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |024.504|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|024.605|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|024.607|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |024.607|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|024.708|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|024.711|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |024.711|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|024.813|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|024.815|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |024.815|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|024.916|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|024.918|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |024.918|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|025.019|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|025.022|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |025.022|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|025.122|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|025.124|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |025.124|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|025.225|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|025.227|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |025.227|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|025.329|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|025.330|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |025.330|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|025.432|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|025.434|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |025.434|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|025.535|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|025.537|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |025.537|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|025.638|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|025.640|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |025.640|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|025.741|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|025.743|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |025.743|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|025.843|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|025.846|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |025.846|RootActorProxy: Received 0 tabs - will retry in 100ms DEBUG|025.947|DebugConnection: Sending request {"to":"root","type":"listTabs"} DEBUG|025.947|DebugConnection: Received response/event {"tabs":[],"from":"root"} INFO |025.947|RootActorProxy: Received 0 tabs - will retry in 100ms INFO |025.980|FirefoxDebugSession: Connection to Firefox closed - terminating debug session DEBUG|026.048|DebugConnection: Sending request {"to":"root","type":"listTabs"}
I have the same exact issue. Did you find an answer?
Possibly related issue / comment: https://github.com/firefox-devtools/vscode-firefox-debug/issues/370#issuecomment-2478480492
The extension is checking if it should sourcemap http://my-app.local.computer:3000/admin/login but that source apparently doesn't contain a //# sourceMappingURL=... comment (the log message says "sourceMapURL":null), so it can't find a sourcemap for it.