1. Compiling NgSpice in a Linux environment is done the same way--disable-debug
./autogen.sh mkdir release cd release .. /configure --enable-xspice
  1. If the working environment is WIN, it can be compiled in WSL, using the remote mode to connect
  2. After compiling, press F5 in vscode to start debugging. The first time you will be prompted to configure the debug environment. Program configuration full program path. Args configuration

Press F5 again to start debugging