ColdFusion Browser LauncherRun and debug ColdFusion files ( This solves a specific gap in the Adobe ColdFusion Builder extension for VS Code: both "Run As ColdFusion Application" and its debug command always open your OS default browser, with no way to pick a different one. That's inconvenient if your main browser is full of saved sessions, cookies, and passwords you don't want to clear constantly during development. FeaturesRight-click any
The same four commands are available from the Command Palette ( The extension automatically builds the correct URL for the file you clicked, detecting which CF project it belongs to from your open workspace folder — no need to type the URL by hand every time. Running files is fully independent of the Adobe ColdFusion Builder extension and works alongside it. Debugging uses Adobe's own debugger, so it needs that extension (see Requirements). UsageRun a file
Debug a file
The page opens in that browser and VS Code stops at the breakpoint.
Components (
|
| Command | What it does |
|---|---|
| CF Browser Launcher: Show Log | Opens a short log of what the extension did: the file and browser used, the project found, whether the browser opened and any error. |
| CF Browser Launcher: Forget Remembered Projects | Clears the projects the extension remembered from earlier debug sessions. |
Show Log
Opens the ColdFusion Browser Launcher panel in the Output view, with one line per event (for example the file and browser you debugged with, the project that was detected, or an error). It's the first place to look when a debug session doesn't behave as expected. The error messages also have a Show Log button that opens it directly. It records nothing about your code.
Forget Remembered Projects
When you debug a file whose project isn't open in your workspace, Adobe asks you to select the project once, and the extension remembers your answer so it doesn't ask again. This command clears what was remembered. Projects open in your workspace are unaffected, since those are detected from their own files each time. Use it if remembered data went stale, for example after moving a project to another server; Adobe will ask for the project again the next time it's needed. It doesn't change your settings, your projects or your breakpoints.
Extension Settings
Go to Settings (Ctrl+,) and search for ColdFusion Browser Launcher, or edit your
settings.json directly:
{
"cfBrowserLauncher.serverHost": "http://localhost:8500",
"cfBrowserLauncher.documentRoot": "", // empty = auto-detect from the workspace folder
"cfBrowserLauncher.projectName": "", // empty = auto-detect from the folder name
"cfBrowserLauncher.defaultBrowser": "", // empty = use the OS default browser
// Only needed to add a browser or to change a built-in path (see "Built-in browsers")
"cfBrowserLauncher.browsers": {
"brave": "/usr/bin/brave-browser"
}
}
| Setting | Default | Description |
|---|---|---|
serverHost |
http://localhost:8500 |
Your ColdFusion server's host and port, without the project name. Used by the run options; debugging uses the server configured in ColdFusion Builder. |
documentRoot |
(empty) | Absolute path to a specific CF project's root. Leave empty to auto-detect it from the workspace folder that contains the file you clicked. |
projectName |
(empty) | The URL segment right after serverHost. Leave empty to auto-detect it from the resolved document root's folder name. |
defaultBrowser |
(empty) | Which entry in browsers to use for "Run ColdFusion File in Default Browser" and "Debug ColdFusion File in Default Browser". Leave empty to use your OS default browser instead of a specific one. |
browsers |
(empty; Chrome, Edge, Firefox and Chromium are built in) | Extra browsers, or paths that replace a built-in one: map of browser name → absolute path to its executable. Add entries from the Settings UI (a table with an "Add Item" button), or edit settings.json directly. Changes apply right away. |
Built-in browsers
The extension knows where these browsers are usually installed on each operating system, so you
don't need to configure them. The Settings screen only lists what you add. To use another browser,
or one installed elsewhere, add an entry to browsers; an entry with the same name as a built-in
one replaces its path.
| Name | Windows | macOS | Linux |
|---|---|---|---|
chrome |
C:\Program Files\Google\Chrome\Application\chrome.exe |
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome |
/usr/bin/google-chrome |
edge |
C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe |
/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge |
/usr/bin/microsoft-edge |
firefox |
C:\Program Files\Mozilla Firefox\firefox.exe |
/Applications/Firefox.app/Contents/MacOS/firefox |
/usr/bin/firefox |
chromium |
C:\Program Files\Chromium\Application\chrome.exe |
/Applications/Chromium.app/Contents/MacOS/Chromium |
/usr/bin/chromium |
About auto-detection (documentRoot and projectName)
This applies to the run options. By default (both left empty), the extension:
- Finds the workspace folder that contains the
.cfmfile you right-clicked, and uses it asdocumentRoot. - Uses that folder's own name as
projectName. - Builds the URL as
serverHost/projectName/relativePathToFile.
This works out of the box whenever your local folder name matches the project name
your CF server uses (the common case), and it also works correctly in multi-root
workspaces — each root folder is resolved independently, so you can have several CF
projects open at once and each .cfm resolves to its own project's URL.
Override when needed:
- Set
projectNameif your local folder name doesn't match the URL segment the CF server expects (e.g. folder ismy-project-devbut the server maps it asmyproject). - Set
documentRootif the actual CF project root is a subfolder of your open workspace, rather than the workspace root itself.
Requirements
- A locally running Adobe ColdFusion server.
- The browser(s) you want to use already installed. Chrome, Edge, Firefox and Chromium are built in
(see Built-in browsers); any other needs an entry in
browsers.
To debug you also need:
- The Adobe ColdFusion Builder extension for VS Code installed. This extension was built and tested against version 1.0.880.
- Debugging enabled on your ColdFusion server (see Adobe's guide linked above).
- Your CF project open in the workspace.
Troubleshooting
Run CF Browser Launcher: Show Log from the Command Palette. It lists, one line per event, the file and browser used, the project found, whether the browser opened, and any error. Error messages also have a Show Log button.
- "Another session has already set a breakpoint there" — the ColdFusion server still has that breakpoint from another debug session. Stop every debug session and try again; if it persists, restarting the ColdFusion service may clear stale sessions.
- The breakpoint is only hit after closing the browser (Linux) — that is Adobe's debugger waiting for the browser to close. It doesn't happen with the debug options of this extension; if it does, open Show Log and check that it says the page was opened without waiting.
- "the browser launch could not be redirected" — the Adobe debugger is probably different from the version this extension was tested with. The log shows the installed version. The run options keep working; please open an issue.
- Adobe asks you to select the project — the file's project isn't in your workspace folders. Pick it once; the extension remembers it.
Known Limitations
- Component (
.cfc) debugging needs a page or remote call that runs the code (see above). - Right-click menu labels are static — they can't show the file name or the selected browser's name (a VS Code platform limitation), only the run notification and the "Run ColdFusion File in..." picker do.
- URL building assumes the CF convention where the URL path mirrors the file's path on disk. It isn't meant for frameworks with client-side or code-based routing (Blazor, Angular, and similar).
- Assumes the standard single-webroot layout (
serverHost/projectName/...). If your ColdFusion server uses Virtual Host settings (a project mapped to its own domain or port, with no project name in the URL), setserverHostto that project's full domain/port andprojectNameto whatever segment (if any) its URLs actually use — there's currently no way to omit the project segment entirely. - The built-in browser paths for Linux were checked on Linux Mint 22.3; the ones for macOS are the usual
install locations and have not been tested. Adjust them in
browsersif yours are elsewhere.serverHostmust start withhttp://orhttps://. - Debugging in a browser of your choice relies on how Adobe's debugger opens the browser internally, so an Adobe update can break it (you'd get an error, see Troubleshooting). It has been tested on Windows 11 and Linux Mint 22.3, and not on macOS.
- The ColdFusion server rejects a breakpoint that another debug session already set on the same line.
Author
FrameCode Inc.