Snippets tagged “debugging”
24 snippets use this tag.
- Colors in JavaScript ConsoleJavaScript
The console.log() method outputs a message to the web console. Read the tutorial and learn the simplest method of putting a single or multiple styles to it.
- CURL and HTTPS, "Cannot resolve host"PHP
It sounds like you are trying to use curl to make a request to an HTTPS url and are encountering an error that says "Cannot resolve host." This error can occur for a few reasons:
- curl error 18 - transfer closed with outstanding read data remainingPHP
Error 18 means that the transfer was closed with outstanding read data remaining.
- Eclipse java debugging: source not foundJava
If you are trying to debug a Java application in Eclipse and you see the error "Source not found", it means that the source code for the class you are trying to debug is not available in the current project or the project build path.
- Hibernate show real SQLJava
To show the real SQL generated by Hibernate, you can enable the show_sql property in the Hibernate configuration file (hibernate.cfg.xml).
- How and When to Use !important Rule in CSSCSS
Learn how and why to use the !important rule in your CSS styles. See what cases are recommended and where is the right place to use it.
- How and When to Write Comments in JavascriptJavaScript
There are 2 types of JavaScript comments: single-line and multi-line. See when to use them with examples, and also use comments to prevent execution when testing alternative code.
- How do I write to the console from a Laravel Controller?PHP
You can use the Log facade to write to the console from a Laravel controller.
- How to Add and Use CSS CommentsCSS
A CSS comment is used to give explanatory information to the code or to prevent the browser from trying to interpret particular parts of the style sheet.
- How to Display a JavaScript ObjectJavaScript
Sometimes it is necessary to display a JavaScript object. With the help of the given tutorial, you will find the best solutions to displaying an object.
- How to get the Query Builder to Output its Raw SQL Query as a String with PHPPHP
If you want to grasp the way of getting a query builder to output its raw SQL query as a string using PHP, then you are in the right place.
- How to Print a Message to the Error Console Using JavaScriptJavaScript
Read this tutorial and learn about the role of console object in JavaScript and, also, learn the way of printing the message to the error console easily.
- How to print a query string with parameter values when using HibernateJava
To print a Hibernate query string with parameter values, you can use the toString() method of the Query interface.
- How to Turn Off Notices in PHPPHP
In PHP, notices are known as “soft errors”. However, at times developers want to turn them off. Here, we will show you how to act to turn off PHP notices.
- How to Use the @ Sign in PHPPHP
The @ sign is one of the common used ones in programming. Let’s discover how it can be used in PHP together. Read on the snippet and check the examples.
- In PHP with PDO, how to check the final SQL parametrized query?PHP
In PHP with PDO, you can use the debugDumpParams() method on a prepared statement object to view the final SQL parametrized query.
- php exec() is not executing the commandPHP
There could be a few reasons why the exec() function in PHP is not executing the command as expected.
- What IDE to use for Python?Python
There are many Integrated Development Environments (IDEs) that you can use for writing, testing, and debugging Python code.
- What is a stack trace, and how can I use it to debug my application errors?Java
A stack trace is a report of the active stack frames at a particular point in time during the execution of a program. It is a useful tool for debugging because it can help you understand the sequence of method calls that led to an error or exception in yo
- What is reflection and why is it useful?Java
Reflection is a feature of the Java language that allows you to inspect and manipulate classes, fields, and methods at runtime.
- What is the difference between __str__ and __repr__?Python
__str__ and __repr__ are two special methods in Python classes.
- What is the use of "assert" in Python?Python
In Python, the assert statement is used to check if a certain condition is true, and if it is not true, raise an exception.
- What is the use of printStackTrace() method in Java?Java
The printStackTrace() method is a method of the Throwable class (the parent class of Exception) that prints the stack trace of the exception to the standard error stream.
- WordPress Issue: Cannot modify header information - headers already sent byPHP
This error message appears when a PHP script is trying to modify the headers of an HTTP response after the headers have already been sent.