- LuzineDebug
- Tools
- Text diff
Compare two texts or two config files
Compare two versions line by line: additions, deletions, invisible whitespace. Everything happens in your browser.
When to compare two versions
- A
.envor config file that works locally but not in production. - Two API responses: the one that works and the one that breaks your code.
- A script copied from Windows that fails on Linux (
CRLF,bad interpreter).
Frequently asked questions
Why do two files that look identical behave differently?
Often because of invisible characters: Windows line endings (CRLF) instead of Unix (LF), tabs instead of spaces, trailing spaces, a BOM at the start of the file, or a non-breaking space. The diff shows them.
Are my texts sent anywhere?
No, the comparison runs in your browser.
Errors this tool helps solve
Fix "npm ERR! ERESOLVE unable to resolve dependency tree"
npm refuses to install because two packages require incompatible versions of the same dependency, most often a peer dependency (Re…
JavaScript & Node.js Intermediate 15 min Error: Hydration failed because the server rendered HTML didn't match the client. As a res…Fix "Hydration failed because the server rendered HTML didn’t match the client" (React, Next.js)
The HTML generated on the server and React’s first render in the browser are not identical. Most often, a component renders a brow…
JavaScript & Node.js Intermediate 20 min Target class [App\Http\Controllers\UserController] does not exist.Fix "Target class [X] does not exist" and "Class not found" in Laravel
Laravel or PHP cannot load the requested class. Check that the namespace exactly matches the file path (including letter case), us…
PHP & Laravel Beginner 10 min Your requirements could not be resolved to an installable set of packages.Fix "Your requirements could not be resolved to an installable set of packages" (Composer)
Composer cannot find any combination of versions that meets every constraint: PHP version too old, missing ext-* extension, or two…
PHP & Laravel Intermediate 15 min IndentationError: unexpected indentFix "IndentationError: unexpected indent" in Python
Python found a line indented more than the code structure allows. Align it with the block it belongs to, use spaces only (4 per le…
Python Beginner 3 min [!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly"Fix "CocoaPods could not find compatible versions for pod" on iOS
CocoaPods cannot find a version of a pod that satisfies every constraint (Podfile, Podfile.lock, plugins, minimum iOS target). Mos…
Mobile (Android, iOS) Intermediate 15 min Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules kotlin-stdlib-1…Fix "Duplicate class ... found in modules" in an Android Gradle build
Two dependencies of your app contain the same Java/Kotlin class, and Gradle refuses to package them together. For kotlin-stdlib-jd…
Mobile (Android, iOS) Intermediate 20 min ! [rejected] main -> main (fetch first)Fix "failed to push some refs" (! [rejected] fetch first) in Git
The remote repository has commits you do not have locally, so Git refuses to overwrite its history. Fetch them with git pull --reb…
Git & GitHub Beginner 5 minOther tools
Error finder
Paste an error message or a log: the tool recognises the error and opens the right fix.
JSON validator
Validate, format and minify JSON, with the exact line and column of the error.
Regex tester
Test a regular expression live: highlighted matches, groups, replacement.
JWT decoder
Decode a JWT: header, payload, readable expiry dates and whether the token has expired.
HTTP status codes
All the common HTTP codes (401, 403, 404, 419, 429, 500, 502…): meaning, causes and what to do.