Ben Chuanlong Du's Blog

It is never too late to learn.

Debug a Rust Application

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Debugging Rust in VSCode

  1. Install the extension CodeLLDB .

  2. Uncheck "Pause on panic" (checked by default).

Debug Rust Using rust-gdb

Debug Rust Using rust-lldb

Debug Rust Using rr

is a lightweight tool …

Debugging and Testing Tools for Windows

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

OCCT

OCCT is the most popular all-in-one stability check & stress test tool available. It generates heavy loads on your components while checking for errors, and will detect stability issues faster than …

Debugging Tools for Java

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

arthas

arthas

JDK commands

Thread dump: jstack jvm_pid > (use -F if not responding)

Memory dump: jmap -dump:live,format=b,file=.hprof jvm_pid

Heap status: jmap -heap jvm_pid

GC status: jstat …

Debug C/C++ Code Using GDB

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. lines use : while functions use ::

  2. use relative path from the executable to implementation files!!!

    b ../../tree.cpp:31 if knot->name()=="GO:0006139"
    
  3. it seems that there is a bug in …

Debug Code in JupyterLab Notebooks

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Use the %debug Magic

The easiest way to debug a Jupyter notebook is to use the %debug magic command. Whenever you encounter an error or exception, just open a new notebook …