Advertisement
desislava_topuzakova

Стъпки за дебъгване

Mar 14th, 2022
1,309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.48 KB | None | 0 0
  1. Дебъгване:
  2. 1. Премахваме въвеждането на входни данни (scanln) и слагаме статични стойности
  3. 2. func main има само в задачата, която дебъгваме
  4. 3. Създаваме модул (go.mod файл) -> go mod init {name of module}
  5. 4. Таб Run and Debug -> launch.json
  6. 5. Breakpoint -> от къде започваме да дебъгваме
  7. 6. Start debugging -> F5 или Run -> Start Debugging
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement