Java Debugging, Number Systems, and Foundational Coding Exercises
Debugging in Java
Debug mode is a development tool used to inspect program flow and trace execution for troubleshooting purposes.
Workflow
Setting Breakpoints: Click the left margin next to the line number in you're IDE.
Starting Debug: Right-click the editor and select the Debug option.
Monitoring: Inspect the Debugger panel for variable stat ...
Posted on Wed, 19 Aug 2026 16:58:28 +0000 by Rhysickle
Understanding Common C++ Pointer Pitfalls and Their Solutions
The Complete Lifecycle of a Pointer
A properly managed pointer in C++ follows four essential phases:
Declaration of the pointer variable
Initialization - assigning memory or pointing to an address
Deallocation - freeing the pointed-to memory
Destruction - the pointer variable goes out of scope
Here's a well-structured example illustrating eac ...
Posted on Tue, 18 Aug 2026 16:14:46 +0000 by maxedison
Setting Up C/C++ Debug Environment in VSCode
tasks.json Configuration
Press Ctrl+Shift+P and select "Open User Tasks" to create a reusable tasks.json template.
{
"version": "2.0.0",
"tasks": [
{
"label": "build hello",
"type": "shell",
"command": &q ...
Posted on Sun, 09 Aug 2026 16:14:24 +0000 by tomharding
Debugging C Programs with GDB
When a C program compiles without errors or warnings using gcc but produces incorrect output or crashes (e.g., segmentation fault), the GNU Debugger (gdb) becomes essential for identifying the root cause. Similar to debug modes in IDEs like Keil, gdb alllows setting breakpoints and inspecting variable values during execution to isolate bugs.
Co ...
Posted on Fri, 07 Aug 2026 17:00:04 +0000 by Chiaki
Browser Popup Debugging Techniques in Web Development
Several approaches exist for displaying debugging information in web applications. Each method serves different purposes and offers distinct advantages. ### Console Output
The browser console serves as the primary debugging interface for JavaScript applications. After opening developer tools (F12), developers can inspect messages logged during ...
Posted on Fri, 07 Aug 2026 16:15:48 +0000 by Psyche
Analysis of a Non-Deterministic .NET Crash Caused by Memory Corruption
Investigation Overview
A .NET application, primarily used for industrial machine vision, encountered a sponteneous crash. An analysis of the memory dump revealed critical instability within the managed heap.
Diagnosing the Crash
Using WinDbg to inspect the dump, the initial exception indicated an access violation during garbage collection:
(bf8 ...
Posted on Tue, 04 Aug 2026 16:03:45 +0000 by TCovert
Python Exception Handling, Testing, and Debugging Techniques
Understanding ExceptionsExceptions are runtime errors that disrupt the normal flow of a program. These disruptions can occur for various reasons, such as dividing by zero, accessing an out-of-bounds index, missing files, network failures, type mismatches, undefined variables, missing dictionary keys, or insufficient disk space.Without proper ha ...
Posted on Sat, 25 Jul 2026 16:52:11 +0000 by smp
Analyzing Pipe Capacity in Linux Splice with perf
When debugging kernel-level issues, traditional approaches like eBPF might not be available on older kernel versions. In such cases, perf probe provides a practical alternative for tracing kernel functions without writing custom kernel modules. Before adding probes, identify available symbols through /proc/kallsyms. For instance, to trace splic ...
Posted on Sun, 19 Jul 2026 17:01:14 +0000 by KissMyBrain
Resolving TensorBoard ModuleNotFoundError in Conda Environments
When executing Python scripts that rely on TensorBoard, developers may encounter a ModuleNotFoundError indicating the absence of the tensorboard module. This issue typically stems from two primary causes within conda-managed environments: the package is missing from the current enviroment, or the shell session is pointing to a different environ ...
Posted on Sun, 19 Jul 2026 16:28:32 +0000 by ShawnD
Using Arthas for Java Debugging and Common Commands
This article demonstrates how to use Arthas, a popular diagnostic tool for Java appplications, to troubleshoot common production issues. We'll walk through a sample project with three problematic endpoints and then show how Arthas commands help identify and fix them.
Setting Up a Demo Application
First, create a Spring Boot application with thr ...
Posted on Wed, 15 Jul 2026 16:13:33 +0000 by marco839