Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d7e8d37
Automatically fixed settings
UncleSamSwiss Jan 12, 2026
cf62b51
Update license year
UncleSamSwiss Jan 12, 2026
b679a81
Remove unnecessary dev dependency
UncleSamSwiss Jan 12, 2026
f02d3ad
Code cleanup
UncleSamSwiss Jan 12, 2026
c5176e4
Refactor code into one class per command
UncleSamSwiss Jan 12, 2026
c8b84ca
Implement remote setup
UncleSamSwiss Jan 14, 2026
f099d90
Some code cleanup
UncleSamSwiss Jan 14, 2026
b7d0c57
Make "update" command work for remote
UncleSamSwiss Jan 14, 2026
85dc263
Get remote setup with restoring backup working
UncleSamSwiss Jan 14, 2026
db0ec8f
Improve UX for "upload" command
UncleSamSwiss Jan 14, 2026
5cbf53f
Show remote host info in "profile" output
UncleSamSwiss Jan 14, 2026
802fbf4
Make "backup" command work for remote
UncleSamSwiss Jan 14, 2026
de93c46
Fix linter issues
UncleSamSwiss Jan 14, 2026
a7aee69
Inline property profileName
UncleSamSwiss Jan 15, 2026
5c7d715
Make sure socket stays open when checking port
UncleSamSwiss Jan 15, 2026
7955649
Make "run" command work for remote
UncleSamSwiss Jan 15, 2026
be7c05d
Start getting "debug" working for remote
UncleSamSwiss Jan 15, 2026
8751d83
Update chalk to v5
UncleSamSwiss Jan 19, 2026
a76397d
Update VS code debugging docs
UncleSamSwiss Jan 20, 2026
f1e0709
Kill child processes with SIGINT
UncleSamSwiss Jan 21, 2026
67defd5
Improve SIGINT handling
UncleSamSwiss Jan 21, 2026
4a058ca
Move copySourcemaps() to Debug
UncleSamSwiss Jan 21, 2026
060fb5e
Start getting "watch" working for remote
UncleSamSwiss Jan 21, 2026
e7e530d
Fix unit tests
UncleSamSwiss Jan 22, 2026
594e073
Update "setup" documentation
UncleSamSwiss Jan 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"editor.detectIndentation": false,
"[typescript]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
}
},
"[javascript]": {
Expand All @@ -22,5 +22,6 @@
"[markdown]": {
"editor.tabSize": 4,
"editor.insertSpaces": true
}
},
"cSpell.words": ["alcalzone", "iobroker", "Pids"]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021-2025 UncleSamSwiss
Copyright (c) 2021-2026 UncleSamSwiss

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
29 changes: 22 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ The following options are available:

`--admin <version>` Define which version of admin to be used (default: "latest").

`--remote` Set up dev-server on a remote host using SSH. You will be prompted for connection details.

`--backupFile <filename>` Provide an ioBroker backup file to restore in this dev-server. Use this option to populate the dev-server with data (and possibly other adapters).

`--symlinks` Use symlinks instead of packing and installing the current adapter for a smoother dev experience. Requires JS-Controller 5+.
Expand Down Expand Up @@ -325,16 +327,29 @@ When the adapter is ready, you will see a message like the following:
╰──────────────────────────────────────────────────╯
```

You can now attach the Visual Studio Code debugger to the given process ID:
You can now attach the Visual Studio Code debugger.

- Open the Command Palette (Ctrl-Shift-P)
- Choose "Debug: Attach to Node Process (legacy)"
- Select the right process, it usually looks like follows:
Create (or extend) a file called `.vscode/launch.json`:

```json
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach to remote",
"address": "127.0.0.1",
"port": 9229,
"outFiles": []
}
]
}
```
node --inspect <path to your dev-server directory>/node_modules/...
process id: 1234, debug port: 9229
```

Note: It is important to set `"outFiles"` at least to an empty array, otherwise breakpoints will not work.

Go to `Run and debug` (Ctrl-Shift-D), select `Attach to remote` and click on the green "play" button.

Now you can set breakpoints (or they are hit if you set them before) and inspect your adapter while running.

Expand Down
Loading