Available translations



loading results
Exchange Raw Data - Start Debugging

Summary: The procedure to debug this sensor bot is fairly simple. Just run VS Code with your breakpoint set, go to the UI and start the Sensor Bot Task with the menu option DEBUG.
Summary: Процедура отладки сенсорного бота довольно проста. Просто запустите VS Code с установленной точкой останова, перейдите в пользовательский интерфейс и запустите задачу сенсорного бота с помощью пункта меню DEBUG.
Almost instantaneously you will see that VS Code stops at the breakpoint you set. From there you can go step by step checking any of the variable values. If you let the code to run, you will notice that a single execution will try to fetch all the missing objects since the last time it ran until present time.
Почти мгновенно вы увидите, что VS Code останавливается на установленной вами точке останова. Отсюда вы можете двигаться шаг за шагом, проверяя любое из значений переменных. Если вы дадите коду выполниться, то заметите, что за одно выполнение он попытается получить все отсутствующие объекты с момента последнего запуска до текущего момента.
When it finishes, the Sensor Bot will go to sleep for 60 seconds and them it will try to do the same stuff again, and again.
После завершения работы Sensor Bot перейдет в спящий режим на 60 секунд, а затем попытается сделать то же самое снова и снова.
Not Working?
Не работает?
It might happen that the procedure did not work as expected. Check the VS Code console if you have an output similar to this one:
Может случиться так, что процедура сработала не так, как ожидалось. Проверьте консоль VS Code, есть ли у вас есть вывод, подобный этому:
C:\Program Files\nodejs\node.exe --inspect-brk=43774 Task.js
Debugger listening on ws://127.0.0.1:43774/7e591f55-d67e-4afe-ba9b-24a6b5763824
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
If not, you will need to do some troubleshooting. stat with this:
Если нет, вам нужно будет провести поиск неполадок:
1. Run Superalgos client
1. Запустите клиент Superalgos
2. Close VS CODE
2. Закройте VS Code
3. Locate the Task Server folder
3. Найдите папку Task Server
4. Right click there and OPEN with VS CODE
4. Щелкните там правой кнопкой мыши и откройте с помощью VS Code
5. Without adding yet the Projects folder, run VS CODE
5. Не добавляя пока папку Projects, запустите VS Code
6. See if the VS CODE console shows something similar to what I sent you
6. Посмотрите, отображается ли в консоли VS Code что-то похожее на то, что я вам отправил
Superalgos Client is not Running
Клиент Superalgos не запущен
If you see a message like this at the VS Code console, that means that the Superalgos Client is not currently running.
Если в консоли VS Code вы видите сообщение, подобное этому, это означает, что Superalgos Client в настоящее время не запущен.
[ERROR] Task Server -> Event Server Client -> setuptWebSockets -> On connection error -> error = undefined
EventServerClient.js:50
[ERROR] This could mean that the port 18041 is taken by some other app running at your system. To resolve this issue, please pick another port number and change it at the.ENV file inside the Superalgos folder AND at the.Environment.js file inside the TaskServer folder. After that run the app again.
EventServerClient.js:51
[ERROR] If you are debugging, it can also mean that the Superalgos Client is not running.
Check Launch.json
Проверьте файл launch.json
If you still can not see the debugger listening on ws port, then you should check that the
launch.json
file you have at the.vscode folder is similar to this one. Если вы все еще не видите отладчик, прослушивающий порт ws, то проверьте, что файл
launch.json
, находящийся в папке ".vscode", похож на этот. {
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"/**"
],
"program": "${workspaceFolder}\\Task.js"
}
]
}
That might be the reason why it is not starting the debugging session.
Это может быть причиной того, что не запускается сеанс отладки.
On Linux?
В Linux?
Users reported that on Linux, you need to adjust the Launch.json file to have this line:
Пользователи сообщили, что в Linux необходимо скорректировать файл
launch.json
, чтобы в нем появилась эта строка: "program": "${workspaceFolder}/Task.js"
Feel free to try it out.
Не стесняйтесь попробовать.
Previous
Exchange Raw Data - Locate The Sensor Bot Code
Exchange Raw Data - Locate The Sensor Bot Code
Next
Exchange Raw Data - Find Out Why Is Not Working
Exchange Raw Data - Find Out Why Is Not Working
How To Debug Exchange Raw Data Sensor Bot — TOC
You just read page 5 in the topic.
2. Exchange Raw Data - Research Your Exchange
3. Exchange Raw Data - Get VS Code
4. Exchange Raw Data - Locate The Sensor Bot Code
5. Exchange Raw Data - Start Debugging