1 # VSCode Debugging
2
3 To debug the app on VSCode, use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb) and [cargo debugger](https://github.com/jkelleyrtp/cargo-debugger).
4
5 ```bash
6 $ cargo debugger --package smbcloud-cli -- account signup
7 ```
8
9
10 ## Environment
11
12 Default environment is production. To run against dev environemt:
13 ```bash
14 $ cargo run -- -e dev account login
15 ```
16
17 Example debug the dev environment:
18 ```bash
19 $ cargo debugger --package cli -- -e dev account login
20 ```
21
22 ## Run from different directory
23
24 To run from a different directory, use the `--manifest-path` flag and `--package` flag. :
25 ```bash
26 $ cargo debugger --manifest-path .../path/to/smbcloud-cli/Cargo.toml --package smbcloud-cli -- -e dev account login
27 ```