CUDA Toolkits intalled but vscode Nsight extension not working

Hello! I am trying to get my Nsight extension working on a Ubuntu server which has CUDA Toolkits and Nvidia drivers installed. I am quite sure it is the problem of my server, because when connecting to my game laptop also with the CUDA toolkits and Nvidia drivers installed, Nsight VSCE worked perfectly. So I am now very confused and do not know how to locate the problem. The following is the output from my Ubuntu server.

# nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Sat_Aug_25_21:08:01_CDT_2018
Cuda compilation tools, release 10.0, V10.0.130
# cuda-gdb --version
NVIDIA (R) CUDA Debugger
10.0 release
Portions Copyright (C) 2007-2018 NVIDIA Corporation
GNU gdb (GDB) 7.12
# nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.94       Driver Version: 470.94       CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
...
...