Website review
This review may include AI-generated content and is not individually verified. Domain, certificate and other facts come from the observed data on this page.
What is bcons?
bcons is a PHP debugging tool that shows your debug output in a browser console instead of in server logs. It has two stated goals: display PHP messages in a clear, organized way, and implement the browser Console API for PHP so debugging is faster.
What it shows
- Log messages and variable values at chosen points in your code
- Errors and warnings, with source file name, line number, and stack trace
- Session data, cookies, and payload information
- Separate tabs for messages, with time, domain, source file, and trace data
How it works
bcons sends an HTTP header that tells your PHP code to forward error and debug messages to the bcons console. That console runs either as a browser devtools extension or on the bcons website. A described setup flow covers three steps.
Who it suits
- PHP developers tired of reading
error_log()output and FastCGI stderr dumps in server logs - Anyone debugging request-scoped problems such as sessions, cookies, or form payloads, where seeing the data next to the request matters
- Teams that want warnings and errors surfaced with file and line context without opening a full step debugger
Trade-offs to weigh
- It is a message-and-data console, not a step debugger; if you need breakpoints and call-stack stepping, pair it with Xdebug.
- Console output is visible in the browser, so avoid logging secrets or customer data in shared or production environments.
- Your PHP code must be able to send the enabling header, which may not fit every hosting or proxy setup.
Next step: open a page that already produces a warning, confirm the message appears with file, line, and trace, and use Ctrl+click on a message element to copy it. Compare with Xdebug if you also need interactive breakpoints.
How does bcons compare to using error_log() and server logs for PHP debugging?
bcons is a browser-based console for PHP debug output, while error_log() and server logs are plain-text records written outside your request. The practical difference is where you look and how fast you can read it, not whether debugging is possible.
H3 Where each approach fits
| Aspect | bcons | error_log() / server logs |
|---|---|---|
| Output location | Browser console (devtools extension or the bcons site) | Server log file or stderr |
| Structure | Separate tabs for messages, errors, warnings, session, cookies, payload | Interleaved text lines |
| Error detail | Source file, line number, and stack trace reported to the console | Whatever your log format includes |
| Reading experience | Clickable, copyable message elements | Scroll and grep |
| Best for | Interactive, request-by-request debugging on a page you can open | Background jobs, cron, CLI scripts, production incidents, anything with no browser attached |
H3 What this means in practice
The strongest argument for bcons is the case shown on its own page: a checkout request where the log contains the current user, order ID, payload, session, cookies, and a redirect decision all in one stderr blob. In error_log() that is a wall of text you parse by eye. bcons presents the same kind of data in separate tabs with time, domain, source file, and trace, and lets you Ctrl+click a message to copy it. For a developer tracing a single failing request in a browser, that is a real speed gain.
The trade-offs are equally concrete. A browser console requires a browser session and, per the page, an HTTP header that enables message sending, so it is not a substitute for logs on a queue worker, a cron job, or a server you cannot open in a browser. Server logs also persist and aggregate across requests, which is what you want when the bug only appears for one user at 3 a.m. and nobody is watching a console.
H3 A sensible split
Use bcons while actively developing and reproducing an issue in a browser, and keep error_log() or structured server logging for everything headless, long-running, or post-incident. If you want a comparable browser-console workflow from another tool, Xdebug is the long-established PHP debugger, and Tracy offers a debug bar and logger for PHP applications; both are worth knowing when deciding what belongs in your daily loop.
Next step: pick one real bug you recently chased through server logs, reproduce it with bcons open, and note how many lookups you skipped. That tells you whether the browser console earns a permanent place in your workflow.
How do I set up bcons in my PHP project?
bcons is set up by installing its PHP package in your project and then opening the bcons console to receive the debug output. The tool works by sending an HTTP header that enables PHP error and debug messages to be forwarded to the console, which is available as a browser devtools extension or on the bcons website.
The basic steps
- Install the bcons PHP package in your project using Composer.
- Initialize bcons in your PHP code so it can send the enabling header and forward messages.
- Open the bcons console — either the browser devtools extension or the bcons website.
- Trigger your code and watch errors, warnings, logged messages, and variable values appear in the console.
The site describes the setup as a three-step process, and the console itself is live: you can click around in it, and Ctrl+click on any message element to copy it to the clipboard.
What you get once it's running
- Errors and warnings with source file name, line number, and stack trace
- Logged messages and variable values at set points in your code
- Session data, cookies, and payload information in separate tabs
- Time, domain, source file, and trace data for each message
A practical example
Suppose you're debugging an order checkout flow. Instead of digging through server logs like the FastCGI stderr output shown on the bcons site, you'd see the same information — current user, order ID, session, cookies, payload, and the "user does not have billing information" warning — organized into tabs in the console. That makes it much faster to spot which piece of data is missing or wrong.
Deciding whether it fits
If you already use a full debugger like Xdebug with an IDE, bcons is less about step-debugging and more about quick, readable output of messages and variable states in the browser. It's most useful when you want lightweight visibility into what your PHP code is doing without leaving the browser or tailing log files.
For the exact package name, initialization snippet, and any configuration options, check the setup instructions on bcons.
What types of debug data can bcons display in its console?
bcons is built to surface the data you'd normally hunt for across server logs, in a single browser console. Based on the site's own description, its console can display:
- Log messages you send from your PHP code, useful for tracking variable values at specific points.
- Errors and warnings, each reported with the source file name, line number, and a stack trace.
- Session data and cookies.
- Payload information, such as request parameters or form/API data.
- Context fields per message: time, domain, source file, and trace data.
The site illustrates this with a checkout example where a single request produced messages about the current user, an order ID, session contents, cookies, a missing billing record, a user lookup, a company purchase check, and a redirect — each shown in separate tabs rather than one wall of text.
A practical scenario: you're debugging a failing order flow on a local PHP app. Instead of tailing a FastCGI error log and mentally separating each PHP message: line, you send the same values to bcons and read them as distinct, labeled entries. Ctrl+clicking a message copies it, which helps when you want to paste a stack trace into an issue or share it with a teammate.
Next step / decision criterion: if your main pain is that error output is buried in server logs and you want errors, warnings, session, cookie, and payload data visible in the browser while you work, bcons targets exactly that. If you need step-through breakpoint debugging rather than message and error inspection, this is a different kind of tool — check what your existing setup already provides before switching. You can see the live console behaviour for yourself at bcons.
Can I use bcons with a PHP framework like Laravel or Symfony?
Yes. bcons is a PHP debugging tool, not a framework-specific one, so it can be used alongside Laravel, Symfony, or plain PHP. According to the bcons site, it works by sending an HTTP header that tells the PHP code to enable sending error and debugging messages to the bcons console, which is available as a browser devtools extension or on the bcons website bcons. That mechanism is independent of any particular framework, so framework choice does not block it.
What that means in practice
- Errors, warnings, and logged messages from your Laravel or Symfony code can surface in the bcons console, including source file name, line number, and stack trace, per the site.
- You can log messages or track variable values at chosen points in your code, which is useful for inspecting request data, session data, cookies, and payloads during a request.
- Because the console is a browser devtools extension or a web console, you view output in the browser rather than digging through server logs.
Trade-offs to weigh
| Consideration | Why it matters |
|---|---|
| Framework debug tooling | Laravel and Symfony already ship debugging integrations that hook into their own request lifecycle and container. bcons is a general PHP channel, so expect to add your own logging calls rather than get automatic framework-level introspection. |
| Production safety | Debug output sent to the browser is appropriate for local or staging work. Anything that exposes session, cookie, or payload data should not be enabled where real users can see it. |
| Setup path | The site describes a three-step setup. Follow the current steps on the site rather than assuming a framework package exists. |
A concrete next step
If you are debugging a Laravel checkout flow, for example, place a bcons log call right before the order is persisted and another inside the payment callback. You then see the variable values, session contents, and any warnings side by side in the console, with the file and line that produced each entry, instead of reconstructing the sequence from a wall of FastCGI stderr text. For Symfony, the same approach works around a controller action or a service method.
Decision criterion
Choose bcons when you want a framework-agnostic, browser-based view of PHP messages and variables and you are comfortable adding log calls yourself. If you need deep, automatic insight into Laravel or Symfony internals, use the framework's own debug tooling first and treat bcons as a complementary channel for your own checkpoints.
Is bcons free to use or does it require a paid plan?
bcons does not publicly state whether it is free or requires a paid plan. The site has a "Pricing" link in its navigation, which suggests some commercial or tiered model may exist, but the page evidence provided does not include pricing details, plan names, or payment options.
What this means for you
If cost is a deciding factor, treat bcons as "pricing not yet confirmed" rather than assuming it is free. You can check the official site directly at bcons and look for the Pricing page before committing it to a workflow.
Practical next step
Install or open the bcons console and test it on a small script first. If your team needs a budget-approved tool, confirm the licensing terms on the site before rolling it out.
Alternatives if you need a known-free option
If you want to compare, PHP's built-in error_log() is free and already available, though it produces the kind of dense server-log output the bcons page describes as hard to read. Xdebug is another widely used PHP debugging tool with a free open-source core, available at Xdebug.
A reasonable decision criterion: if bcons' browser-console presentation saves you meaningful time on real projects, a paid plan may be justified; if you only need occasional variable inspection, stick with free built-in logging until you confirm bcons' terms.
User reviews (0)