question on how to debug or use javascript libraries in max js object

Mike Ted's icon

Is it possible to debug or use js libraries in the js object (not node) ? Right now I'm using vscode with autowatch but can't debug because I'm not running the script from vscode.
Any answers are greatly appreciated!