Category: debug
The error message “error converting YAML to JSON: yaml: line XX: mapping values are not allowed in this context” typically indicates an issue with the syntax of your YAML …
sys.settrace is a built-in function in Python’s sys module. It allows you to set a trace function that is called by the Python interpreter for every line of code …
A simple C/C++ calling Python script to import numpy package will simply be reported Leaking Memory: include <Python.h> int main() { Py_Initialize(); PyRun_SimpleString("import numpy"); Py_Finalize(); return 0; } This …
The leetcode web coding IDE has a premium debugger feature – however this is not enabled during the contest. Recently I found out that you can actually print to …
Leetcode online judge has introduced a new feature lately – which is the online code debugger. This works perfect for me as I am using iPad + bluetooth keyboard …