Я загрузил код Visual Studio, но я не знаю, как настроить отладчик.Код Visual Studio - отладка
Я изучаю программирование, и я не знаю, как его настроить?
Кто-нибудь поможет мне с этой проблемой?
Это то, что вам нужно настроить.
{
"version": "0.1.0",
// List of configurations. Add new configurations or edit existing ones.
// ONLY "node" and "mono" are supported, change "type" to switch.
"configurations": [
{
// Name of configuration; appears in the launch configuration drop down menu.
"name": "Launch app.js",
// Type of configuration. Possible values: "node", "mono".
"type": "node",
// Workspace relative or absolute path to the program.
"program": "app.js",
// Automatically stop program after launch.
"stopOnEntry": true,
// Command line arguments passed to the program.
"args": [],
// Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.
"cwd": ".",
// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH.
"runtimeExecutable": null,
// Environment variables passed to the program.
"env": { }
},
{
"name": "Attach",
"type": "node",
// TCP/IP address. Default is "localhost".
"address": "localhost",
// Port to attach to.
"port": 5858
}
]
}
Что вы пытаетесь отлаживать? Мне не приходилось настраивать отладчик в Visual Studio раньше, это просто работает. –
У Джона Папы есть хорошая информация об отладке здесь http://www.johnpapa.net/debugging-with-visual-studio-code/ –
Это о удаленной отладке? Вы должны четко сформулировать свои требования. – PJTraill